Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
12,391 in github.com/JuliusBrussee/caveman
⨍
Functions
12,391
◇
Types & classes
1,304
↳
Endpoints
5
Function
TestPutGetByteExact
(t *testing.T)
engine/ccr/store_test.go:13
Function
TestPutGetMetadata
(t *testing.T)
engine/ccr/store_test.go:192
Function
TestPutObjectRejectsImmutableIDCollision
(t *testing.T)
engine/ccr/store_test.go:91
Function
TestPutObjectReturnsStorageFullInsteadOfMintingHandle
(t *testing.T)
engine/ccr/store_full_test.go:15
Function
TestQualityRunnerErrorReturnsError
(t *testing.T)
engine/evals/harness_test.go:325
Function
TestQualityStageFailsClosedWithoutQualityGraders
(t *testing.T)
engine/evals/harness_test.go:299
Function
TestQueryCredentialsDoNotOverrideResolvedPrincipal
(t *testing.T)
proxy/providers/gemini/gemini_test.go:13
Function
TestQueryFilteredRetrieveReturnsRawRecords
TestQueryFilteredRetrieveReturnsRawRecords covers the query path the storming agents actually used — narrowed views must still be raw records, never p
mcp/retrieve_integration_test.go:215
Function
TestQueryRetrieveNarrowsOwnedOriginalWithoutCCR
A query retrieve ranks a middleware-owned original directly: no CCR, not even a scratch one, is involved.
proxy/internal/middleware/identity_test.go:174
Function
TestQueryViewFallsBackToTheWholeOriginal
TestQueryViewFallsBackToTheWholeOriginal is the safety valve: JSON whose records cannot be identified is never line-split, because a line of JSON is a
engine/retrieve_query_test.go:265
Function
TestQueryViewKeepsCSVRowsWhole
TestQueryViewKeepsCSVRowsWhole covers the tabular path: whole records sliced out of the original bytes, and the header exactly once so the columns can
engine/retrieve_query_test.go:222
Function
TestQueryViewKeepsMixedMessageContentShapesWhole
Mixed provider-style content shapes stay as whole message records. Array-form content and its sibling facts may not disappear through a string-only pa
engine/retrieve_query_test.go:142
Function
TestQueryViewKeepsNDJSONLinesWhole
TestQueryViewKeepsNDJSONLinesWhole covers the one-JSON-object-per-line shape: event per line. Each line is already a whole unit, so the fix there is t
engine/retrieve_query_test.go:287
Function
TestQueryViewKeepsTextBearingJSONRecordsWhole
A field named text/content is ordinary tool data, not permission to detach its value from the record that identifies it.
engine/retrieve_query_test.go:102
Function
TestQueryViewKeepsToolMessageContentWithItsID
A top-level messages array is not proof that JSON came from a provider. Tool output can use the same shape, so message ids must remain attached to con
engine/retrieve_query_test.go:125
Function
TestQueryViewMarksEveryGap
TestQueryViewMarksEveryGap is the other half: whole units are not enough if two of them touch when they did not touch in the original.
engine/retrieve_query_test.go:191
Function
TestQueryViewMarksOmittedJSONEnvelope
Even when every record matches, extracting them drops the JSON envelope and scalar metadata. Leading/trailing markers make that omission explicit.
engine/retrieve_query_test.go:177
Function
TestQueryViewMarksSeparateJSONArraysAsNonAdjacent
Records from different JSON arrays are not neighbours even when each record is the only hit in its array. A visible gap must separate them.
engine/retrieve_query_test.go:158
Function
TestQueryViewNeverOrphansAJSONField
TestQueryViewNeverOrphansAJSONField covers wrong-record attribution when a answer. A match on a field line must yield that field's WHOLE record, so no
engine/retrieve_query_test.go:53
Function
TestQueuedSessionEventReturnsBeforeStoreBusyTimeout
TestQueuedSessionEventReturnsBeforeStoreBusyTimeout covers the pileup: the event after a blocked one must fail open at its own deadline instead of que
proxy/internal/nativeruntime/hook_budget_test.go:95
Function
TestRateLimit429IsReturnedNotReplayed
TestRateLimit429IsReturnedNotReplayed: a 429 that says it is a rate limit goes back to the client. Replaying it raw cannot beat the limit, and a raw r
proxy/internal/gateway/cache_prefix_invariant_test.go:1444
Function
TestRateLimitOnAHealRetryIsNotReplayed
A heal retry counts as the route stage changing the bytes: its 429 is passed on, not replayed as the original.
proxy/internal/gateway/route_effort_test.go:1785
Function
TestRateLimitOnARoutedRequestIsNotRetried
A routed request's 429 on the asked model is passed on: no original-bytes retry, no reject. On a moved model it falls back to the asked one, and a 429
proxy/internal/gateway/route_effort_test.go:1074
Function
TestRateLimitWithMarksWhileOffIsNotRetried
A 429 on a request that carried the session's marks (routing off) is passed on: replaying the original without them cannot help.
proxy/internal/gateway/route_effort_test.go:1533
Function
TestRateLimitedRetryDoesNotDoubleTheAgentsRetries
A 429 without Retry-After on the routed model and on the retry: the decision is rejected, so the agent's own retries send one request each.
proxy/internal/gateway/route_test.go:855
Function
TestReLoginSwapsTheKeychainSecretWithoutAPause
A real re-login swaps the secret; the new login asks with its own token and no 401 pause from the old one survives.
proxy/internal/cloudlink/link_test.go:1186
Function
TestReadBoundedInput
(t *testing.T)
shrink/cmd/caveman-shrink/main_test.go:50
Function
TestReadNativeHookPayloadReturnsBeforeEOF
(t *testing.T)
proxy/cmd/caveman-proxy/main_test.go:43
Function
TestReadRejectsEveryInvalidContractField
(t *testing.T)
proxy/internal/runstate/runstate_test.go:139
Function
TestReadSkillFrontmatterDescriptionForms
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:288
Function
TestReaderSplitsLikeEncodingJSON
The reader agrees with encoding/json on what is a value and where it ends.
proxy/internal/translate/jsonfast_test.go:25
Function
TestReadinessProbesTheStoreAtMostOncePerSecond
S13: readiness is unauthenticated, so a probe flood must not become a flood of write transactions.
proxy/internal/middleware/hardening_test.go:179
Function
TestReadinessReflectsMiddlewareStore
A middleware store outage degrades readiness only where the middleware is all the listener serves; provider inference keeps its replicas in the Servic
proxy/internal/gateway/middleware_ops_test.go:77
Function
TestReasoningEffort_ByteSafeOnlyFieldAdded
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:79
Function
TestReasoningEffort_DisabledIsPassthrough
TestReasoningEffort_DisabledIsPassthrough checks the adapter layer: with the optimizer disabled the body is untouched, including when a direct caller
proxy/providers/openai/reasoning_effort_test.go:53
Function
TestReasoningEffort_LowersNotRaises
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:43
Function
TestReasoningEffort_PreservesCallerSettingsPerEndpoint
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:144
Function
TestReasoningEffort_RequiresBothFlagAndEvalGate
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:17
Function
TestReasoningEffort_RespectsCallerEffort
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:61
Function
TestReasoningEffort_ResponsesPreservesExistingReasoningFields
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:129
Function
TestReasoningEffort_ResponsesRouteAliasUsesNestedEffort
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:117
Function
TestReasoningEffort_ResponsesUsesNestedEffort
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:98
Function
TestReasoningEffort_SkipsNonReasoningModel
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:69
Function
TestReasoningEffort_SkipsUnsupportedProModelsOnBothEndpoints
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:238
Function
TestReasoningEffort_UnknownEndpointOrShapePassesThrough
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:181
Function
TestRecallByteSafeRoundTrip
(t *testing.T)
mem/store_test.go:143
Function
TestRecallFailsTowardNothing
(t *testing.T)
mem/store_test.go:114
Function
TestRecallOversizedSingleHitReturnsHeadAndHandle
TestRecallOversizedSingleHitReturnsHeadAndHandle reproduces the 440k-token bug: a single large memory that compression does not shrink. Recall must re
mem/recall_budget_test.go:88
Function
TestRecallRejectsUnknownNegativeTokenBudget
(t *testing.T)
mem/recall_budget_test.go:77
Function
TestRecallRespectsTokenBudget
TestRecallRespectsTokenBudget stores several matching memories whose combined injected tokens exceed a small budget and asserts Recall packs them gree
mem/recall_budget_test.go:14
Function
TestRecallReturnsRelevantAboveThreshold
(t *testing.T)
mem/store_test.go:90
Function
TestRecallThresholdGates
(t *testing.T)
mem/store_test.go:129
Function
TestRecallToolExposesAndMapsTokenBudget
(t *testing.T)
mem/cmd/cavemem/main_test.go:153
Function
TestRecallUnlimitedSentinelReturnsEveryRankedHit
(t *testing.T)
mem/recall_budget_test.go:47
Function
TestReceiptAfterDeleteAnswersDeleted
§12: once deleted, a receipt answers "deleted" and stores nothing.
proxy/internal/middleware/hardening_test.go:722
Function
TestRecentRequests
(t *testing.T)
proxy/internal/store/store_test.go:87
Function
TestReclaimLookupsUseIndexes
Each reclaim lookup must use an index: on a 500 MB store a full scan per candidate walks every large object's overflow pages.
engine/ccr/store_reclaim_test.go:370
Function
TestReclaimNeverWritesToADamagedStore
(t *testing.T)
engine/ccr/store_integrity_test.go:146
Function
TestReconcileAcceptsProviderHeaderVariants
TestReconcileAcceptsProviderHeaderVariants covers the shapes the two major exports actually ship, including a BOM and thousands separators.
proxy/internal/store/learn_reconcile_test.go:79
Function
TestReconcileFailsClosedOnUnknownSchema
TestReconcileFailsClosedOnUnknownSchema is the safety property. A provider changing its export must produce an error naming the problem, never a confi
proxy/internal/store/learn_reconcile_test.go:62
Function
TestReconcileFindsTheUnattributedShare
TestReconcileFindsTheUnattributedShare is the value of the whole feature: the gap between the bill and what transcripts explain is where untracked spe
proxy/internal/store/learn_reconcile_test.go:22
Function
TestReconcileFlagsMismatchedWindows
TestReconcileFlagsMismatchedWindows catches the most likely user error before they read a nonsense coverage figure.
proxy/internal/store/learn_reconcile_test.go:120
Function
TestReconcileNeverBorrowsAnotherModelsCoverage
TestReconcileNeverBorrowsAnotherModelsCoverage keeps model matching exact (plus the dated alias), so coverage cannot be manufactured.
proxy/internal/store/learn_reconcile_test.go:100
Function
TestRecordAndSummary_InferredBasis
(t *testing.T)
proxy/internal/store/store_test.go:11
Function
TestRecordAppliedFixPrefersOlderReportSnapshotAndRecoversMissingLiveSink
(t *testing.T)
proxy/internal/store/learn_outcomes_test.go:72
Function
TestRecordBatchFallbackStoresCacheComponentsOutsideRequestsRow
TestRecordBatchFallbackStoresCacheComponentsOutsideRequestsRow: one row that cannot be inserted fails the batch; every other row then goes through Rec
proxy/internal/store/cache_components_test.go:175
Function
TestRecordBatchStoresCacheComponentsOutsideRequestsRow
(t *testing.T)
proxy/internal/store/cache_components_test.go:162
Function
TestRecordBatchStoresWhatRecordStores
TestRecordBatchStoresWhatRecordStores: one transaction for several rows stores, column for column, what one Record per row stores, the persistence bou
proxy/internal/store/record_batch_test.go:104
Function
TestRecordForcesInferredAndSanitizesInvalidAccounting
(t *testing.T)
proxy/internal/store/store_test.go:65
Function
TestRecordKeepsThePoolAttempt
A pool attempt is on its row: the entry, why it fell back, and the host's own answer id to look the call up there.
proxy/internal/store/store_test.go:133
Function
TestRecordModeAndRoutingOffAreNeverKeyed
Record mode and routing off (or signed out) stay byte for byte: never a key. A stateful chain, answered off for a reason, keeps it (above).
proxy/internal/gateway/route_effort_responses_test.go:339
Function
TestRecordModeCollectsMetadataWithoutCoreStateReuseOrExactCCR
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:1174
Function
TestRecordModeGetsNoCacheMechanics
Record mode gets none of the cache mechanics: no pin, no prompt_cache_key, no family affinity (above), no fan-out wait.
proxy/internal/gateway/route_cache_test.go:376
Function
TestRecordModeIsPassThrough
(t *testing.T)
engine/engine_test.go:50
Function
TestRecordModePassThrough
TestRecordModePassThrough proves the standalone proxy is byte-safe in record mode: the request reaches the upstream unmodified, the response is return
proxy/internal/gateway/server_test.go:119
Function
TestRecordModeStillNeverTransformsAListing
record mode never transforms, gutter or no gutter.
engine/listing_test.go:138
Function
TestRecordStoresCacheComponentsOutsideRequestsRow
(t *testing.T)
proxy/internal/store/cache_components_test.go:154
Function
TestRecorderBatchesFinishedRows
TestRecorderBatchesFinishedRows: finished rows queued together go out in one write, in order, and a row still being counted does not hold up the finis
proxy/internal/gateway/recorder_test.go:258
Function
TestRecorderSurvivesPanics
TestRecorderSurvivesPanics: a panic while finishing or writing rows drops those rows, as a panicking handler did, and neither stops the proxy nor the
proxy/internal/gateway/recorder_test.go:232
Function
TestRecoverUnknownHandleFails
(t *testing.T)
shrink/shrink_test.go:227
Function
TestRecoverUnknownHandleFailsClosed
(t *testing.T)
browse/session_test.go:372
Function
TestRecoveryFunctionResponseIsNotRewritable
A functionResponse from caveman_retrieve carries the exact bytes an earlier elision removed. Rewriting it hands the agent back its own elision.
proxy/providers/gemini/recovery_exempt_test.go:39
Function
TestRecoveryResultIsNeverRecompressed
TestRecoveryResultIsNeverRecompressed is the citation-check regression. Measured on 2026-08-06: the agent read a file, saw it elided, called its own
proxy/internal/gateway/recovery_exempt_test.go:38
Function
TestRecoveryStoreFreshHomeProcess
Exercise the shipped entrypoint in fresh homes: an installed binary may be launched directly without the npm downloader having created .caveman first.
mcp/cmd/caveman-mcp/recovery_process_test.go:19
Function
TestRecoveryStoreStatusOnAHealthyAndAMissingStore
(t *testing.T)
proxy/cmd/caveman-proxy/recovery_store_test.go:81
Function
TestRecurringMinerIgnoresHostAndHookInjectedContext
#1459: the repaste miner mined every text payload in a transcript turn, so context the HOST and caveman's own hook re-inject each session — Claude Cod
proxy/internal/store/recurring_test.go:24
Function
TestRecurringMinerKeepsHumanBlocksThatOnlyMentionInjectedText
A payload is injected or it is not; the guard must not spread across a turn. A user's own paste in the same turn as a system-reminder still counts, an
proxy/internal/store/recurring_test.go:69
Function
TestRecurringPositionsAreRetroOnly
(t *testing.T)
proxy/internal/store/learn_retro_test.go:643
Function
TestRefIntegrityGuardDetectsDrop
TestRefIntegrityGuardDetectsDrop checks that the $ref-integrity assertion catches: it must report a dropped definition as unresolvable and a present o
engine/compressors/toolschema_test.go:505
Function
TestRefIntegrityGuardDoesNotCrossToolSchemaRoots
(t *testing.T)
engine/compressors/toolschema_test.go:522
Function
TestRefIntegrityGuardRejectsNonCanonicalArrayIndex
(t *testing.T)
engine/compressors/toolschema_test.go:542
Function
TestRefIntegrityGuardUsesNearestIDResourceRoot
(t *testing.T)
engine/compressors/toolschema_test.go:532
Function
TestReferenceToReferenceResolvesThroughFallback
(t *testing.T)
engine/ccr/store_consolidation_blocks_test.go:162
Function
TestReflowAndDereflow
(t *testing.T)
engine/pixel/render_test.go:37
Function
TestRefreshNeverResurrectsARemovedOrNewerLogin
A refresh that lands after the login was removed, or after a new sign-in, saves nothing.
proxy/internal/pool/pool_test.go:252
Function
TestRefreshRetriesASaveThatMetTheLock
A refresh whose save meets a held lock tries once more, so a single-use refresh token is not lost to contention.
proxy/internal/pool/pool_test.go:387
Function
TestRefusalHoldsForTheSessionsModelPair
A refusal drops the routed model from that scope's pool for rememberFor: with only the asked model left the ask still goes (Cloud decides its effort)
proxy/internal/cloudlink/link_test.go:1013
Function
TestRefusalIsScopedToAgentAndEndpoint
Without a session id a refusal is scoped to the agent and endpoint: Codex on the ChatGPT plan (/responses) losing a model leaves an API-key client on
proxy/internal/cloudlink/link_test.go:1063
Function
TestRefusalWordingVariantsHealAndLatch
A refusal saying "configuration updates" heals and latches like the item name does: one extra send, never one per request.
proxy/internal/gateway/route_effort_responses_test.go:318
Function
TestRefuseGatewayProductionDefaultsDoesNotRequireControlPlaneSecrets
(t *testing.T)
shared/platform/env/env_test.go:123
← previous
next →
9,901–10,000 of 12,391, ranked by callers