Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
12,853 in github.com/JuliusBrussee/caveman
⨍
Functions
12,853
◇
Types & classes
1,364
↳
Endpoints
5
Function
TestProjectGeminiWrapsCompleteRequest
(t *testing.T)
proxy/providers/internal/counttokens/counttokens_test.go:152
Function
TestPromptCacheKey_DisabledIsPassthrough
(t *testing.T)
proxy/providers/openai/cache_key_test.go:93
Function
TestPromptCacheKey_DistinctPrefixesDistinctKeys
(t *testing.T)
proxy/providers/openai/cache_key_test.go:85
Function
TestPromptCacheKey_Idempotent
(t *testing.T)
proxy/providers/openai/cache_key_test.go:122
Function
TestPromptCacheKey_InstructionsGetKey
(t *testing.T)
proxy/providers/openai/cache_key_test.go:65
Function
TestPromptCacheKey_NoStablePrefixOrBadJSON
(t *testing.T)
proxy/providers/openai/cache_key_test.go:109
Function
TestPromptCacheKey_PreservesOriginalRawBytes
(t *testing.T)
proxy/providers/openai/cache_key_test.go:130
Function
TestPromptCacheKey_RespectsExistingKey
(t *testing.T)
proxy/providers/openai/cache_key_test.go:101
Function
TestPromptCacheKey_StableAcrossWhitespaceAndKeyOrder
(t *testing.T)
proxy/providers/openai/cache_key_test.go:74
Function
TestPromptCacheKey_SystemMessageGetsKey
(t *testing.T)
proxy/providers/openai/cache_key_test.go:56
Function
TestPromptCacheKey_ToolsGetKey
(t *testing.T)
proxy/providers/openai/cache_key_test.go:40
Function
TestProtocol10ClientReplay
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:342
Function
TestProtocol10GrantStillRetrievesFromCCR
Grants a protocol 1.0 runtime issued point at CCR; they keep recovering until their scope expires, and delete says their originals were not deleted.
proxy/internal/middleware/protocol_v11_test.go:566
Function
TestProtocol11ClientFlow
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:343
Function
TestProtocolLimitsAndReceipts
(t *testing.T)
proxy/internal/middleware/runtime_test.go:491
Function
TestProviderErrorEnvelopeDoesNotInspectModelContent
(t *testing.T)
proxy/providers/stream_error_test.go:9
Function
TestProviderNoChargeAndFilteredOutputSemantics
(t *testing.T)
proxy/providers/adapter_usage_test.go:221
Function
TestProviderRoutesFailClosedOffLoopbackWithoutSharedToken
A non-loopback listener that only a middleware identity source makes legal has no shared token: the provider routes refuse everything rather than acce
proxy/internal/standalone/middleware_test.go:20
Function
TestProviderSniffReadsOnlyTheTopLevelOfAWholeAnswer
(t *testing.T)
proxy/internal/gateway/route_cache_test.go:87
Function
TestProviderStreamsFlushBeforeCompletion
The provider flushes headers, then waits for the test to receive them before producing a ping. It then waits again before finishing. This detects both
proxy/internal/gateway/reliability_test.go:29
Function
TestProviderUpstreamsPublishesChatGPTSubscriptionProof
(t *testing.T)
proxy/internal/standalone/standalone_test.go:726
Function
TestProxyLogRotatesWhileServing
proxy.log used to rotate only at startup, so a long-lived proxy writing a middleware audit line per request grew it without bound.
proxy/cmd/caveman-proxy/proxylog_test.go:12
Function
TestProxyRecordsCacheBustOnNonExtendingPrefix
TestProxyRecordsCacheBustOnNonExtendingPrefix drives three requests in one session through the proxy: the second rewrites an already-frozen assistant
proxy/internal/gateway/prefix_monitor_test.go:214
Function
TestPublishSQLiteFileFallsBackWhenHardLinksDenied
(t *testing.T)
engine/ccr/sqlite_parent_security_posix_test.go:12
Function
TestPureCRProgressBarWithoutLFAndANSI
(t *testing.T)
engine/terminal_test.go:66
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
← previous
next →
10,301–10,400 of 12,853, ranked by callers