(t *testing.T)
| 219 | } |
| 220 | |
| 221 | func TestCmdWorkdirUnknownSubcommand(t *testing.T) { |
| 222 | setupArchiveTestEnv(t) |
| 223 | if rc := cmdWorkdir([]string{}); rc != 2 { |
| 224 | t.Errorf("empty args rc=%d, want 2", rc) |
| 225 | } |
| 226 | if rc := cmdWorkdir([]string{"wat"}); rc != 2 { |
| 227 | t.Errorf("bad subcommand rc=%d, want 2", rc) |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | func TestDetectGitRemoteMissing(t *testing.T) { |
| 232 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected