MCPcopy Create free account
hub / github.com/Facets-cloud/flow / TestCmdWorkdirScanNoAdd

Function TestCmdWorkdirScanNoAdd

internal/app/workdir_test.go:187–196  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

185}
186
187func 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
198func TestCmdWorkdirScanAdd(t *testing.T) {
199 root := setupArchiveTestEnv(t)

Callers

nothing calls this directly

Calls 3

setupArchiveTestEnvFunction · 0.85
writeFakeGitConfigFunction · 0.85
cmdWorkdirFunction · 0.85

Tested by

no test coverage detected