package eia import ( "reflect" "testing" ) func TestGetRoutes(t *testing.T) { type args struct { suffixes []string } tests := []struct { name string args args want []string }{ { name: "List known routes", args: args{ suffixes: []string{ "Aeo", "Electricity", "Gas", }, }, want: []string{ "GetV2Aeo", "GetV2Electricity", "GetV2NaturalGas", }, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := GetRoutes(tt.args.suffixes...); !reflect.DeepEqual(got, tt.want) { t.Errorf("GetRoutes() = %v, want %v", got, tt.want) } }) } }