MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

FunctionTestLongSessionUsesFreshInboundOAuthAndPreservesProviderErrors
(t *testing.T)
proxy/internal/standalone/standalone_test.go:1700
FunctionTestLongerTextCountsMore
(t *testing.T)
engine/tokens/tokens_test.go:38
FunctionTestLooksLikeSSEAcceptsFramesAndRejectsJSON
An SSE body behind a mislabelled JSON Content-Type still has to be tracked: the sniff must accept it, which is what keeps #1397's own case fixed.
proxy/internal/gateway/chatgpt_test.go:591
FunctionTestLostCCROriginalSkipsOnlyItsSegment
A protocol 1.0 choice whose CCR original is gone cannot be recovered from this store, so only its segment goes unreplaced: a 1.0 client gets a plan, n
proxy/internal/middleware/hardening_test.go:287
FunctionTestMCPDecodePreservesLargeIntegersAndNonTextAttachments
(t *testing.T)
mcp/codemode/stdio_js_builtin_test.go:1012
FunctionTestMCPRecoveryCompressesEvenWhenRetrieveToolPresent
TestMCPRecoveryCompressesEvenWhenRetrieveToolPresent proves MCP recovery does not bail on a pre-existing caveman_retrieve tool (which, under wrap+MCP,
proxy/internal/gateway/compress_test.go:830
FunctionTestMCPRecoveryCompressesStreamWithMarkerNoServerLoop
TestMCPRecoveryCompressesStreamWithMarkerNoServerLoop proves the headroom-style streaming path: under MCP recovery a STREAMING request is compressed (
proxy/internal/gateway/compress_test.go:783
FunctionTestMCPSurfaceParsesObservedClaudeJSONShapesAndSharesPrefixWithoutAttribution
(t *testing.T)
proxy/internal/store/detect_mcp_tax_test.go:11
FunctionTestMain
TestStandaloneBoot_ZeroCloudDeps_InferredRows boots the full standalone server — config + BYOK + SQLite — with no Valkey/Postgres/ClickHouse anywhere,
proxy/internal/standalone/standalone_test.go:63
FunctionTestMain
TestMain drops the agents' relocation variables so a test run from inside a relocated Claude Code or Codex never falls through to the real config dir.
proxy/internal/store/agent_roots_test.go:12
FunctionTestMain
TestMain isolates the suite from the host's corporate-network variables, which Load now reads (#1001).
proxy/internal/config/config_test.go:25
FunctionTestMain
(m *testing.M)
shared/platform/catalog/cwd_test.go:23
FunctionTestMainHelper
TestMainHelper runs main() in a subprocess for TestSignalDuringBrowserStartup.
browse/cmd/caveman-browse/main_test.go:183
FunctionTestMalformedInputPassesThrough
(t *testing.T)
engine/engine_test.go:204
FunctionTestMalformedJSONSuffixPassesThroughExactBytes
(t *testing.T)
engine/toolschema_input_test.go:27
FunctionTestMalformedNDJSONSuffixDoesNotProduceJSONInvariants
TestNDJSONLinesSummarizeAsEvents: a line that is a whole JSON object is read as one, not run through the logfmt matcher that cannot see `"k":"v"`. Wit
engine/compressors/invariants_test.go:870
FunctionTestMalformedToolSchemaSuffixPassesThroughExactBytes
(t *testing.T)
engine/toolschema_input_test.go:11
FunctionTestManagedBlockDoesNotAdvertiseAllowlist
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:704
FunctionTestManagedDialRejectsNonTLSPortBeforeNetwork
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:148
FunctionTestMapProviderError
(t *testing.T)
proxy/providers/adapter_contract_test.go:277
FunctionTestMarksSurviveAnUnlabeledSideRequest
An unlabeled request with its own short history (a side request without hint headers) matches none of the session's marks and leaves them; a model out
proxy/internal/gateway/route_effort_test.go:1040
FunctionTestMaskAndElisionCompose
TestMaskAndElisionCompose is the end-to-end intent: a JSON page passes afterTool untouched, and the engine then compresses it into rows plus stated in
proxy/internal/nativeruntime/mask_elidable_test.go:205
FunctionTestMaskThresholdUnchangedForMaskableClasses
TestMaskThresholdUnchangedForMaskableClasses: the size rule for what still masks is exactly what it was.
proxy/internal/nativeruntime/mask_elidable_test.go:160
FunctionTestMaskedToolOutputTellsTheAgentHowToRecoverIt
TestMaskedToolOutputTellsTheAgentHowToRecoverIt pins the contract of the mask: it replaces a whole tool output, so it must carry BOTH a reference that
proxy/internal/nativeruntime/mask_recoverability_test.go:20
FunctionTestMatchRoute
(t *testing.T)
proxy/providers/adapter_contract_test.go:11
FunctionTestMatchRoute_BedrockInvoke
--- Routing / allowlist -------------------------------------------------
proxy/providers/bedrock/bedrock_test.go:27
FunctionTestMatchRoute_VertexPredict
--- Routing / allowlist -------------------------------------------------
proxy/providers/vertex/vertex_test.go:28
FunctionTestMaxRetentionCapsSlidingRenewal
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:487
FunctionTestMeasureAndWrap
(t *testing.T)
engine/pixel/render_test.go:105
FunctionTestMemoNeverFlipsABlockSentRaw
TestMemoNeverFlipsABlockSentRaw: the replacement memo is keyed by content across conversations. A block one conversation already sent raw must never b
proxy/internal/gateway/cache_prefix_invariant_test.go:1352
FunctionTestMemoriesDatabaseHasNoPageCap
The page cap belongs to the CCR store only. The memories database must keep the SQLite default.
mem/page_cap_test.go:7
FunctionTestMemoryHealthInLearnPlan
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:292
FunctionTestMemoryHealthTitlesUseSingular
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:335
FunctionTestMemoryOrphans
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:92
FunctionTestMemorySinkIDsAndRepoAreRepoSpecific
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:367
FunctionTestMemoryTruncation
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:62
FunctionTestMessagesAnswerToChatCaller
A chat caller's answer from a Messages host: chunks, reasoning as reasoning_content plus an envelope, tool calls, usage, [DONE]; the envelope goes bac
proxy/internal/translate/wire_gaps_test.go:374
FunctionTestMessagesEffortFitsTheModel
Effort on a Messages wire: output_config.effort plus a thinking shape the model takes.
proxy/internal/translate/messages_test.go:661
FunctionTestMessagesHostStreamIsNamespaced
--- Messages -> Messages ------------------------------------------------------ A non-Anthropic Messages host's stream: signatures namespaced, an unsi
proxy/internal/translate/messages_test.go:507
FunctionTestMessagesNamespaceRoundTrip
An Opus -> DeepSeek -> Opus session stays valid: DeepSeek gets back its own thinking (signature restored), Anthropic never sees DeepSeek's, and Opus's
proxy/internal/translate/messages_test.go:571
FunctionTestMessagesServerToolsAreRejected
(t *testing.T)
proxy/internal/translate/messages_test.go:114
FunctionTestMessagesToChatEffortDialects
One golden per chat effort dialect for a Messages caller, and the effort a caller's own output_config or thinking stands for when Options names none.
proxy/internal/translate/messages_test.go:123
FunctionTestMessagesToChatReplaysOnlyTheRoutesOwnReasoning
A chat route's own reasoning goes back to that route and model as reasoning_content; nobody else's does.
proxy/internal/translate/messages_test.go:218
FunctionTestMessagesToChatRequest
--- Messages -> chat: requests ---------------------------------------------
proxy/internal/translate/messages_test.go:37
FunctionTestMessagesToChatToolChoice
(t *testing.T)
proxy/internal/translate/messages_test.go:102
FunctionTestMessagesToResponsesEffortAndChoices
(t *testing.T)
proxy/internal/translate/messages_responses_test.go:60
FunctionTestMessagesToResponsesRequest
--- Messages -> Responses: requests ----------------------------------------
proxy/internal/translate/messages_responses_test.go:11
FunctionTestMetadataOnlyRelevanceIsNotDirectEvidence
The BM25-metadata-only shape is what produced the unrelated file:line guesses; it must never qualify as showable evidence.
proxy/internal/repointel/index_test.go:378
FunctionTestMetadataPreservedAcrossIdempotentPuts
(t *testing.T)
engine/ccr/store_test.go:218
FunctionTestMetadataRouteAuthenticatesFirst
TestMetadataRouteAuthenticatesFirst keeps the route oracle shut: an unauthenticated metadata read answers 401 like every other mount, so the 401/404 s
proxy/internal/gateway/models_metadata_route_test.go:249
FunctionTestMetadataRouteStaysFailClosed
TestMetadataRouteStaysFailClosed proves the new read-only surface did not turn the closed route allowlist into a prefix pass-through.
proxy/internal/gateway/models_metadata_route_test.go:199
FunctionTestMetricsIncludeIdentityReloads
S12: /metrics carries the token map and TLS reload series.
proxy/internal/standalone/principal_sources_test.go:171
FunctionTestMetricsTokenFromConfigGatesMetrics
(t *testing.T)
proxy/internal/standalone/middleware_test.go:36
FunctionTestMetricsTokenGatesMetricsOnly
(t *testing.T)
proxy/internal/gateway/middleware_ops_test.go:55
FunctionTestMiddlewareAcceptanceBoundedExactRecoveryPages
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:477
FunctionTestMiddlewareAcceptanceBrowserAndFetchURLRefusal
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:281
FunctionTestMiddlewareAcceptanceCapabilitiesAndSemanticCorpus
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:74
FunctionTestMiddlewareAcceptanceCapacityRetainsLiveOriginals
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:344
FunctionTestMiddlewareAcceptanceConcurrentDurableWinner
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:695
FunctionTestMiddlewareAcceptanceDefaultDeadlineIncludesQueue
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:313
FunctionTestMiddlewareAcceptanceOneHundredAuthenticatedScopes
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:194
FunctionTestMiddlewareAcceptancePreparedPlansAndReceipts
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:395
FunctionTestMiddlewareAcceptanceScopedIdempotency
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:633
FunctionTestMiddlewareAcceptanceSourceIdentityAndUniqueCredit
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:571
FunctionTestMiddlewareAcceptanceTwentyTurnsAcrossProcesses
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:1032
FunctionTestMiddlewareConfigYAMLAndEnv
(t *testing.T)
proxy/internal/config/middleware_test.go:11
FunctionTestMiddlewareDatabaseURLIsEnvOnly
A database URL carries a password: caveman.yaml is refused, not ignored, so a replica never silently runs on SQLite the operator did not choose.
proxy/internal/config/middleware_test.go:79
FunctionTestMiddlewareDeleteCountsAndRemovesOriginals
(t *testing.T)
proxy/internal/store/middleware_test.go:484
FunctionTestMiddlewareDeleteFreesAPrincipalsQuota
A principal at its row quota frees it by deleting a session: tombstones do not count.
proxy/internal/store/middleware_test.go:899
FunctionTestMiddlewareEncryptionKeyIsEnvOnly
The encryption key is a secret: caveman.yaml can never supply it.
proxy/internal/config/middleware_test.go:33
FunctionTestMiddlewareExpiryPurgesEveryElapsedScopeInsideGrace
A4: the purge batch used to be the first 128 elapsed scopes, and purged scopes stayed elapsed for the whole grace period, so every pass reselected the
proxy/internal/store/middleware_test.go:422
FunctionTestMiddlewareExpiryReclaimsCapacityFromElapsedScopes
A shared store used to wedge permanently: expiry reclaimed no rows, so the 100,000-row admission cap stayed tripped forever once a few thousand sessio
proxy/internal/store/middleware_test.go:181
FunctionTestMiddlewareExpiryReclaimsCapacityFromRevokedScopes
Revocation traffic alone, with no scope ever elapsing, used to wedge the store for a grace period: every revoked session's tombstones counted against
proxy/internal/store/middleware_test.go:290
FunctionTestMiddlewareExpiryReclaimsPayloadAndKeepsTypedTombstone
(t *testing.T)
proxy/internal/store/middleware_test.go:100
FunctionTestMiddlewareFilledCreditCountsAgainstThePrincipal
GO-7: a protocol 1.0 credit row that gets its body filled belongs to the principal that filled it, so the body counts against that principal's quota.
proxy/internal/store/middleware_test.go:619
FunctionTestMiddlewareGoldenResponsesMatchContractSchemas
Every response the runtime can emit, checked against the contract schemas.
proxy/internal/middleware/protocol_v11_test.go:346
FunctionTestMiddlewareIdentityAndHAKeys
(t *testing.T)
proxy/internal/config/middleware_test.go:47
FunctionTestMiddlewareMigratesProtocol10Store
A store written by protocol 1.0 migrates in place: its counters stay right under the new triggers, scopes get a max-retention clock, and legacy CCR gr
proxy/internal/store/middleware_test.go:532
FunctionTestMiddlewareMigrationBackfillsChoiceOriginals
A store written before choices named their original gets the column backfilled from each choice's payload, so the first sweep after the upgrade does n
proxy/internal/store/middleware_test.go:680
FunctionTestMiddlewarePrincipalQuotaIsolatesPrincipals
A principal at its quota gets capacity; another principal is unaffected.
proxy/internal/store/middleware_test.go:452
FunctionTestMiddlewarePurgeResumesAcrossBatches
sessions/delete revokes first, then purges in batches that each commit on their own: between batches the authority already answers "deleted", and repe
proxy/internal/store/middleware_test.go:709
FunctionTestMiddlewareQuotaCountersPersistAndRollback
(t *testing.T)
proxy/internal/store/middleware_test.go:19
FunctionTestMiddlewareRestartWorkerProcess
This helper runs only as a separately executed native test process. The parent supplies every prepare/release gate through stdin; neither stored outpu
proxy/internal/middleware/acceptance_test.go:840
FunctionTestMiddlewareRetriedReceiptKeepsTheFirst
Receipts are deduplicated on their id: a retry with another body stores nothing and succeeds.
proxy/internal/store/middleware_test.go:973
FunctionTestMiddlewareRevocationTombstoneSurvivesGraceThenReclaims
A revoked scope's tombstone must answer "deleted" for one full grace period, the same window an elapsed scope's tombstone gets, and only then reclaim:
proxy/internal/store/middleware_test.go:231
FunctionTestMiddlewareRevokedGrantAnswersDeletedThroughItsGracePeriod
A revoked marker must keep answering "deleted" on the RECOVERY path for its whole grace period, not just on the optimize path. Two different rows car
proxy/internal/store/middleware_test.go:348
FunctionTestMiddlewareSavePlanReplacesOnlyAnExpiredPlan
A plan is replaced only once it has expired: a live one is never overwritten, whatever its writer last read.
proxy/internal/store/middleware_test.go:875
FunctionTestMiddlewareShareAndPlaintextKeys
The per-principal queue share and the plaintext migration flag read the environment like every other key; Configured tells an operator-set middleware
proxy/internal/config/middleware_test.go:128
FunctionTestMiddlewareStartupServe
(t *testing.T)
proxy/cmd/caveman-proxy/middleware_startup_test.go:42
FunctionTestMiddlewareSweepFinishesAnAbandonedPurge
A sessions/delete nobody retried is finished by the sweep, not left holding content until the tombstone's grace ends, and one bounded batch per sweep
proxy/internal/store/middleware_test.go:781
FunctionTestMiddlewareUnauthorizedCountedAndMetricsTyped
Middleware 401s bypass rejectUnauthorized; the mount must still count them, and /metrics must describe every series.
proxy/internal/gateway/middleware_ops_test.go:38
FunctionTestMiddlewareUpgradeRecountsUsage
Counters written by accounting that counted tombstones (or drifted any other way) are recomputed once, when the store is upgraded.
proxy/internal/store/middleware_test.go:932
FunctionTestMiddlewareWritersOfOneAuthorityDoNotInterleave
Writers of one scope or authority never interleave: a decision read waits for a competing writer's commit and then sees it. SQLite gets this from its
proxy/internal/store/middleware_concurrency_test.go:60
FunctionTestMigrateMovesLegacyComponentListsOutOfRequestsRows
(t *testing.T)
proxy/internal/store/cache_components_test.go:259
FunctionTestMinifyForRender
(t *testing.T)
engine/pixel/render_test.go:12
FunctionTestModelAllowlist_CurrentProfilesAndARNs
(t *testing.T)
proxy/providers/bedrock/bedrock_test.go:200
FunctionTestModelVisibleTaskPolicyHasNoCountBasedCodePressure
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:339
FunctionTestModelsMetadataRouteForwardsUnchanged
TestModelsMetadataRouteForwardsUnchanged is issue #1187: every OpenAI-compatible client reads model metadata from GET /v1/models, and Hermes sizes its
proxy/internal/gateway/models_metadata_route_test.go:54
FunctionTestModelsMetadataRoutePreservesQueryAndDoublePrefix
TestModelsMetadataRoutePreservesQueryAndDoublePrefix covers the two cases #1188 asserted and TestModelsMetadataRouteForwardsUnchanged does not. Pagin
proxy/internal/gateway/models_metadata_route_test.go:319
FunctionTestMoonshotK3ChatRequest
(t *testing.T)
proxy/internal/translate/messages_test.go:166
← previousnext →9,801–9,900 of 12,853, ranked by callers