(t *testing.T)
| 160 | } |
| 161 | |
| 162 | func TestTargetDir(t *testing.T) { |
| 163 | cases := []struct { |
| 164 | osArgs []string |
| 165 | want []string |
| 166 | }{ |
| 167 | {[]string{"filename", "-C", "foo"}, []string{"foo"}}, |
| 168 | } |
| 169 | for _, c := range cases { |
| 170 | got := ParseOsArgs(c.osArgs) |
| 171 | if !reflect.DeepEqual(got.Options[TargetDir], c.want) { |
| 172 | t.Errorf("ParseOsArgs %q != %q", got.Options[TargetDir], c.want) |
| 173 | } |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | func TestSources(t *testing.T) { |
| 178 | cases := []struct { |
nothing calls this directly
no test coverage detected