(t *testing.T)
| 215 | } |
| 216 | |
| 217 | func TestExtension(t *testing.T) { |
| 218 | cases := []struct { |
| 219 | osArgs []string |
| 220 | want []string |
| 221 | }{ |
| 222 | { |
| 223 | []string{"filename", "-e", "foo", "--extension", "bar", "--extension=foobar"}, |
| 224 | []string{"foo", "bar", "foobar"}, |
| 225 | }, |
| 226 | } |
| 227 | for _, c := range cases { |
| 228 | got := ParseOsArgs(c.osArgs) |
| 229 | if !reflect.DeepEqual(got.Options[Extension], c.want) { |
| 230 | t.Errorf("ParseOsArgs %q != %q", got.Options[Extension], c.want) |
| 231 | } |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | func TestIncludes(t *testing.T) { |
| 236 | cases := []struct { |
nothing calls this directly
no test coverage detected