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
TestDialContext_LoopbackAllowlist
The dial-time guard must honor the same escape: a real loopback listener is reachable only with the allowlist entry, and never in managed mode.
shared/platform/ssrf/ssrf_test.go:616
Function
TestDialContext_ResolveOnceThenDialValidatedIP
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:54
Function
TestDialContext_SelfHostedFakeIPReachesTUN
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:84
Function
TestDiffCompressorElidesContextLinesThatLookLikeHeaders
The other side of the column-0 rule: a *context* line whose text reads like an extended header (" new file mode …") is context, so it still belongs to
engine/compressors/breadth_test.go:143
Function
TestDiffCompressorKeepsBlankLineChanges
A bare "-" or "+" is how git renders the deletion or addition of a blank line. It was elided as context under a marker claiming only context was dropp
engine/compressors/breadth_test.go:45
Function
TestDiffCompressorKeepsChangesAndElidesContext
(t *testing.T)
engine/compressors/breadth_test.go:13
Function
TestDiffCompressorKeepsHunkLinesThatLookLikeHeaders
A hunk line whose own text starts with a header word is still a hunk line — it keeps its leading ' ', '+' or '-' — so the extended-header prefixes mus
engine/compressors/breadth_test.go:117
Function
TestDiffCompressorKeepsNoNewlineMarker
A file whose last line has no trailing newline is annotated by git with "\ No newline at end of file". It is metadata, not context, but it landed outs
engine/compressors/breadth_test.go:72
Function
TestDiffCompressorKeepsRenameTarget
A pure rename is rendered as "diff --git" + "similarity index" + "rename from" + "rename to". The ±2 keep window around "diff --git" covers only the f
engine/compressors/breadth_test.go:96
Function
TestDiffKeepsChangeLinesStartingWithDash
(t *testing.T)
engine/compressors/lineends_test.go:52
Function
TestDigestCarriesIdentityNotContent
TestDigestCarriesIdentityNotContent is the privacy contract, tested the only way that survives future edits: serialize the whole digest and prove none
proxy/internal/store/learn_digest_test.go:12
Function
TestDigestRanksByMeasurementRung
TestDigestRanksByMeasurementRung proves a provider-counted finding travels with a higher rung than a static estimate, so the cloud does not treat ever
proxy/internal/store/learn_digest_test.go:84
Function
TestDigestSinkIDStripsUserDataHashes
(t *testing.T)
proxy/internal/store/learn_digest_test.go:117
Function
TestDigestStatesWhatItIsAndIsNot
TestDigestStatesWhatItIsAndIsNot keeps the inspect-before-you-send framing on the artifact itself rather than only in the docs.
proxy/internal/store/learn_digest_test.go:103
Function
TestDirectCLIHelper
(t *testing.T)
browse/cmd/caveman-browse/main_integration_test.go:25
Function
TestDirectCommandsPersistChromeAcrossProcesses
(t *testing.T)
browse/cmd/caveman-browse/main_integration_test.go:39
Function
TestDirectMatchTestsFileNameNotWholePath
A term naming an ancestor directory ("src", "internal", "lib" — ordinary prompt words) must not mark every file beneath it as a direct hit.
proxy/internal/repointel/index_test.go:392
Function
TestDiscoverMultiAgentConfigsGeminiOpenCodeCursorOpenClawHermes
(t *testing.T)
mcp/codemode/stdio_js_builtin_test.go:615
Function
TestDiscoverUserMCPConfigs
(t *testing.T)
mcp/codemode/stdio_js_builtin_test.go:532
Function
TestDocumentsCrossEveryDirection
--- 1. documents in every cross direction ------------------------------------
proxy/internal/translate/wire_gaps_test.go:21
Function
TestDroppedNativeRequestIsLoggedWithItsReason
Issue #1279: a native request the runtime cannot answer closes with an empty reply, which the host takes as fail-open, and nothing anywhere said so. T
proxy/internal/nativeruntime/drop_log_test.go:95
Function
TestDroppedNativeRequestLogIsRateLimited
A burst of drops for one reason is one line per window, and the next line counts the ones it stood in for.
proxy/internal/nativeruntime/drop_log_test.go:124
Function
TestDuplicateCredentialDoesNotChangeResolvedAuthMode
Preserving the scheme must not reclassify the caller. A bearer-scheme credential falls to AuthModeOAuth in classifyCredential, and the auth mode gates
proxy/internal/standalone/compat_duplicate_credential_test.go:110
Function
TestDuplicateRules
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:162
Function
TestE2EConcurrentDecisionsAgree
TestE2EConcurrentDecisionsAgree: requests in flight together that reach different first decisions for one live block (one compresses it, another turns
proxy/internal/store/prefix_stability_e2e_test.go:181
Function
TestE2EFullStackCostComparison
TestE2EFullStackCostComparison compares total multi-turn session USD cost across four full-stack tiers on a realistic 50-tool MCP workflow (modeled on
proxy/internal/standalone/e2e_cost_bench_test.go:1603
Function
TestE2EHillClimbRealCorpus
TestE2EHillClimbRealCorpus replays real sanitized local session transcripts and tool outputs when CAVEMAN_BENCH_CORPUS points to a corpus JSON file. S
proxy/internal/standalone/e2e_cost_bench_test.go:1939
Function
TestE2ENativeCodemodeHarnessOptimizations
TestE2ENativeCodemodeHarnessOptimizations measures the stacked non-interfering optimizations built specifically for Claude Code, Codex CLI, and OpenCo
proxy/internal/standalone/e2e_cost_bench_test.go:2245
Function
TestE2EOpenAIPrefixStabilityAcrossRestart
TestE2EOpenAIPrefixStabilityAcrossRestart closes the store and reopens the same database file with a compressor that now emits different bytes. The se
proxy/internal/store/prefix_stability_openai_e2e_test.go:95
Function
TestE2EOpenAIPrefixStabilityUnderConcurrency
TestE2EOpenAIPrefixStabilityUnderConcurrency fires turn 1 serially, then N concurrent turn-2 requests that all carry turn 1 as a FROZEN block. Every o
proxy/internal/store/prefix_stability_openai_e2e_test.go:139
Function
TestE2EPrefixStabilityWithRealStore
TestE2EPrefixStabilityWithRealStore fires turn 1 serially (establishing a stored replacement for t1), then fires N concurrent turn-2 requests that all
proxy/internal/store/prefix_stability_e2e_test.go:110
Function
TestE2EProxyCostAcrossAllProviders
TestE2EProxyCostAcrossAllProviders runs a multi-turn coding-agent conversation (with parallel tool calls, diverse real-world tool outputs, system prom
proxy/internal/standalone/e2e_cost_bench_test.go:1124
Function
TestEarlyReturnStopsTheLineReaders
A relay that returns early (a failure before content) stops its line readers and their timers instead of leaving them blocked.
proxy/internal/translate/relay_framing_test.go:117
Function
TestEditInvalidatesDependentObservationAndSecretsAreNotStored
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:1047
Function
TestEffortForResponsesChatAndTopLevel
(t *testing.T)
proxy/internal/gateway/route_effort_test.go:82
Function
TestEffortLevels
(t *testing.T)
shared/platform/catalog/context_window_test.go:32
Function
TestEffortStateStaysOnItsWire
One session id on both wires: Anthropic's fixed effort and marks never reach OpenAI.
proxy/internal/gateway/route_effort_responses_test.go:224
Function
TestElisionIsDeterministic
A compressed block re-serializes on every later turn of a conversation; if the gate were order- or map-dependent the upstream prefix would rotate and
engine/compressors/redundancy_test.go:172
Function
TestElisionKeepsOneRepresentativeOfEachClass
The complement, and the reason this is a class rule rather than a refusal: a payload that is mostly repetition still elides, and the repeated class st
engine/compressors/redundancy_test.go:53
Function
TestElisionRefusesDocumentOfDistinctRecords
A document of distinct records must survive intact. Eliding it deletes part of the answer and can force the agent to recover the source repeatedly.
engine/compressors/redundancy_test.go:44
Function
TestElisionRefusesLogOfDistinctLines
Distinct log lines are a document, not a stream, and must survive.
engine/compressors/redundancy_test.go:101
Function
TestElisionTreatsDigitVaryingLinesAsOneClass
Repetition is recognised through the values that vary between copies, not despite them: two log lines differing only in a timestamp and a request id a
engine/compressors/redundancy_test.go:86
Function
TestEmbeddedFixturesPass
(t *testing.T)
engine/evals/harness_test.go:39
Function
TestEmitCompressResultPassesOriginalThroughWhenCCRBudgetIsFull
(t *testing.T)
engine/cmd/caveman-engine/main_test.go:191
Function
TestEmitCompressResultRejectsTransformedBytesOnCCRError
(t *testing.T)
engine/cmd/caveman-engine/main_test.go:215
Function
TestEmptyEvidenceIsNotShowable
(t *testing.T)
proxy/internal/repointel/index_test.go:405
Function
TestEmptyGitListingFallsBackToWalk
A directory that an enclosing repository ignores makes `git ls-files` exit 0 with no output. Accepting that as a complete map silently disabled the wh
proxy/internal/repointel/index_test.go:231
Function
TestEmptyIsZero
(t *testing.T)
engine/tokens/tokens_test.go:22
Function
TestEmptyLedgerSaysSoPlainly
TestEmptyLedgerSaysSoPlainly refuses a zero-row card that looks like a measurement.
proxy/internal/store/learn_attribution_test.go:167
Function
TestEmptyModeDefaultsToRecord
(t *testing.T)
engine/engine_test.go:67
Function
TestEmptyNativeConnectionIsNotLoggedAsADrop
A connection that sends nothing (a liveness probe, the stale-socket check of a second runtime) is not a dropped request.
proxy/internal/nativeruntime/drop_log_test.go:149
Function
TestEmptyQueryIsStillByteExact
TestEmptyQueryIsStillByteExact guards the contract the whole recovery path rests on: without a query, nothing about this file may touch the bytes.
engine/retrieve_query_test.go:318
Function
TestEnablementOnlyOpportunityContractsAreClosedAndImmutable
(t *testing.T)
shared/platform/optimizers/optimizers_test.go:171
Function
TestEncodedRequestPassesThroughWithoutTransforms
(t *testing.T)
proxy/internal/gateway/reliability_test.go:129
Function
TestEncryptDecryptScalewayEnvelope
(t *testing.T)
shared/platform/kms/kms_test.go:46
Function
TestEncryptInputAndResponseValidation
(t *testing.T)
shared/platform/kms/kms_test.go:262
Function
TestEncryptRejectsRedirect
(t *testing.T)
shared/platform/kms/kms_test.go:121
Function
TestEndpointAndAPIKeyRegionInventoriesStayNarrowerThanRuntime
(t *testing.T)
proxy/providers/bedrock/bedrock_test.go:177
Function
TestEngineCompressor_BestOf_ReEncodesJSONToTOON
TestEngineCompressor_BestOf_ReEncodesJSONToTOON proves the seam the proxy uses for "replace tool output via the proxy": with CAVE_ENGINE_TOON=best-of,
proxy/internal/standalone/toon_test.go:22
Function
TestEngineCompressor_LogsDroppedEngineError
A broken CCR store made compression silently stop: the engine fails closed and returns its error, engineCompressor dropped it, and the gateway read th
proxy/internal/standalone/compressor_error_log_test.go:30
Function
TestEngineCompressor_LogsDroppedEngineErrorOnSiblings
The typed and query-aware siblings run the same engine path and dropped the same error. A guard on CompressSegment alone would leave both silent.
proxy/internal/standalone/compressor_error_log_test.go:66
Function
TestEngineCompressor_NilLoggerDoesNotPanic
A nil logger is the shipped shape for NewEngineCompressor and for the estimate-only compressor. It must stay a no-op, never a nil dereference.
proxy/internal/standalone/compressor_error_log_test.go:117
Function
TestEngineCompressor_QueryTargetedRetrieve
TestEngineCompressor_QueryTargetedRetrieve proves the query-targeted recovery path copied from Headroom's store.search: with no query the full origina
proxy/internal/standalone/standalone_test.go:402
Function
TestEngineCompressor_StoreOriginalRoundTrip
TestEngineCompressor_StoreOriginalRoundTrip proves the recovery contract that compress mode relies on: the handle StoreOriginal returns resolves, thro
proxy/internal/standalone/standalone_test.go:371
Function
TestEngineCompressor_ThrottlesRepeatedWarnings
A broken store fails on every block of every request. Without a throttle the warning would flood proxy.log and bury whatever else is in it.
proxy/internal/standalone/compressor_error_log_test.go:99
Function
TestEnrichedMarkersAreIdempotent
TestEnrichedMarkersAreIdempotent guards the prefix cache: a compressed block must re-serialize identically on every later turn, so re-compressing enri
engine/compressors/invariants_test.go:567
Function
TestEntriesFollowWhatThePersonSetUpAndWhatTheRuntimeCanTranslate
(t *testing.T)
proxy/internal/pool/pool_test.go:58
Function
TestEnumeratedCountsCoverEveryElidedUnit
TestEnumeratedCountsCoverEveryElidedUnit is the honesty gate for enumeration: the counts must account for the whole run, or an agent reading them woul
engine/compressors/invariants_test.go:342
Function
TestEnvWinsOverEverything
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:65
Function
TestEnvironmentConfigurationAndWrappers
(t *testing.T)
shared/platform/kms/kms_test.go:219
Function
TestEphemeralStoreIsReportedAndNotCompressed
A5: an operator can declare the store ephemeral. It then reports persistent:false and compresses nothing it could not recover after a restart.
proxy/internal/middleware/identity_test.go:157
Function
TestEpochsMapIsBounded
TestEpochsMapIsBounded proves the Guard evicts oldest epochs so its epochs map cannot grow without bound over a long-running proxy's lifetime. It exer
shared/platform/cacheguard/cacheguard_test.go:153
Function
TestErrorLeavesShortNonEndpointURLsAlone
A malformed base URL reaches Error as *url.Error{Op:"parse", URL:"<input>"}. Replacing a one-character URL everywhere shredded the message AND split b
shared/platform/redact/url_error_test.go:75
Function
TestErrorNeverExposesCallerMessageFor5xx
(t *testing.T)
shared/platform/httpx/httpx_test.go:12
Function
TestErrorRemovesTransportURLsWithoutChangingCause
(t *testing.T)
shared/platform/redact/url_error_test.go:15
Function
TestErrorRemovesURLsWithSharedPrefixes
(t *testing.T)
shared/platform/redact/url_error_test.go:61
Function
TestError_BenignMessageUnchanged
(t *testing.T)
shared/platform/redact/redact_test.go:288
Function
TestError_NilReturnsEmpty
--- Error tests -------------------------------------------------------------
shared/platform/redact/redact_test.go:271
Function
TestError_ScrubsSecretInMessage
(t *testing.T)
shared/platform/redact/redact_test.go:277
Function
TestEstimateImageCount
(t *testing.T)
engine/pixel/textprep_test.go:16
Function
TestEstimateTokensRequiresModelAndEffectiveDetail
(t *testing.T)
engine/image/image_test.go:38
Function
TestEstimateUSDFailsClosedOnInvalidInputs
(t *testing.T)
shared/platform/cost/cost_test.go:10
Function
TestEstimateUSDPreservesSubMicroCosts
(t *testing.T)
shared/platform/cost/cost_test.go:31
Function
TestEstimateUSDPricesCacheWriteTTLsSeparately
(t *testing.T)
shared/platform/cost/cost_test.go:41
Function
TestEstimateUSDPricesEveryDisjointBucket
(t *testing.T)
shared/platform/cost/cost_contract_test.go:10
Function
TestEvalCompressionProfitability
(t *testing.T)
engine/pixel/gate_test.go:37
Function
TestEvalReturnsResult
(t *testing.T)
browse/session_test.go:380
Function
TestEventsDropOnFailureWithoutBlocking
(t *testing.T)
proxy/internal/cloudlink/link_test.go:579
Function
TestEventsFollowMeAndTheOptOut
Events flow while signed in with routing off, and say the route stage was off. The level is /me's: decisions only when /me says so, counts when /me na
proxy/internal/cloudlink/link_test.go:807
Function
TestEventsFollowTheDataLevel
(t *testing.T)
proxy/internal/cloudlink/link_test.go:527
Function
TestEventsMatchTheRuntimeV1Schema
Every event, at every level, uses only the fields runtime/v1 defines, with its required ones and its patterns and enums (the schema in the contracts p
proxy/internal/cloudlink/link_test.go:641
Function
TestEventsNeverSentAtLevelOffOrSignedOut
(t *testing.T)
proxy/internal/cloudlink/link_test.go:617
Function
TestEventsStayWithTheLoginThatRecordedThem
Events recorded under one login are never sent with another's credential, and the new login's own data level decides.
proxy/internal/cloudlink/link_test.go:766
Function
TestEveryCatalogEntryHasCapabilitiesVerifiedAt
TestEveryCatalogEntryHasCapabilitiesVerifiedAt guards the inverse mistake from the one TestOldestVerifiedAtIsNotSilentlyAdvanced guards: forgetting to
shared/platform/catalog/catalog_test.go:145
Function
TestEveryCatalogEntryHasRoutingCapabilityFields
cave-auto's contextFits gate (in the hosted router) rejects any candidate whose catalog capabilities lack a positive context_window_tokens, and candid
shared/provider-catalog/catalog_test.go:199
Function
TestEveryCurrentCatalogRowMatchesItsImmutableDatedSnapshot
(t *testing.T)
shared/platform/catalog/catalog_test.go:319
Function
TestEveryRecoveryToolSpellingIsExempt
TestEveryRecoveryToolSpellingIsExempt pins the exemption to every spelling in the providers.IsRecoveryToolName allowlist, not just the plain MCP one.
proxy/internal/gateway/recovery_exempt_test.go:86
Function
TestEvidenceSkipsVendoredPathsAlreadyPresentInMap
(t *testing.T)
proxy/internal/repointel/index_test.go:344
Function
TestExactMatchGrader
(t *testing.T)
engine/evals/harness_test.go:91
Function
TestExactRecoveryAndUTF8Pages
(t *testing.T)
proxy/internal/middleware/runtime_test.go:139
← previous
next →
9,301–9,400 of 12,853, ranked by callers