(t *testing.T)
| 185 | } |
| 186 | |
| 187 | func TestCmdWorkdirScanNoAdd(t *testing.T) { |
| 188 | setupArchiveTestEnv(t) |
| 189 | scanRoot := t.TempDir() |
| 190 | repo := filepath.Join(scanRoot, "myrepo") |
| 191 | writeFakeGitConfig(t, repo, "git@github.com:x/myrepo.git") |
| 192 | |
| 193 | if rc := cmdWorkdir([]string{"scan", scanRoot}); rc != 0 { |
| 194 | t.Fatalf("scan rc=%d", rc) |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | func TestCmdWorkdirScanAdd(t *testing.T) { |
| 199 | root := setupArchiveTestEnv(t) |
nothing calls this directly
no test coverage detected