(t *testing.T)
| 233 | } |
| 234 | |
| 235 | func TestIncludes(t *testing.T) { |
| 236 | cases := []struct { |
| 237 | osArgs []string |
| 238 | want []string |
| 239 | }{ |
| 240 | { |
| 241 | []string{"filename", "-i", "foo", "--include", "bar", "--include=foobar"}, |
| 242 | []string{"foo", "bar", "foobar"}, |
| 243 | }, |
| 244 | } |
| 245 | for _, c := range cases { |
| 246 | got := ParseOsArgs(c.osArgs) |
| 247 | if !reflect.DeepEqual(got.Options[Include], c.want) { |
| 248 | t.Errorf("ParseOsArgs %q != %q", got.Options[Include], c.want) |
| 249 | } |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | func TestArgs(t *testing.T) { |
| 254 | cases := []struct { |
nothing calls this directly
no test coverage detected