MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / fakeIdem

Struct fakeIdem

internal/httpapi/idempotency_test.go:13–18  ·  view source on GitHub ↗

fakeIdem is a programmable in-memory IdemStore for unit tests.

Source from the content-addressed store, hash-verified

11
12// fakeIdem is a programmable in-memory IdemStore for unit tests.
13type fakeIdem struct {
14 claim idempotency.ClaimResult
15 claimErr error
16 completed *idempotency.CachedResponse
17 released bool
18}
19
20func (f *fakeIdem) Claim(ctx context.Context, userID, key, path, bodyHash string) (idempotency.ClaimResult, error) {
21 return f.claim, f.claimErr

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected