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

Function TestExportifyNushellSkipsInvalidNames

internal/devbox/envvars_test.go:50–62  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func TestExportifyNushellSkipsInvalidNames(t *testing.T) {
51 got := exportifyNushell(io.Discard, map[string]string{
52 "GOOD": "value",
53 "//": "comment",
54 })
55
56 if !strings.Contains(got, `$env.GOOD = "value"`) {
57 t.Errorf("expected valid var to be exported, got:\n%s", got)
58 }
59 if strings.Contains(got, "//") {
60 t.Errorf("expected invalid name to be skipped, got:\n%s", got)
61 }
62}

Callers

nothing calls this directly

Calls 1

exportifyNushellFunction · 0.85

Tested by

no test coverage detected