MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / TestGetNotFound

Function TestGetNotFound

internal/instructions/store_test.go:180–186  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

178}
179
180func TestGetNotFound(t *testing.T) {
181 ctx := context.Background()
182 s := newTestStore(t)
183 if _, err := s.Get(ctx, 999); !isErr(err, ErrInstructionNotFound) {
184 t.Fatalf("expected ErrInstructionNotFound, got %v", err)
185 }
186}
187
188// privilegeErr is a synthetic error that isPrivilegeError recognizes so the
189// copy fallback is portable across platforms.

Callers

nothing calls this directly

Calls 3

newTestStoreFunction · 0.85
isErrFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected