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

Function TestComputeEnv

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

Source from the content-addressed store, hash-verified

67}
68
69func TestComputeEnv(t *testing.T) {
70 d := devboxForTesting(t)
71 d.nix = &testNix{}
72 ctx := t.Context()
73 env, err := d.computeEnv(ctx, false /*use cache*/, devopt.EnvOptions{})
74 require.NoError(t, err, "computeEnv should not fail")
75 assert.NotNil(t, env, "computeEnv should return a valid env")
76}
77
78func TestComputeDevboxPathIsIdempotent(t *testing.T) {
79 devbox := devboxForTesting(t)

Callers

nothing calls this directly

Calls 2

devboxForTestingFunction · 0.85
computeEnvMethod · 0.80

Tested by

no test coverage detected