pathRecordingIdem captures the route (path) handed to Claim so a test can assert that two agents land under distinct idempotency routes.
| 19 | // pathRecordingIdem captures the route (path) handed to Claim so a test can |
| 20 | // assert that two agents land under distinct idempotency routes. |
| 21 | type pathRecordingIdem struct{ paths []string } |
| 22 | |
| 23 | func (f *pathRecordingIdem) Claim(ctx context.Context, userID, key, path, bodyHash string) (idempotency.ClaimResult, error) { |
| 24 | f.paths = append(f.paths, path) |
nothing calls this directly
no outgoing calls
no test coverage detected