(t *testing.T)
| 104 | } |
| 105 | |
| 106 | func 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 | } |
nothing calls this directly
no test coverage detected