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

Function TestJSONFileNotExist

internal/cachehash/hash_test.go:106–115  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

104}
105
106func TestJSONFileNotExist(t *testing.T) {
107 t.TempDir()
108 hash, err := JSONFile(t.TempDir() + "/notafile")
109 if err != nil {
110 t.Errorf("got error: %v", err)
111 }
112 if hash != "" {
113 t.Errorf("got non-empty hash %q", hash)
114 }
115}

Callers

nothing calls this directly

Calls 1

JSONFileFunction · 0.85

Tested by

no test coverage detected