MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

FunctionTestSessionCacheKeySetsAStableHashedKey
(t *testing.T)
proxy/providers/openai/session_cache_key_test.go:27
FunctionTestSessionCloseAndTargetSnapshotsAreSafe
(t *testing.T)
browse/session_test.go:110
FunctionTestSessionConsumerRecordsTrendSession
(t *testing.T)
proxy/internal/store/learn_trends_test.go:153
FunctionTestSessionContextPastFallbackWindowInfersLargerWindow
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:395
FunctionTestSessionEndBehindSlowEventIsStillArchived
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
FunctionTestSessionEndDoesNotAttestApproximateFallbackCompression
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:786
FunctionTestSessionEndDoesNotOvertakeAQueuedEvent
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
FunctionTestSessionEndWritesHonestReceiptOutsideModelContext
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:697
FunctionTestSessionMarkerIgnoresInvalidSignatureAndConflictingIDsFailCorrelation
(t *testing.T)
proxy/internal/nativeruntime/marker_test.go:27
FunctionTestSessionMarkerMatchesJSONEscapedMarkerInRealRequestBody
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
FunctionTestSessionMarkerStripsValidBytesAndPreservesEverythingElse
(t *testing.T)
proxy/internal/nativeruntime/marker_test.go:13
FunctionTestSessionProducedCommitBoundaries
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
FunctionTestSessionResumeSurvivesRuntimeAndStoreRestart
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:948
FunctionTestSessionStatsCountCallsWithoutSharedStoreContamination
(t *testing.T)
mcp/engine_tools_stats_test.go:12
FunctionTestSessionStatsCountSafeFallbackButNotRejectedResults
(t *testing.T)
mcp/engine_tools_stats_test.go:50
FunctionTestSessionUsageCorrelatesOnlyExactSessionAndLabelsBasis
(t *testing.T)
proxy/internal/store/session_usage_test.go:9
FunctionTestSessionUsageCountsNoWarmAsARequest
(t *testing.T)
proxy/internal/store/cache_warm_stats_test.go:47
FunctionTestSessionUsagePreservesApproximateCorrelationBasis
(t *testing.T)
proxy/internal/store/session_usage_test.go:63
FunctionTestSetModelSwapsOnlyTheTopLevelModel
(t *testing.T)
proxy/internal/gateway/route_test.go:24
FunctionTestShortToolOutputIsNotMasked
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
FunctionTestShownModelInStreamsAtEverySplit
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
FunctionTestShownModelStaysIncremental
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
FunctionTestShrinkAndRecoverAcrossProcesses
(t *testing.T)
shrink/cmd/caveman-shrink/main_test.go:15
FunctionTestShrinkByteSafeOnMalformed
(t *testing.T)
shrink/shrink_test.go:196
FunctionTestShrinkCLIHelperProcess
(t *testing.T)
shrink/cmd/caveman-shrink/main_test.go:75
FunctionTestShrinkCompressesCatalog
(t *testing.T)
shrink/shrink_test.go:50
FunctionTestShrinkPreservesArgumentConstraints
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
FunctionTestShrinkReturnsPassThroughResultWhenCCRIsUnavailable
(t *testing.T)
shrink/shrink_test.go:210
FunctionTestShrinkRoundTripsThroughAFreshStore
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
FunctionTestShutdownNeedsThisGenerationsTokenOnLoopback
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
FunctionTestShutdownTokenIsNotTheIdentityHealthPublishes
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
FunctionTestSideRequestKeepsTheMainThreadsHeal
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
FunctionTestSideRequestLabelsMirrorCloud
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
FunctionTestSideRequestLeavesTheSessionsMarks
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
FunctionTestSign_CanonicalizesQueryDeterministically
(t *testing.T)
shared/platform/awssig/awssig_test.go:172
FunctionTestSign_CollapsesSequentialHeaderWhitespace
(t *testing.T)
shared/platform/awssig/awssig_test.go:192
FunctionTestSign_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
FunctionTestSign_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
FunctionTestSign_RejectsMissingCredentials
(t *testing.T)
shared/platform/awssig/awssig_test.go:158
FunctionTestSign_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
FunctionTestSignalDuringBrowserStartup
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
FunctionTestSignedHostMatchesForwardURL
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
FunctionTestSignedInProxyRoutesAndReports
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
FunctionTestSilentUpstreamIsKeptAlive
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
FunctionTestSimulateBestOfElisionRemainsLossy
(t *testing.T)
engine/simulate_test.go:190
FunctionTestSimulateBestOfTOONIsLosslessToModelButNeedsCCRForByteExactRecovery
(t *testing.T)
engine/simulate_test.go:167
FunctionTestSimulateLossyUnrecoverableWithoutStore
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
FunctionTestSimulateMatchesCompressAccounting
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
FunctionTestSimulateNonLossyRecoverableWithoutStore
TestSimulateNonLossyRecoverableWithoutStore exercises the byte-safe branch: a non-lossy (S1) compressor's reduction is Recoverable even with NO store,
engine/simulate_test.go:139
FunctionTestSimulateRecordAndPassThroughClaimNothing
TestSimulateRecordAndPassThroughClaimNothing covers the pass-through conditions.
engine/simulate_test.go:89
FunctionTestSimulateReportsReductionAndStoresNothing
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
FunctionTestSinkPatternsForPracticeID
(t *testing.T)
proxy/internal/store/practice_mapping_test.go:40
FunctionTestSlogRemovesJoinedAndNestedTransportURLs
(t *testing.T)
shared/platform/redact/url_error_test.go:41
FunctionTestSlogReplaceAttrScrubsStringAndErrorValues
(t *testing.T)
shared/platform/redact/redact_test.go:297
FunctionTestSlowClientKeepsTheUsage
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
FunctionTestSmallElisionsDoNotBuyTheContractLine
(t *testing.T)
engine/compressors/invariants_test.go:554
FunctionTestSnapshotCachesUIDTargetsAndRecoversExactAXTree
(t *testing.T)
browse/session_test.go:150
FunctionTestSnapshotIframeTreeStillCompressesToUIDs
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
FunctionTestSnapshotPassThroughFailsClosedAndKeepsUIDCache
TestSnapshotPassThroughFailsClosedAndKeepsUIDCache pins the second half of issue #140: when the engine genuinely cannot produce a recovery-backed view
browse/session_test.go:243
FunctionTestSnapshotQueryFocusesOutputAndTargetCache
(t *testing.T)
browse/session_test.go:299
FunctionTestSnapshotRejectsDangerousURLsAndUnboundedWaitWithoutDriving
(t *testing.T)
browse/session_test.go:315
FunctionTestSniffIfdefIsNotPython
`#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
FunctionTestSocketPathUnixIsInstallLocal
(t *testing.T)
proxy/internal/nativeruntime/server_unix_path_test.go:14
FunctionTestSocketPathWindowsIsPerInstall
(t *testing.T)
proxy/internal/nativeruntime/server_windows_test.go:10
FunctionTestSocketPathWindowsMatchesNodeAdapters
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
FunctionTestSourcePrefixedPrincipalsCannotReachTokenPrincipalSessions
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
FunctionTestSpendAbsentWithoutBillingUsage
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
FunctionTestSpendNeverBorrowsAnotherModelsPrice
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
FunctionTestSpendPricesDisjointBuckets
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
FunctionTestSpendResolvesDatedModelAlias
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
FunctionTestSplitAgentPath
(t *testing.T)
proxy/providers/agentpath_test.go:8
FunctionTestSplitLineNumberedListingRejectsNonListings
Recognition must be strict: a false positive corrupts content that merely begins with digits.
engine/compressors/code_listing_test.go:54
FunctionTestSplitLineNumberedListingRoundTrips
(t *testing.T)
engine/compressors/code_listing_test.go:37
FunctionTestStaleButValidCredentialsServedDuringOutage
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:639
FunctionTestStaleReferences
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:203
FunctionTestStaleStripNeverMatchesANewHistory
A remembered strip belongs to the history it was made on: a new history whose message at the strip's end happens to be the same keeps its thinking.
proxy/internal/gateway/route_effort_test.go:1815
FunctionTestStalledEndpointBoundsCredentialsLatency
The whole chain runs under p.mu on the request path, so an endpoint that accepts a connection and then never answers used to hold every other Bedrock
shared/platform/awscreds/awscreds_test.go:754
FunctionTestStandaloneActiveModeAutoCachesAcrossProvidersAndModelSwitches
(t *testing.T)
proxy/internal/standalone/standalone_test.go:121
FunctionTestStandaloneAnthropicModelDiscoveryRoutesPassThrough
The bare /v1/models spelling is shared by the OpenAI and Anthropic wire protocols, and the real proxy registers Anthropic first. The catalog read must
proxy/internal/standalone/provider_routes_test.go:164
FunctionTestStandaloneAzureAuthBoundariesEndToEnd
TestStandaloneAzureAuthBoundariesEndToEnd keeps the synthetic placeholder path distinct from real Entra bearer credentials: the exact sentinel may be
proxy/internal/standalone/standalone_test.go:1117
FunctionTestStandaloneBedrockPartialEnvPairDoesNotFallThroughToRole
A typo'd secret variable must not silently switch the signing principal to whatever role the host carries. This is the shipped path (chain wired), not
proxy/internal/standalone/bedrock_chain_test.go:150
FunctionTestStandaloneBedrockPreservesEncodedRequestOnWire
(t *testing.T)
proxy/internal/standalone/standalone_test.go:1325
FunctionTestStandaloneBedrockReSignsSDKRequestWithTaskRole
(t *testing.T)
proxy/internal/standalone/bedrock_chain_test.go:84
FunctionTestStandaloneBedrockRejectsUnresolvableSignedRequests
(t *testing.T)
proxy/internal/standalone/standalone_test.go:1271
FunctionTestStandaloneBedrockResignsSDKRequests
(t *testing.T)
proxy/internal/standalone/standalone_test.go:1208
FunctionTestStandaloneBedrockSignsWithTaskRoleWhenEnvHasNoKeys
(t *testing.T)
proxy/internal/standalone/bedrock_chain_test.go:46
FunctionTestStandaloneBedrockWithoutAnyCredentialStillFailsClosed
(t *testing.T)
proxy/internal/standalone/bedrock_chain_test.go:129
FunctionTestStandaloneBoot_ZeroCloudDeps_InferredRows
(t *testing.T)
proxy/internal/standalone/standalone_test.go:75
FunctionTestStandaloneCABundle_TrustsPrivateRootForProviderTLS
TestStandaloneCABundle_TrustsPrivateRootForProviderTLS is the corporate TLS inspection shape: the provider presents a certificate from a root that onl
proxy/internal/standalone/standalone_test.go:1769
FunctionTestStandaloneClientLifetimeAndCancellation
The production SSRF-guarded client must permit a response to remain open beyond the old request cap. Explicit operator deadlines remain supported.
proxy/internal/standalone/standalone_test.go:1654
FunctionTestStandaloneCompressMode_RealEngine_QueryAware
TestStandaloneCompressMode_RealEngine_QueryAware proves query relevance reaches the real JSON compressor through the full proxy path. The planted midd
proxy/internal/standalone/standalone_test.go:517
FunctionTestStandaloneCompressMode_RealEngine_Recoverable
TestStandaloneCompressMode_RealEngine_Recoverable boots standalone in compress mode with the real engine, sends a request whose message content is a c
proxy/internal/standalone/standalone_test.go:445
FunctionTestStandaloneCompressMode_TOON_ReplacesToolOutput
TestStandaloneCompressMode_TOON_ReplacesToolOutput is the end-to-end proof that the proxy replaces a tool_result's verbose JSON with TOON before it re
proxy/internal/standalone/toon_test.go:47
FunctionTestStandaloneConcurrentEncodedResponsesRemainDecodable
#897 hypothesized a shared response re-encoder. This test instead checks the actual contract: overlapping, distinct compressed responses keep their ex
proxy/internal/standalone/concurrent_encoding_review_test.go:31
FunctionTestStandaloneCostBreakdownUsesDistinctReasoningRate
(t *testing.T)
proxy/internal/gateway/pricing_semantics_test.go:158
FunctionTestStandaloneGeminiGoogleEnvFallbackEndToEnd
TestStandaloneGeminiGoogleEnvFallbackEndToEnd proves the resolver keeps the Gemini fallback policy even when GEMINI_API_KEY is empty, so the gateway c
proxy/internal/standalone/standalone_test.go:993
FunctionTestStandaloneGeminiQueryCredentialsEndToEnd
(t *testing.T)
proxy/internal/standalone/gemini_query_auth_test.go:14
FunctionTestStandaloneGeminiStableGenerationRoutes
(t *testing.T)
proxy/internal/standalone/provider_routes_test.go:84
FunctionTestStandaloneLeavesAmbiguousFallbackUncorrelated
(t *testing.T)
proxy/internal/standalone/standalone_test.go:251
FunctionTestStandaloneNativeProviderHeadersEndToEnd
Native SDK API-key headers must retain the caller's principal, including when the persistent proxy has an unrelated provider key configured in its pro
proxy/internal/standalone/standalone_test.go:1028
← previousnext →10,301–10,400 of 12,391, ranked by callers