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

Function TestDevbox

internal/devbox/devbox_test.go:25–37  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23)
24
25func TestDevbox(t *testing.T) {
26 t.Setenv("TMPDIR", "/tmp")
27 testPaths, err := doublestar.FilepathGlob("../../examples/**/devbox.json")
28 require.NoError(t, err, "Reading testdata/ should not fail")
29
30 assert.Greater(t, len(testPaths), 0, "testdata/ and examples/ should contain at least 1 test")
31
32 for _, testPath := range testPaths {
33 if !strings.Contains(testPath, "/commands/") {
34 testShellPlan(t, testPath)
35 }
36 }
37}
38
39func testShellPlan(t *testing.T, testPath string) {
40 baseDir := filepath.Dir(testPath)

Callers

nothing calls this directly

Calls 1

testShellPlanFunction · 0.85

Tested by

no test coverage detected