(t *testing.T)
| 192 | } |
| 193 | |
| 194 | func TestInStringSlice(t *testing.T) { |
| 195 | type args struct { |
| 196 | ss []string |
| 197 | str string |
| 198 | } |
| 199 | tests := []struct { |
| 200 | name string |
| 201 | args args |
| 202 | want bool |
| 203 | }{ |
| 204 | { |
| 205 | name: "normal", |
| 206 | args: args{ |
| 207 | ss: []string{"foo", "bar", "baz"}, |
| 208 | str: "bar", |
| 209 | }, |
| 210 | want: true, |
| 211 | }, |
| 212 | { |
| 213 | name: "normal-1", |
| 214 | args: args{ |
| 215 | ss: []string{"foo", "bar", "baz"}, |
| 216 | str: "qux", |
| 217 | }, |
| 218 | want: false, |
| 219 | }, |
| 220 | } |
| 221 | for _, tt := range tests { |
| 222 | t.Run(tt.name, func(t *testing.T) { |
| 223 | if got := InStringSlice(tt.args.ss, tt.args.str); got != tt.want { |
| 224 | t.Errorf("InStringSlice() = %v, want %v", got, tt.want) |
| 225 | } |
| 226 | }) |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | func TestParseCSVMap(t *testing.T) { |
| 231 | type args struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…