func TestNetstatPlugin_FetchMetrics(t *testing.T) { type fields struct { Prefix string Extend bool } tests := []struct { name string fields fields want map[string]float64 wantErr bool }{ // TODO: Add test cases. } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { v := NetstatPlugin{ Prefix: tt.fields.Prefix, Extend: tt.fields.Extend, } got, err := v.FetchMetrics() if (err != nil) != tt.wantErr { t.Errorf("NetstatPlugin.FetchMetrics() error = %v, wantErr %v", err, tt.wantErr) return } if !reflect.DeepEqual(got, tt.want) { t.Errorf("NetstatPlugin.FetchMetrics() = %v, want %v", got, tt.want) } }) } }
gotests GoTestALL