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
TestScanSkillsSkipsMissingAndDanglingSkillFiles
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:246
Function
TestScanSkillsSkipsModelInvocationDisabledSkills
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:268
Function
TestScanSymbolsCapsAtFiveHundredAcrossSiblingDeclarations
Top-level declarations are siblings in file.Decls, not nested; the cap must hold across all of them, not just within the one being visited.
proxy/internal/repointel/index_test.go:494
Function
TestScopeAndBrowserAuthorization
(t *testing.T)
proxy/internal/middleware/runtime_test.go:264
Function
TestScopedTrialMovesIgnoreImportedContext
(t *testing.T)
proxy/internal/store/trial_feature_test.go:361
Function
TestScrubHeaders
--- ScrubHeaders tests ------------------------------------------------------
shared/platform/redact/redact_test.go:230
Function
TestScrubHeaders_NilSafe
(t *testing.T)
shared/platform/redact/redact_test.go:262
Function
TestSearchResultCompressorKeepsImportantHits
(t *testing.T)
engine/compressors/breadth_test.go:171
Function
TestSearchResultQueryKeepsRelevantMiddleHit
(t *testing.T)
engine/compressors/breadth_test.go:196
Function
TestSecondReviewFindings
The rest of the review's findings, pinned.
proxy/internal/translate/wire_gaps_test.go:671
Function
TestSecondStripHealWidensTheFirst
A second strip heal on the same history widens the first instead of replacing it, so the earlier blocks stay stripped.
proxy/internal/gateway/route_effort_test.go:1332
Function
TestSectionCorpusCapsSessionsAndBytes
(t *testing.T)
proxy/internal/store/detect_sections_test.go:10
Function
TestSeededRatioFailureFailsClosed
A seeded gate failure must make the harness report Passed=false, so `caveman evals run` exits non-zero.
engine/evals/harness_test.go:65
Function
TestSelectionProfileReadsAnthropicInputSchema
TestSelectionProfileReadsAnthropicInputSchema pins that an Anthropic-format tool (schema under input_schema) exposes the same surface as the MCP and O
shrink/shrink_test.go:133
Function
TestSelfHostedBlockSuggestsAWorkingAllowlistEntry
A fail-closed guard that does not name its own escape hatch reads as "unsupported" rather than "not opted in": #841 concluded the proxy could not forw
shared/platform/ssrf/ssrf_test.go:647
Function
TestServeConnClosesWithinBudgetUnderHeldWriteLock
TestServeConnClosesWithinBudgetUnderHeldWriteLock reproduces the reporter's observation at the socket layer: the connection closes with zero bytes, an
proxy/internal/nativeruntime/hook_budget_test.go:132
Function
TestServeConnLogsAHookBudgetDrop
The same empty reply must not be silent in the proxy log: the line says the hook budget ran out, which is what the reporter could not see (#1279).
proxy/internal/nativeruntime/hook_budget_test.go:164
Function
TestServeConnRejectsOversizedRequestWithoutDecision
(t *testing.T)
proxy/internal/nativeruntime/server_test.go:83
Function
TestServeConnRuntimeErrorReturnsNoSyntheticDecision
(t *testing.T)
proxy/internal/nativeruntime/server_test.go:112
Function
TestServeDoesNotExpire
Use the real serve loop in a subprocess, with isolated persistence. The old timeout is accelerated; no heartbeat or hook event keeps the process alive
proxy/cmd/caveman-proxy/lifetime_test.go:18
Function
TestServeExitsWhenConfiguredMiddlewareCannotStart
GO-5: a middleware the operator configured that cannot start stops the process, as a shared Postgres store always did.
proxy/cmd/caveman-proxy/middleware_startup_test.go:51
Function
TestServeStaysReadyWhenDefaultMiddlewareCannotStart
The default local middleware failing leaves inference up and the replica ready, with readiness saying the middleware is degraded (GO-5 made it unready
proxy/cmd/caveman-proxy/middleware_startup_test.go:67
Function
TestServeUnixRejectsOverlongSocketPathWithActionableError
(t *testing.T)
proxy/internal/nativeruntime/server_unix_path_test.go:21
Function
TestServerErrorCodesFromParityFixture
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:250
Function
TestServerRetrieveSupportedOnlyForImplementedWireGrammars
(t *testing.T)
proxy/internal/gateway/retrieve_tool_test.go:10
Function
TestSessionCacheKeyNeverOverwritesThePrefixOptimizer
TestSessionCacheKeyNeverOverwritesThePrefixOptimizer: cache_key.go's prefix-signature optimizer may already have set the field on the same request. Th
proxy/providers/openai/session_cache_key_test.go:93
Function
TestSessionCacheKeyPreconditions
(t *testing.T)
proxy/providers/openai/session_cache_key_test.go:65
Function
TestSessionCacheKeySetsAStableHashedKey
(t *testing.T)
proxy/providers/openai/session_cache_key_test.go:27
Function
TestSessionCloseAndTargetSnapshotsAreSafe
(t *testing.T)
browse/session_test.go:110
Function
TestSessionConsumerRecordsTrendSession
(t *testing.T)
proxy/internal/store/learn_trends_test.go:153
Function
TestSessionContextPastFallbackWindowInfersLargerWindow
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:395
Function
TestSessionEndBehindSlowEventIsStillArchived
TestSessionEndBehindSlowEventIsStillArchived pins the one event the deadline must not drop: a session.end that arrives while the session stripe is hel
proxy/internal/nativeruntime/hook_budget_test.go:234
Function
TestSessionEndDoesNotAttestApproximateFallbackCompression
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:786
Function
TestSessionEndDoesNotOvertakeAQueuedEvent
session.end queued behind an event that was already waiting for the session stripe must not run first: the earlier event's capture would land after th
proxy/internal/nativeruntime/hook_budget_test.go:298
Function
TestSessionEndWritesHonestReceiptOutsideModelContext
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:697
Function
TestSessionMarkerIgnoresInvalidSignatureAndConflictingIDsFailCorrelation
(t *testing.T)
proxy/internal/nativeruntime/marker_test.go:27
Function
TestSessionMarkerMatchesJSONEscapedMarkerInRealRequestBody
TestSessionMarkerMatchesJSONEscapedMarkerInRealRequestBody exercises the shape a real HTTP body actually has: the marker sits inside a JSON string, so
proxy/internal/nativeruntime/marker_test.go:47
Function
TestSessionMarkerStripsValidBytesAndPreservesEverythingElse
(t *testing.T)
proxy/internal/nativeruntime/marker_test.go:13
Function
TestSessionProducedCommitBoundaries
TestSessionProducedCommitBoundaries pins the overlap window, including the grace period for a commit made just after the agent stopped.
proxy/internal/store/detect_outcomes_test.go:115
Function
TestSessionResumeSurvivesRuntimeAndStoreRestart
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:948
Function
TestSessionStatsCountCallsWithoutSharedStoreContamination
(t *testing.T)
mcp/engine_tools_stats_test.go:12
Function
TestSessionStatsCountSafeFallbackButNotRejectedResults
(t *testing.T)
mcp/engine_tools_stats_test.go:50
Function
TestSessionUsageCorrelatesOnlyExactSessionAndLabelsBasis
(t *testing.T)
proxy/internal/store/session_usage_test.go:9
Function
TestSessionUsageCountsNoWarmAsARequest
(t *testing.T)
proxy/internal/store/cache_warm_stats_test.go:47
Function
TestSessionUsagePreservesApproximateCorrelationBasis
(t *testing.T)
proxy/internal/store/session_usage_test.go:63
Function
TestSetModelSwapsOnlyTheTopLevelModel
(t *testing.T)
proxy/internal/gateway/route_test.go:24
Function
TestShortToolOutputIsNotMasked
TestShortToolOutputIsNotMasked (#1365): a stub that carries no content costs the agent a full extra model request to redeem, which is more than writin
proxy/internal/nativeruntime/mask_elidable_test.go:174
Function
TestShownModelInStreamsAtEverySplit
The agent's copy names the asked model at every split of the stream, in each provider's stream shape; nothing else changes.
proxy/internal/gateway/route_effort_test.go:873
Function
TestShownModelStaysIncremental
A stream stays live: a complete event is handed out without waiting for more input, and a pair split across reads is held only until it completes.
proxy/internal/gateway/route_effort_test.go:907
Function
TestShrinkAndRecoverAcrossProcesses
(t *testing.T)
shrink/cmd/caveman-shrink/main_test.go:15
Function
TestShrinkByteSafeOnMalformed
(t *testing.T)
shrink/shrink_test.go:196
Function
TestShrinkCLIHelperProcess
(t *testing.T)
shrink/cmd/caveman-shrink/main_test.go:75
Function
TestShrinkCompressesCatalog
(t *testing.T)
shrink/shrink_test.go:50
Function
TestShrinkPreservesArgumentConstraints
TestShrinkPreservesArgumentConstraints is the call-validity gate at the product boundary: a shrunk catalog must keep the sentences an agent needs to b
shrink/shrink_test.go:156
Function
TestShrinkReturnsPassThroughResultWhenCCRIsUnavailable
(t *testing.T)
shrink/shrink_test.go:210
Function
TestShrinkRoundTripsThroughAFreshStore
TestShrinkRoundTripsThroughAFreshStore is the reversibility gate. It proves the recovery handle a shrink mints is resolvable from a SEPARATE store ins
shrink/shrink_test.go:76
Function
TestShutdownNeedsThisGenerationsTokenOnLoopback
Windows `caveman stop` asks over the listener because no signal reaches a detached proxy there gracefully. Only the run-state file's shutdown token st
proxy/cmd/caveman-proxy/status_test.go:89
Function
TestShutdownTokenIsNotTheIdentityHealthPublishes
health/live hands its caller the instance token on loopback, even when the gate behind it answers 401 and whatever Host the caller names. That token m
proxy/cmd/caveman-proxy/status_test.go:137
Function
TestSideRequestKeepsTheMainThreadsHeal
An unlabeled side request leaves the main thread's strip and drop_block refusal alone: the next main request is stripped up front and served.
proxy/internal/gateway/route_effort_test.go:1685
Function
TestSideRequestLabelsMirrorCloud
The side-request labels mirror Cloud's request kinds: Codex's subagent kind and turn metadata, OpenCode's agent name, and a Codex parent thread from t
proxy/internal/gateway/route_effort_test.go:1126
Function
TestSideRequestLeavesTheSessionsMarks
A side request with its own history reads the session's marks but never changes them; the main thread keeps its marks.
proxy/internal/gateway/route_effort_test.go:579
Function
TestSign_CanonicalizesQueryDeterministically
(t *testing.T)
shared/platform/awssig/awssig_test.go:172
Function
TestSign_CollapsesSequentialHeaderWhitespace
(t *testing.T)
shared/platform/awssig/awssig_test.go:192
Function
TestSign_MatchesBotocorePathSignatures
These fixtures were produced offline with the actual botocore==1.43.89 SigV4Auth (S3SigV4Auth for S3), not another copy of this signer's algorithm. So
shared/platform/awssig/awssig_test.go:21
Function
TestSign_MatchesReferenceSignature
This uses the AWS documentation example credentials, time and request URL (https://docs.aws.amazon.com/IAM/latest/UserGuide/create-signed-request.html
shared/platform/awssig/awssig_test.go:90
Function
TestSign_RejectsMissingCredentials
(t *testing.T)
shared/platform/awssig/awssig_test.go:158
Function
TestSign_SecretNeverAppearsInHeaders
HONESTY/SECURITY: the secret access key must never appear in any header the signer sets on the request. Only the (non-reversible) signature digest and
shared/platform/awssig/awssig_test.go:126
Function
TestSignalDuringBrowserStartup
TestSignalDuringBrowserStartup pins the startup half of #1016: a SIGTERM that lands while NewCDPDriver is still bringing the browser up must not take
browse/cmd/caveman-browse/main_test.go:198
Function
TestSignedHostMatchesForwardURL
TestSignedHostMatchesForwardURL pins the fix for the managed-path signing bug: SigV4 always signs Host, so the signed Host must equal the URL the prox
proxy/providers/bedrock/compress_sign_test.go:101
Function
TestSignedInProxyRoutesAndReports
The whole path in one process: the CLI's signed-in state on disk, the proxy with the link, a Cloud that routes Auto, and a provider that records the m
proxy/internal/cloudlink/e2e_test.go:42
Function
TestSilentUpstreamIsKeptAlive
A silent upstream gets a ping (Messages) or a keepalive comment (Responses) so the caller's connection is proved alive.
proxy/internal/translate/messages_test.go:748
Function
TestSimulateBestOfElisionRemainsLossy
(t *testing.T)
engine/simulate_test.go:190
Function
TestSimulateBestOfTOONIsLosslessToModelButNeedsCCRForByteExactRecovery
(t *testing.T)
engine/simulate_test.go:167
Function
TestSimulateLossyUnrecoverableWithoutStore
TestSimulateLossyUnrecoverableWithoutStore is the honesty case: a lossy (S4) compressor with NO store. A real Compress fails closed to pass-through (z
engine/simulate_test.go:112
Function
TestSimulateMatchesCompressAccounting
TestSimulateMatchesCompressAccounting checks that the dry-run matches Compress: its token accounting equals what a real Compress reports for the same
engine/simulate_test.go:71
Function
TestSimulateNonLossyRecoverableWithoutStore
TestSimulateNonLossyRecoverableWithoutStore exercises the byte-safe branch: a non-lossy (S1) compressor's reduction is Recoverable even with NO store,
engine/simulate_test.go:139
Function
TestSimulateRecordAndPassThroughClaimNothing
TestSimulateRecordAndPassThroughClaimNothing covers the pass-through conditions.
engine/simulate_test.go:89
Function
TestSimulateReportsReductionAndStoresNothing
TestSimulateReportsReductionAndStoresNothing is the S13 acceptance: a unit dry-run on a fixture, no network, and — critically — no CCR write. It repor
engine/simulate_test.go:23
Function
TestSinkPatternsForPracticeID
(t *testing.T)
proxy/internal/store/practice_mapping_test.go:40
Function
TestSlogRemovesJoinedAndNestedTransportURLs
(t *testing.T)
shared/platform/redact/url_error_test.go:41
Function
TestSlogReplaceAttrScrubsStringAndErrorValues
(t *testing.T)
shared/platform/redact/redact_test.go:297
Function
TestSlowClientKeepsTheUsage
A client slower than usageGrace on the finish chunk still gets the usage and [DONE] the upstream had already sent. (The relay arms the clock at the fi
proxy/internal/translate/wire_gaps_test.go:1103
Function
TestSmallElisionsDoNotBuyTheContractLine
(t *testing.T)
engine/compressors/invariants_test.go:554
Function
TestSnapshotCachesUIDTargetsAndRecoversExactAXTree
(t *testing.T)
browse/session_test.go:150
Function
TestSnapshotIframeTreeStillCompressesToUIDs
TestSnapshotIframeTreeStillCompressesToUIDs is the issue #140 pass-through regression at the tool boundary: before the fix an iframe's dangling childI
browse/session_test.go:210
Function
TestSnapshotPassThroughFailsClosedAndKeepsUIDCache
TestSnapshotPassThroughFailsClosedAndKeepsUIDCache pins the second half of issue #140: when the engine genuinely cannot produce a recovery-backed view
browse/session_test.go:243
Function
TestSnapshotQueryFocusesOutputAndTargetCache
(t *testing.T)
browse/session_test.go:299
Function
TestSnapshotRejectsDangerousURLsAndUnboundedWaitWithoutDriving
(t *testing.T)
browse/session_test.go:315
Function
TestSniffIfdefIsNotPython
`#ifdef`, `#ifndef` and `typedef` all contain "def ", which the Python sniff matched, so a guarded C or C++ file was parsed as Python and passed throu
engine/compressors/code_cpp_realworld_test.go:12
Function
TestSocketPathUnixIsInstallLocal
(t *testing.T)
proxy/internal/nativeruntime/server_unix_path_test.go:14
Function
TestSocketPathWindowsIsPerInstall
(t *testing.T)
proxy/internal/nativeruntime/server_windows_test.go:10
Function
TestSocketPathWindowsMatchesNodeAdapters
Same vector as packages/cli/tests/windows-platform.runtime.mjs. JavaScript's toLowerCase turns İ into two code points and a word-final Σ into ς, so a
proxy/internal/nativeruntime/server_windows_test.go:27
Function
TestSourcePrefixedPrincipalsCannotReachTokenPrincipalSessions
S2: principals are keyed by source, so a certificate CN or a JWT subject spelling a token principal's name gets 404 on that principal's handle, even i
proxy/internal/standalone/principal_sources_test.go:37
Function
TestSpendAbsentWithoutBillingUsage
TestSpendAbsentWithoutBillingUsage keeps a dollar figure off a machine whose transcripts carry no usage blocks: no card at all beats a $0.00 card.
proxy/internal/store/learn_pricing_test.go:99
Function
TestSpendNeverBorrowsAnotherModelsPrice
TestSpendNeverBorrowsAnotherModelsPrice is the fail-closed guard: an unknown model contributes zero dollars and is disclosed, never priced at a siblin
proxy/internal/store/learn_pricing_test.go:58
Function
TestSpendPricesDisjointBuckets
TestSpendPricesDisjointBuckets proves the headline money number is arithmetic on provider-counted, DISJOINT buckets: a cache read is not billed at the
proxy/internal/store/learn_pricing_test.go:11
Function
TestSpendResolvesDatedModelAlias
TestSpendResolvesDatedModelAlias allows exactly one alias step — the trailing snapshot date, which names the same model — and nothing looser.
proxy/internal/store/learn_pricing_test.go:82
Function
TestSplitAgentPath
(t *testing.T)
proxy/providers/agentpath_test.go:8
Function
TestSplitLineNumberedListingRejectsNonListings
Recognition must be strict: a false positive corrupts content that merely begins with digits.
engine/compressors/code_listing_test.go:54
Function
TestSplitLineNumberedListingRoundTrips
(t *testing.T)
engine/compressors/code_listing_test.go:37
← previous
next →
10,701–10,800 of 12,853, ranked by callers