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

Function TestFileNotExist

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

Source from the content-addressed store, hash-verified

35}
36
37func TestFileNotExist(t *testing.T) {
38 t.TempDir()
39 hash, err := File(t.TempDir() + "/notafile")
40 if err != nil {
41 t.Errorf("got error: %v", err)
42 }
43 if hash != "" {
44 t.Errorf("got non-empty hash %q", hash)
45 }
46}
47
48func TestJSON(t *testing.T) {
49 a := struct{ A, B string }{"a", "b"}

Callers

nothing calls this directly

Calls 1

FileFunction · 0.70

Tested by

no test coverage detected