MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

FunctionTestProjectGeminiWrapsCompleteRequest
(t *testing.T)
proxy/providers/internal/counttokens/counttokens_test.go:152
FunctionTestPromptCacheKey_DisabledIsPassthrough
(t *testing.T)
proxy/providers/openai/cache_key_test.go:93
FunctionTestPromptCacheKey_DistinctPrefixesDistinctKeys
(t *testing.T)
proxy/providers/openai/cache_key_test.go:85
FunctionTestPromptCacheKey_Idempotent
(t *testing.T)
proxy/providers/openai/cache_key_test.go:122
FunctionTestPromptCacheKey_InstructionsGetKey
(t *testing.T)
proxy/providers/openai/cache_key_test.go:65
FunctionTestPromptCacheKey_NoStablePrefixOrBadJSON
(t *testing.T)
proxy/providers/openai/cache_key_test.go:109
FunctionTestPromptCacheKey_PreservesOriginalRawBytes
(t *testing.T)
proxy/providers/openai/cache_key_test.go:130
FunctionTestPromptCacheKey_RespectsExistingKey
(t *testing.T)
proxy/providers/openai/cache_key_test.go:101
FunctionTestPromptCacheKey_StableAcrossWhitespaceAndKeyOrder
(t *testing.T)
proxy/providers/openai/cache_key_test.go:74
FunctionTestPromptCacheKey_SystemMessageGetsKey
(t *testing.T)
proxy/providers/openai/cache_key_test.go:56
FunctionTestPromptCacheKey_ToolsGetKey
(t *testing.T)
proxy/providers/openai/cache_key_test.go:40
FunctionTestProtocol10ClientReplay
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:342
FunctionTestProtocol10GrantStillRetrievesFromCCR
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
FunctionTestProtocol11ClientFlow
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:343
FunctionTestProtocolLimitsAndReceipts
(t *testing.T)
proxy/internal/middleware/runtime_test.go:491
FunctionTestProviderErrorEnvelopeDoesNotInspectModelContent
(t *testing.T)
proxy/providers/stream_error_test.go:9
FunctionTestProviderNoChargeAndFilteredOutputSemantics
(t *testing.T)
proxy/providers/adapter_usage_test.go:221
FunctionTestProviderRoutesFailClosedOffLoopbackWithoutSharedToken
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
FunctionTestProviderSniffReadsOnlyTheTopLevelOfAWholeAnswer
(t *testing.T)
proxy/internal/gateway/route_cache_test.go:87
FunctionTestProviderStreamsFlushBeforeCompletion
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
FunctionTestProviderUpstreamsPublishesChatGPTSubscriptionProof
(t *testing.T)
proxy/internal/standalone/standalone_test.go:726
FunctionTestProxyLogRotatesWhileServing
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
FunctionTestProxyRecordsCacheBustOnNonExtendingPrefix
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
FunctionTestPublishSQLiteFileFallsBackWhenHardLinksDenied
(t *testing.T)
engine/ccr/sqlite_parent_security_posix_test.go:12
FunctionTestPureCRProgressBarWithoutLFAndANSI
(t *testing.T)
engine/terminal_test.go:66
FunctionTestPutGetByteExact
(t *testing.T)
engine/ccr/store_test.go:13
FunctionTestPutGetMetadata
(t *testing.T)
engine/ccr/store_test.go:192
FunctionTestPutObjectRejectsImmutableIDCollision
(t *testing.T)
engine/ccr/store_test.go:91
FunctionTestPutObjectReturnsStorageFullInsteadOfMintingHandle
(t *testing.T)
engine/ccr/store_full_test.go:15
FunctionTestQualityRunnerErrorReturnsError
(t *testing.T)
engine/evals/harness_test.go:325
FunctionTestQualityStageFailsClosedWithoutQualityGraders
(t *testing.T)
engine/evals/harness_test.go:299
FunctionTestQueryCredentialsDoNotOverrideResolvedPrincipal
(t *testing.T)
proxy/providers/gemini/gemini_test.go:13
FunctionTestQueryFilteredRetrieveReturnsRawRecords
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
FunctionTestQueryRetrieveNarrowsOwnedOriginalWithoutCCR
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
FunctionTestQueryViewFallsBackToTheWholeOriginal
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
FunctionTestQueryViewKeepsCSVRowsWhole
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
FunctionTestQueryViewKeepsMixedMessageContentShapesWhole
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
FunctionTestQueryViewKeepsNDJSONLinesWhole
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
FunctionTestQueryViewKeepsTextBearingJSONRecordsWhole
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
FunctionTestQueryViewKeepsToolMessageContentWithItsID
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
FunctionTestQueryViewMarksEveryGap
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
FunctionTestQueryViewMarksOmittedJSONEnvelope
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
FunctionTestQueryViewMarksSeparateJSONArraysAsNonAdjacent
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
FunctionTestQueryViewNeverOrphansAJSONField
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
FunctionTestQueuedSessionEventReturnsBeforeStoreBusyTimeout
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
FunctionTestRateLimit429IsReturnedNotReplayed
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
FunctionTestRateLimitOnAHealRetryIsNotReplayed
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
FunctionTestRateLimitOnARoutedRequestIsNotRetried
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
FunctionTestRateLimitWithMarksWhileOffIsNotRetried
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
FunctionTestRateLimitedRetryDoesNotDoubleTheAgentsRetries
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
FunctionTestReLoginSwapsTheKeychainSecretWithoutAPause
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
FunctionTestReadBoundedInput
(t *testing.T)
shrink/cmd/caveman-shrink/main_test.go:50
FunctionTestReadNativeHookPayloadReturnsBeforeEOF
(t *testing.T)
proxy/cmd/caveman-proxy/main_test.go:43
FunctionTestReadRejectsEveryInvalidContractField
(t *testing.T)
proxy/internal/runstate/runstate_test.go:139
FunctionTestReadSkillFrontmatterDescriptionForms
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:288
FunctionTestReaderSplitsLikeEncodingJSON
The reader agrees with encoding/json on what is a value and where it ends.
proxy/internal/translate/jsonfast_test.go:25
FunctionTestReadinessProbesTheStoreAtMostOncePerSecond
S13: readiness is unauthenticated, so a probe flood must not become a flood of write transactions.
proxy/internal/middleware/hardening_test.go:179
FunctionTestReadinessReflectsMiddlewareStore
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
FunctionTestReasoningEffort_ByteSafeOnlyFieldAdded
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:79
FunctionTestReasoningEffort_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
FunctionTestReasoningEffort_LowersNotRaises
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:43
FunctionTestReasoningEffort_PreservesCallerSettingsPerEndpoint
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:144
FunctionTestReasoningEffort_RequiresBothFlagAndEvalGate
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:17
FunctionTestReasoningEffort_RespectsCallerEffort
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:61
FunctionTestReasoningEffort_ResponsesPreservesExistingReasoningFields
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:129
FunctionTestReasoningEffort_ResponsesRouteAliasUsesNestedEffort
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:117
FunctionTestReasoningEffort_ResponsesUsesNestedEffort
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:98
FunctionTestReasoningEffort_SkipsNonReasoningModel
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:69
FunctionTestReasoningEffort_SkipsUnsupportedProModelsOnBothEndpoints
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:238
FunctionTestReasoningEffort_UnknownEndpointOrShapePassesThrough
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:181
FunctionTestRecallByteSafeRoundTrip
(t *testing.T)
mem/store_test.go:143
FunctionTestRecallFailsTowardNothing
(t *testing.T)
mem/store_test.go:114
FunctionTestRecallOversizedSingleHitReturnsHeadAndHandle
TestRecallOversizedSingleHitReturnsHeadAndHandle reproduces the 440k-token bug: a single large memory that compression does not shrink. Recall must re
mem/recall_budget_test.go:88
FunctionTestRecallRejectsUnknownNegativeTokenBudget
(t *testing.T)
mem/recall_budget_test.go:77
FunctionTestRecallRespectsTokenBudget
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
FunctionTestRecallReturnsRelevantAboveThreshold
(t *testing.T)
mem/store_test.go:90
FunctionTestRecallThresholdGates
(t *testing.T)
mem/store_test.go:129
FunctionTestRecallToolExposesAndMapsTokenBudget
(t *testing.T)
mem/cmd/cavemem/main_test.go:153
FunctionTestRecallUnlimitedSentinelReturnsEveryRankedHit
(t *testing.T)
mem/recall_budget_test.go:47
FunctionTestReceiptAfterDeleteAnswersDeleted
§12: once deleted, a receipt answers "deleted" and stores nothing.
proxy/internal/middleware/hardening_test.go:722
FunctionTestRecentRequests
(t *testing.T)
proxy/internal/store/store_test.go:87
FunctionTestReclaimLookupsUseIndexes
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
FunctionTestReclaimNeverWritesToADamagedStore
(t *testing.T)
engine/ccr/store_integrity_test.go:146
FunctionTestReconcileAcceptsProviderHeaderVariants
TestReconcileAcceptsProviderHeaderVariants covers the shapes the two major exports actually ship, including a BOM and thousands separators.
proxy/internal/store/learn_reconcile_test.go:79
FunctionTestReconcileFailsClosedOnUnknownSchema
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
FunctionTestReconcileFindsTheUnattributedShare
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
FunctionTestReconcileFlagsMismatchedWindows
TestReconcileFlagsMismatchedWindows catches the most likely user error before they read a nonsense coverage figure.
proxy/internal/store/learn_reconcile_test.go:120
FunctionTestReconcileNeverBorrowsAnotherModelsCoverage
TestReconcileNeverBorrowsAnotherModelsCoverage keeps model matching exact (plus the dated alias), so coverage cannot be manufactured.
proxy/internal/store/learn_reconcile_test.go:100
FunctionTestRecordAndSummary_InferredBasis
(t *testing.T)
proxy/internal/store/store_test.go:11
FunctionTestRecordAppliedFixPrefersOlderReportSnapshotAndRecoversMissingLiveSink
(t *testing.T)
proxy/internal/store/learn_outcomes_test.go:72
FunctionTestRecordBatchFallbackStoresCacheComponentsOutsideRequestsRow
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
FunctionTestRecordBatchStoresCacheComponentsOutsideRequestsRow
(t *testing.T)
proxy/internal/store/cache_components_test.go:162
FunctionTestRecordBatchStoresWhatRecordStores
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
FunctionTestRecordForcesInferredAndSanitizesInvalidAccounting
(t *testing.T)
proxy/internal/store/store_test.go:65
FunctionTestRecordKeepsThePoolAttempt
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
FunctionTestRecordModeAndRoutingOffAreNeverKeyed
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
FunctionTestRecordModeCollectsMetadataWithoutCoreStateReuseOrExactCCR
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:1174
FunctionTestRecordModeGetsNoCacheMechanics
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
FunctionTestRecordModeIsPassThrough
(t *testing.T)
engine/engine_test.go:50
FunctionTestRecordModePassThrough
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
← previousnext →10,301–10,400 of 12,853, ranked by callers