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
TestLongSessionUsesFreshInboundOAuthAndPreservesProviderErrors
(t *testing.T)
proxy/internal/standalone/standalone_test.go:1700
Function
TestLongerTextCountsMore
(t *testing.T)
engine/tokens/tokens_test.go:38
Function
TestLooksLikeSSEAcceptsFramesAndRejectsJSON
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
Function
TestLostCCROriginalSkipsOnlyItsSegment
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
Function
TestMCPDecodePreservesLargeIntegersAndNonTextAttachments
(t *testing.T)
mcp/codemode/stdio_js_builtin_test.go:1012
Function
TestMCPRecoveryCompressesEvenWhenRetrieveToolPresent
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
Function
TestMCPRecoveryCompressesStreamWithMarkerNoServerLoop
TestMCPRecoveryCompressesStreamWithMarkerNoServerLoop proves the headroom-style streaming path: under MCP recovery a STREAMING request is compressed (
proxy/internal/gateway/compress_test.go:783
Function
TestMCPSurfaceParsesObservedClaudeJSONShapesAndSharesPrefixWithoutAttribution
(t *testing.T)
proxy/internal/store/detect_mcp_tax_test.go:11
Function
TestMain
TestStandaloneBoot_ZeroCloudDeps_InferredRows boots the full standalone server — config + BYOK + SQLite — with no Valkey/Postgres/ClickHouse anywhere,
proxy/internal/standalone/standalone_test.go:63
Function
TestMain
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
Function
TestMain
TestMain isolates the suite from the host's corporate-network variables, which Load now reads (#1001).
proxy/internal/config/config_test.go:25
Function
TestMain
(m *testing.M)
shared/platform/catalog/cwd_test.go:23
Function
TestMainHelper
TestMainHelper runs main() in a subprocess for TestSignalDuringBrowserStartup.
browse/cmd/caveman-browse/main_test.go:183
Function
TestMalformedInputPassesThrough
(t *testing.T)
engine/engine_test.go:204
Function
TestMalformedJSONSuffixPassesThroughExactBytes
(t *testing.T)
engine/toolschema_input_test.go:27
Function
TestMalformedNDJSONSuffixDoesNotProduceJSONInvariants
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
Function
TestMalformedToolSchemaSuffixPassesThroughExactBytes
(t *testing.T)
engine/toolschema_input_test.go:11
Function
TestManagedBlockDoesNotAdvertiseAllowlist
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:704
Function
TestManagedDialRejectsNonTLSPortBeforeNetwork
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:148
Function
TestMapProviderError
(t *testing.T)
proxy/providers/adapter_contract_test.go:277
Function
TestMarksSurviveAnUnlabeledSideRequest
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
Function
TestMaskAndElisionCompose
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
Function
TestMaskThresholdUnchangedForMaskableClasses
TestMaskThresholdUnchangedForMaskableClasses: the size rule for what still masks is exactly what it was.
proxy/internal/nativeruntime/mask_elidable_test.go:160
Function
TestMaskedToolOutputTellsTheAgentHowToRecoverIt
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
Function
TestMatchRoute
(t *testing.T)
proxy/providers/adapter_contract_test.go:11
Function
TestMatchRoute_BedrockInvoke
--- Routing / allowlist -------------------------------------------------
proxy/providers/bedrock/bedrock_test.go:27
Function
TestMatchRoute_VertexPredict
--- Routing / allowlist -------------------------------------------------
proxy/providers/vertex/vertex_test.go:28
Function
TestMaxRetentionCapsSlidingRenewal
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:487
Function
TestMeasureAndWrap
(t *testing.T)
engine/pixel/render_test.go:105
Function
TestMemoNeverFlipsABlockSentRaw
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
Function
TestMemoriesDatabaseHasNoPageCap
The page cap belongs to the CCR store only. The memories database must keep the SQLite default.
mem/page_cap_test.go:7
Function
TestMemoryHealthInLearnPlan
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:292
Function
TestMemoryHealthTitlesUseSingular
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:335
Function
TestMemoryOrphans
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:92
Function
TestMemorySinkIDsAndRepoAreRepoSpecific
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:367
Function
TestMemoryTruncation
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:62
Function
TestMessagesAnswerToChatCaller
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
Function
TestMessagesEffortFitsTheModel
Effort on a Messages wire: output_config.effort plus a thinking shape the model takes.
proxy/internal/translate/messages_test.go:661
Function
TestMessagesHostStreamIsNamespaced
--- Messages -> Messages ------------------------------------------------------ A non-Anthropic Messages host's stream: signatures namespaced, an unsi
proxy/internal/translate/messages_test.go:507
Function
TestMessagesNamespaceRoundTrip
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
Function
TestMessagesServerToolsAreRejected
(t *testing.T)
proxy/internal/translate/messages_test.go:114
Function
TestMessagesToChatEffortDialects
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
Function
TestMessagesToChatReplaysOnlyTheRoutesOwnReasoning
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
Function
TestMessagesToChatRequest
--- Messages -> chat: requests ---------------------------------------------
proxy/internal/translate/messages_test.go:37
Function
TestMessagesToChatToolChoice
(t *testing.T)
proxy/internal/translate/messages_test.go:102
Function
TestMessagesToResponsesEffortAndChoices
(t *testing.T)
proxy/internal/translate/messages_responses_test.go:60
Function
TestMessagesToResponsesRequest
--- Messages -> Responses: requests ----------------------------------------
proxy/internal/translate/messages_responses_test.go:11
Function
TestMetadataOnlyRelevanceIsNotDirectEvidence
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
Function
TestMetadataPreservedAcrossIdempotentPuts
(t *testing.T)
engine/ccr/store_test.go:218
Function
TestMetadataRouteAuthenticatesFirst
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
Function
TestMetadataRouteStaysFailClosed
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
Function
TestMetricsIncludeIdentityReloads
S12: /metrics carries the token map and TLS reload series.
proxy/internal/standalone/principal_sources_test.go:171
Function
TestMetricsTokenFromConfigGatesMetrics
(t *testing.T)
proxy/internal/standalone/middleware_test.go:36
Function
TestMetricsTokenGatesMetricsOnly
(t *testing.T)
proxy/internal/gateway/middleware_ops_test.go:55
Function
TestMiddlewareAcceptanceBoundedExactRecoveryPages
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:477
Function
TestMiddlewareAcceptanceBrowserAndFetchURLRefusal
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:281
Function
TestMiddlewareAcceptanceCapabilitiesAndSemanticCorpus
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:74
Function
TestMiddlewareAcceptanceCapacityRetainsLiveOriginals
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:344
Function
TestMiddlewareAcceptanceConcurrentDurableWinner
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:695
Function
TestMiddlewareAcceptanceDefaultDeadlineIncludesQueue
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:313
Function
TestMiddlewareAcceptanceOneHundredAuthenticatedScopes
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:194
Function
TestMiddlewareAcceptancePreparedPlansAndReceipts
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:395
Function
TestMiddlewareAcceptanceScopedIdempotency
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:633
Function
TestMiddlewareAcceptanceSourceIdentityAndUniqueCredit
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:571
Function
TestMiddlewareAcceptanceTwentyTurnsAcrossProcesses
(t *testing.T)
proxy/internal/middleware/acceptance_test.go:1032
Function
TestMiddlewareConfigYAMLAndEnv
(t *testing.T)
proxy/internal/config/middleware_test.go:11
Function
TestMiddlewareDatabaseURLIsEnvOnly
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
Function
TestMiddlewareDeleteCountsAndRemovesOriginals
(t *testing.T)
proxy/internal/store/middleware_test.go:484
Function
TestMiddlewareDeleteFreesAPrincipalsQuota
A principal at its row quota frees it by deleting a session: tombstones do not count.
proxy/internal/store/middleware_test.go:899
Function
TestMiddlewareEncryptionKeyIsEnvOnly
The encryption key is a secret: caveman.yaml can never supply it.
proxy/internal/config/middleware_test.go:33
Function
TestMiddlewareExpiryPurgesEveryElapsedScopeInsideGrace
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
Function
TestMiddlewareExpiryReclaimsCapacityFromElapsedScopes
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
Function
TestMiddlewareExpiryReclaimsCapacityFromRevokedScopes
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
Function
TestMiddlewareExpiryReclaimsPayloadAndKeepsTypedTombstone
(t *testing.T)
proxy/internal/store/middleware_test.go:100
Function
TestMiddlewareFilledCreditCountsAgainstThePrincipal
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
Function
TestMiddlewareGoldenResponsesMatchContractSchemas
Every response the runtime can emit, checked against the contract schemas.
proxy/internal/middleware/protocol_v11_test.go:346
Function
TestMiddlewareIdentityAndHAKeys
(t *testing.T)
proxy/internal/config/middleware_test.go:47
Function
TestMiddlewareMigratesProtocol10Store
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
Function
TestMiddlewareMigrationBackfillsChoiceOriginals
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
Function
TestMiddlewarePrincipalQuotaIsolatesPrincipals
A principal at its quota gets capacity; another principal is unaffected.
proxy/internal/store/middleware_test.go:452
Function
TestMiddlewarePurgeResumesAcrossBatches
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
Function
TestMiddlewareQuotaCountersPersistAndRollback
(t *testing.T)
proxy/internal/store/middleware_test.go:19
Function
TestMiddlewareRestartWorkerProcess
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
Function
TestMiddlewareRetriedReceiptKeepsTheFirst
Receipts are deduplicated on their id: a retry with another body stores nothing and succeeds.
proxy/internal/store/middleware_test.go:973
Function
TestMiddlewareRevocationTombstoneSurvivesGraceThenReclaims
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
Function
TestMiddlewareRevokedGrantAnswersDeletedThroughItsGracePeriod
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
Function
TestMiddlewareSavePlanReplacesOnlyAnExpiredPlan
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
Function
TestMiddlewareShareAndPlaintextKeys
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
Function
TestMiddlewareStartupServe
(t *testing.T)
proxy/cmd/caveman-proxy/middleware_startup_test.go:42
Function
TestMiddlewareSweepFinishesAnAbandonedPurge
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
Function
TestMiddlewareUnauthorizedCountedAndMetricsTyped
Middleware 401s bypass rejectUnauthorized; the mount must still count them, and /metrics must describe every series.
proxy/internal/gateway/middleware_ops_test.go:38
Function
TestMiddlewareUpgradeRecountsUsage
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
Function
TestMiddlewareWritersOfOneAuthorityDoNotInterleave
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
Function
TestMigrateMovesLegacyComponentListsOutOfRequestsRows
(t *testing.T)
proxy/internal/store/cache_components_test.go:259
Function
TestMinifyForRender
(t *testing.T)
engine/pixel/render_test.go:12
Function
TestModelAllowlist_CurrentProfilesAndARNs
(t *testing.T)
proxy/providers/bedrock/bedrock_test.go:200
Function
TestModelVisibleTaskPolicyHasNoCountBasedCodePressure
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:339
Function
TestModelsMetadataRouteForwardsUnchanged
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
Function
TestModelsMetadataRoutePreservesQueryAndDoublePrefix
TestModelsMetadataRoutePreservesQueryAndDoublePrefix covers the two cases #1188 asserted and TestModelsMetadataRouteForwardsUnchanged does not. Pagin
proxy/internal/gateway/models_metadata_route_test.go:319
Function
TestMoonshotK3ChatRequest
(t *testing.T)
proxy/internal/translate/messages_test.go:166
← previous
next →
9,801–9,900 of 12,853, ranked by callers