MCPcopy
hub / github.com/redspread/spread / TestInitProjectAbsolute

Function TestInitProjectAbsolute

pkg/project/project_test.go:38–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestInitProjectAbsolute(t *testing.T) {
39 target := filepath.Join(testDir, "absoluteTest")
40 target, err := filepath.Abs(target)
41 assert.NoError(t, err)
42
43 defer os.RemoveAll(target)
44
45 proj, err := InitProject(target)
46 assert.NoError(t, err)
47 assert.NotNil(t, proj)
48
49 checkProject(t, proj.Path)
50}
51
52func checkProject(t *testing.T, target string) {
53 // check that project directory was created

Callers

nothing calls this directly

Calls 2

InitProjectFunction · 0.85
checkProjectFunction · 0.85

Tested by

no test coverage detected