//go:build linux && amd64
** Copyright (C) 2001-2023 Zabbix SIA
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
"git.zabbix.com/ap/plugin-support/std"
var testSets = []testSet{
{1, "test_name", "net.if.in", []string{"eno1", "bytes"}, true, uint64(709017493), reflect.Uint64},
{2, "test_name", "net.if.discovery", []string{}, true, "[{\"{#IFNAME}\":\"eno1\"}]", reflect.String},
{3, "test_name", "net.if.collisions", []string{"eno1"}, true, uint64(543), reflect.Uint64},
{0, "test_name", "net.if.in", []string{"eno2", "packets"}, true, uint64(0), reflect.Uint64},
{1, "test_name", "net.if.collisions", []string{}, true, uint64(0), reflect.Uint64},
{2, "test_name", "net.if.collisions", []string{"eno1", "bytes"}, true, uint64(0), reflect.Uint64},
{3, "test_name", "net.if.collisions", []string{"eno1", ""}, true, uint64(0), reflect.Uint64},
{4, "test_name", "net.if.collisions", []string{"invalid1"}, true, uint64(0), reflect.Uint64},
{5, "test_name", "net.if.collisions", []string{"eno1"}, true, uint64(542), reflect.Uint64},
{6, "test_name", "net.if.collisions", []string{"eno1"}, false, uint64(543), reflect.Uint64},
{7, "test_name", "net.if.collisions", []string{"lo"}, false, uint64(0), reflect.Uint64},
{8, "test_name", "net.if.in", []string{}, true, uint64(0), reflect.Uint64},
{9, "test_name", "net.if.in", []string{"eno1", "bytes", "something"}, true, uint64(0), reflect.Uint64},
{10, "test_name", "net.if.in", []string{"invalid1"}, true, uint64(0), reflect.Uint64},
{11, "test_name", "net.if.in", []string{"eno1", "b"}, true, uint64(0), reflect.Uint64},
{12, "test_name", "net.if.in", []string{"eno1", "bytes"}, true, uint64(0), reflect.Uint64},
{13, "test_name", "net.if.in", []string{"eno1", "bytes"}, false, uint64(709017493), reflect.Uint64},
{14, "test_name", "net.if.in", []string{"eno1", ""}, false, uint64(709017493), reflect.Uint64},
{15, "test_name", "net.if.in", []string{"eno1"}, false, uint64(709017493), reflect.Uint64},
{16, "test_name", "net.if.in", []string{"eno1", "errors"}, false, uint64(15), reflect.Uint64},
{17, "test_name", "net.if.in", []string{"lo", "packets"}, false, uint64(11757), reflect.Uint64},
{18, "test_name", "net.if.out", []string{"eno1"}, false, uint64(22780124), reflect.Uint64},