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

Function devboxForTesting

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

Source from the content-addressed store, hash-verified

121}
122
123func devboxForTesting(t *testing.T) *Devbox {
124 path := t.TempDir()
125 _, err := devconfig.Init(path)
126 require.NoError(t, err, "InitConfig should not fail")
127 d, err := Open(&devopt.Opts{
128 Dir: path,
129 Stderr: os.Stderr,
130 })
131 require.NoError(t, err, "Open should not fail")
132
133 return d
134}

Calls 2

InitFunction · 0.92
OpenFunction · 0.70

Tested by

no test coverage detected