(t *testing.T)
| 197 | } |
| 198 | |
| 199 | func TestStoreReadMissingFile(t *testing.T) { |
| 200 | t.Parallel() |
| 201 | |
| 202 | env := newTestStoreEnv(t) |
| 203 | |
| 204 | _, err := env.store.Read(memcontract.ScopeGlobal, "missing.md") |
| 205 | if err == nil { |
| 206 | t.Fatal("Store.Read() error = nil, want non-nil") |
| 207 | } |
| 208 | if !errors.Is(err, os.ErrNotExist) { |
| 209 | t.Fatalf("Store.Read() error = %v, want os.ErrNotExist", err) |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | func TestStoreDeleteRemovesFileAndIndexEntry(t *testing.T) { |
| 214 | t.Parallel() |
nothing calls this directly
no test coverage detected