MCPcopy Create free account
hub / github.com/compozy/agh / TestStoreReadMissingFile

Function TestStoreReadMissingFile

internal/memory/store_test.go:199–211  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

197}
198
199func 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
213func TestStoreDeleteRemovesFileAndIndexEntry(t *testing.T) {
214 t.Parallel()

Callers

nothing calls this directly

Calls 3

newTestStoreEnvFunction · 0.85
ReadMethod · 0.65
IsMethod · 0.45

Tested by

no test coverage detected