MCPcopy Index your code
hub / github.com/jetify-com/devbox / testShellPlan

Function testShellPlan

internal/devbox/devbox_test.go:39–52  ·  view source on GitHub ↗
(t *testing.T, testPath string)

Source from the content-addressed store, hash-verified

37}
38
39func testShellPlan(t *testing.T, testPath string) {
40 baseDir := filepath.Dir(testPath)
41 testName := fmt.Sprintf("%s_shell_plan", filepath.Base(baseDir))
42 t.Run(testName, func(t *testing.T) {
43 t.Setenv(envir.XDGDataHome, "/tmp/devbox")
44 assert := assert.New(t)
45
46 _, err := Open(&devopt.Opts{
47 Dir: baseDir,
48 Stderr: os.Stderr,
49 })
50 assert.NoErrorf(err, "%s should be a valid devbox project", baseDir)
51 })
52}
53
54type testNix struct {
55 path string

Callers 1

TestDevboxFunction · 0.85

Calls 2

OpenFunction · 0.70
RunMethod · 0.65

Tested by

no test coverage detected