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
TestCachePointsConverseFallsBackToSystemCheckpoint
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:91
Function
TestCachePointsConverseUninjectableShapesPassThrough
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:282
Function
TestCachePointsDisabledNonPAYGAndMalformedPassThrough
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:254
Function
TestCachePointsInjectsForGlobalInferenceProfile
TestCachePointsInjectsForGlobalInferenceProfile proves the widened population end to end at the transform: a Converse body carrying a modern global.*
proxy/providers/bedrock/cache_points_test.go:402
Function
TestCachePointsPreservesLargeIntegersElsewhereInBody
TestCachePointsPreservesLargeIntegersElsewhereInBody pins the fix: a decode-then-remarshal through map[string]any rounds any integer above 2^53 to the
proxy/providers/bedrock/cache_points_test.go:362
Function
TestCachePointsRespectCallerMarkersByteIdentically
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:222
Function
TestCachePointsSigV4HashesExactTransformedWireBody
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:304
Function
TestCachePointsUnsupportedVendorAndSurfaceAreByteIdentical
(t *testing.T)
proxy/providers/bedrock/cache_points_test.go:176
Function
TestCachePrefixInvariant
--- scenarios --------------------------------------------------------------------
proxy/internal/gateway/cache_prefix_invariant_test.go:562
Function
TestCachePrefixInvariantPixel
(t *testing.T)
proxy/internal/gateway/cache_prefix_invariant_test.go:1727
Function
TestCachePrefixInvariantRawRetryRacingAFork
TestCachePrefixInvariantRawRetryRacingAFork races a turn that takes the raw retry against a fork of it, with no ordering imposed: the fork may be deci
proxy/internal/gateway/cache_prefix_invariant_test.go:1602
Function
TestCachePrefixInvariantResponses
TestCachePrefixInvariantResponses drives Codex-shaped Responses traffic through the net. OpenAI caches the whole prompt, so every item counts, and par
proxy/internal/gateway/cache_prefix_invariant_test.go:1839
Function
TestCacheRefreshesInsideExpiryWindow
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:490
Function
TestCacheSpikeAttribution
(t *testing.T)
proxy/internal/store/detect_cache_hygiene_test.go:56
Function
TestCacheStatus
(t *testing.T)
proxy/providers/adapter_usage_test.go:413
Function
TestCacheTTLIsReadFromTheBody
(t *testing.T)
proxy/internal/cloudlink/cache_ttl_test.go:14
Function
TestCacheTTLRefreshAcrossReadOnlyHits
(t *testing.T)
proxy/internal/store/detect_cache_hygiene_test.go:200
Function
TestCacheWarmBeginNeverBlocks
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:316
Function
TestCacheWarmBounds
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:379
Function
TestCacheWarmCapsConcurrentWarms
Sibling subagents answered together come due together: at most two warms are in flight in the whole process; one that gets no slot before its own dead
proxy/internal/gateway/cache_warm_policy_test.go:501
Function
TestCacheWarmChainStopsWhereThePredictionDoes
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:361
Function
TestCacheWarmClassComesFromTheAnswer
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:114
Function
TestCacheWarmClassifiesSpacedAndGzippedToolUse
TestCacheWarmClassifiesSpacedAndGzippedToolUse verifies the real-world wire shapes api.anthropic.com sends on tool turns: SSE with whitespace after `:
proxy/internal/gateway/cache_warm_test.go:580
Function
TestCacheWarmCorruptGapsFileStartsFromDefaults
(t *testing.T)
proxy/internal/gateway/cache_warm_table_test.go:114
Function
TestCacheWarmCostsExample
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:401
Function
TestCacheWarmDelay
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:415
Function
TestCacheWarmEconomicsFailClosed
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:424
Function
TestCacheWarmEncodedAnswerIsNotClassed
An encoded answer's stop reason is not read: the stream is planned as whichever class warms less, and its next gap teaches neither class.
proxy/internal/gateway/cache_warm_table_test.go:402
Function
TestCacheWarmEvictedPendingStreamIsCounted
A stream evicted (or alive at shutdown) while still waiting is counted as coming back later than it was seen silent, never dropped: the returns that c
proxy/internal/gateway/cache_warm_table_test.go:170
Function
TestCacheWarmFollowsAutoAcrossModels
Auto on Anthropic: the warm belongs to the stream, replays the bytes that went upstream (the routed model, never the literal Auto id), is priced at th
proxy/internal/gateway/cache_warm_policy_test.go:440
Function
TestCacheWarmHeadersAndBytesAreTheAnsweredRequests
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:137
Function
TestCacheWarmJitterIsOnlyEarlier
Warms planned for the same instant are spread over the seconds before it, never after: a late warm is a full-price write.
proxy/internal/gateway/cache_warm_policy_test.go:559
Function
TestCacheWarmKillSwitch
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:484
Function
TestCacheWarmLearnsAndPersistsGaps
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:73
Function
TestCacheWarmLogsThePlanOrTheSkip
One line per answered request says what was planned (info) or why nothing was (debug), with the session as a hash and no content or credential.
proxy/internal/gateway/cache_warm_table_test.go:354
Function
TestCacheWarmMixedLifetimesAreNotWarmed
(t *testing.T)
proxy/internal/gateway/cache_warm_table_test.go:318
Function
TestCacheWarmModelSwitchStopsTheOldModel
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:230
Function
TestCacheWarmNeverLogsCredentials
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:523
Function
TestCacheWarmNewRequestRearms
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:382
Function
TestCacheWarmOneHourLifetime
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:329
Function
TestCacheWarmOverloadPausesTheCredential
An overloaded or failing provider (529, 5xx) pauses warming on the credential, as a 429 does: five minutes unless it names a wait.
proxy/internal/gateway/cache_warm_policy_test.go:581
Function
TestCacheWarmParentRequestLeavesSubagentWarms
A subagent can still be running when its parent talks: the parent's request stops the parent's own warms, never its children's (on the measured sessio
proxy/internal/gateway/cache_warm_policy_test.go:210
Function
TestCacheWarmPlanCountsNeverReturningOnce
Half the streams never come back, half come back at 20 min and pay the whole miss: realized (measured over the streams that return) is 1, and the chan
proxy/internal/gateway/cache_warm_table_test.go:73
Function
TestCacheWarmPlanCountsTheWholeChain
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:32
Function
TestCacheWarmPlanMatchesTheSimulator
The plans .blocks/cache-warm-sim.py prints for the shipped table (--table cache_warm_table.json --plan-cases <the keys>, one digit per warm point): th
proxy/internal/gateway/cache_warm_table_test.go:25
Function
TestCacheWarmPricesTheLiveUsageShape
The usage object exactly as api.anthropic.com sent it on live subscription traffic: priced at the catalog rate, and a stream answered with it is warme
proxy/internal/gateway/cache_warm_test.go:539
Function
TestCacheWarmRealRequest429BacksOff
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:294
Function
TestCacheWarmReleasesTheRequestWhenTheChainEnds
The held request (body and credential headers) goes as soon as the chain is over, not when the stream is next heard from or evicted.
proxy/internal/gateway/cache_warm_table_test.go:252
Function
TestCacheWarmReplaysExactBytesAtZeroOutput
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:236
Function
TestCacheWarmReplaysTheRoutedRequest
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:180
Function
TestCacheWarmSavesOutsideTheWarmerLock
The gaps file is written with the warmer unlocked: a slow disk never holds up the other streams' requests.
proxy/internal/gateway/cache_warm_table_test.go:286
Function
TestCacheWarmScopeFailsClosed
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:458
Function
TestCacheWarmShippedTable
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:53
Function
TestCacheWarmShutdownSavesWhatItLearned
(t *testing.T)
proxy/internal/gateway/cache_warm_table_test.go:216
Function
TestCacheWarmSideRequestLeavesWarmAlone
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:507
Function
TestCacheWarmSkipsRequestsZeroOutputCannotReplay
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:302
Function
TestCacheWarmStopsOnErrorAndOnLostCache
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:401
Function
TestCacheWarmStreamingRequestWarmsWithoutStream
(t *testing.T)
proxy/internal/gateway/cache_warm_test.go:283
Function
TestCacheWarmSubscription429PausesTheLogin
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:243
Function
TestCacheWarmSwitchFollowsWasteFixesModule
(t *testing.T)
proxy/cmd/caveman-proxy/cache_warm_test.go:10
Function
TestCacheWarmToolStopAcrossAnyReads
(t *testing.T)
proxy/internal/gateway/cache_warm_table_test.go:93
Function
TestCacheWarmToolStopAcrossChunks
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:100
Function
TestCacheWarmWaitsForInFlightRealRequest
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:342
Function
TestCacheWarmWallClockDeadline
(t *testing.T)
proxy/internal/gateway/cache_warm_policy_test.go:362
Function
TestCachedPrefixComponentsCoverTheMarkedMessage
TestCachedPrefixComponentsCoverTheMarkedMessage pins the difference from FrozenPrefixComponents: the provider caches THROUGH the last marked message,
proxy/providers/anthropic/content_compress_test.go:534
Function
TestCachedPrefixComponentsIgnoresReasoningEnvelopeAndTracksPrompt
(t *testing.T)
proxy/providers/openai/turn_effort_test.go:35
Function
TestCancelledCallerIsNotNegativeCached
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:674
Function
TestCancelledProbeDoesNotMakeTheReplicaUnready
FX2: readiness is unauthenticated and cached, so a caller that hangs up must not have its cancellation cached as "store not writable" for every probe,
proxy/internal/middleware/hardening_test.go:528
Function
TestCanonicalDedupKeyIgnoresVolatileCodexAndClaudeEnvelopes
(t *testing.T)
engine/harness_envelopes_test.go:183
Function
TestCanonicalProviderAttributionIsMountScoped
(t *testing.T)
proxy/providers/openaicompat/provider_attribution_test.go:11
Function
TestCanonicalizeToolCatalogAnthropicPreservesTrailingCacheControl
(t *testing.T)
proxy/providers/toolzone_canonical_test.go:9
Function
TestCanonicalizeToolCatalogAnthropicSkipsDeferredToolForCacheControl
(t *testing.T)
proxy/providers/toolzone_canonical_test.go:72
Function
TestCanonicalizeToolCatalogBailsOnMultipleCacheControls
(t *testing.T)
proxy/providers/toolzone_canonical_test.go:97
Function
TestCanonicalizeToolCatalogOpenAIAndGemini
(t *testing.T)
proxy/providers/toolzone_canonical_test.go:107
Function
TestCapabilityManifestDigestIsPinned
TestCapabilityManifestDigestIsPinned guards every Cave Build lock in the field. A lock records transform_registry_sha256 and the agent re-checks it at
engine/compressors/capabilities_test.go:58
Function
TestCapabilityManifestStableAndComplete
(t *testing.T)
engine/compressors/capabilities_test.go:10
Function
TestCaptureDirDeletedAtRecordTimeLeavesTrafficUnaffected
The capture directory can disappear under a running proxy. Traffic must not notice — the instrument fails open on every error.
proxy/internal/gateway/capture_test.go:483
Function
TestCaptureDisabledByDefaultWritesNothing
Default-off, through the real handler: an operator who never set the env var gets no instrument at all, and the bytes on the wire are untouched.
proxy/internal/gateway/capture_test.go:321
Function
TestCaptureEnabledLeavesUpstreamBytesIdentical
Enabling the instrument may not change one byte of what the upstream receives.
proxy/internal/gateway/capture_test.go:343
Function
TestCaptureRecordsChatGPTRoute
An operator who sets CAVE_CAPTURE_DIR and runs Codex must not get an empty directory: the ChatGPT route captures the same two sides.
proxy/internal/gateway/capture_test.go:444
Function
TestCaptureRecordsRetryWithOriginalBytes
The 4xx fail-open retry sends the ORIGINAL bytes. Without a second record the file on disk would claim the transformed bytes served the request — conf
proxy/internal/gateway/capture_test.go:393
Function
TestCaptureStdoutHandlesLargeOutput
(t *testing.T)
proxy/cmd/caveman-proxy/status_test.go:247
Function
TestCaptureThroughHandlerPreservesInvalidUTF8Bytes
End to end through the handler on a body carrying invalid UTF-8: the capture must reproduce exactly the bytes the upstream received.
proxy/internal/gateway/capture_test.go:368
Function
TestCaseFoldedKeysAreRefused
§4: encoding/json would match "Scope" to scope; a key that differs from a defined field only by case is refused, at any depth, not given its meaning.
proxy/internal/middleware/hardening_test.go:784
Function
TestCatalogLookupsDoNotDependOnWorkingDirectory
A binary launched outside the repo once found no catalog file by walking up from its working directory, so every window fell back to a provider defaul
shared/platform/catalog/cwd_test.go:35
Function
TestCavemanCacheBustCountedOnOldDB
TestCavemanCacheBustCountedOnOldDB: cache_bust_cause reaches a store created before the column existed, and only caveman-caused busts are counted as c
proxy/internal/store/cache_columns_test.go:119
Function
TestCellAdvanceFourReferenceWidth
TestCellAdvanceFourReferenceWidth pins the reference cell-advance-4 geometry: width = 2*pad + cols*advance + max(0, glyphW-advance), and a lone glyph
engine/pixel/render_density_test.go:27
Function
TestCertificatesFailClosed
A bundle is all-or-nothing: one bad block rejects the file so the trust store is never silently incomplete.
shared/platform/cabundle/cabundle_test.go:33
Function
TestCharsPerPageBalancedVsConservative
TestCharsPerPageBalancedVsConservative pins per-page character capacity on the standard canvas. Geometry changes must update this test and its rendere
engine/pixel/density_gate_test.go:46
Function
TestChatAnswerFailuresAreNotServed
(t *testing.T)
proxy/internal/translate/review_regressions_test.go:52
Function
TestChatAnswerToMessages
--- Messages -> chat: answers ------------------------------------------------
proxy/internal/translate/messages_test.go:311
Function
TestChatCallerFailures
Failures for a chat caller: before content nothing is written (the pool falls back); a cut after content never ends with a finish or [DONE].
proxy/internal/translate/wire_gaps_test.go:461
Function
TestChatCallerReviewFindings
Review findings, each pinned.
proxy/internal/translate/wire_gaps_test.go:609
Function
TestChatDialectGoldens
--- chat -> chat -------------------------------------------------------------- One golden per chat dialect, through a chat caller.
proxy/internal/translate/responses_test.go:569
Function
TestChatEnvelopeNeverForgesASignature
--- envelopes never forge a signature ------------------------------------------------ A reasoning_details envelope carrying unsigned thinking, or thi
proxy/internal/translate/wire_gaps_test.go:567
Function
TestChatGPTAcceptedRawRetryPinsTheConversation
TestChatGPTAcceptedRawRetryPinsTheConversation: once the backend accepted a conversation only as raw bytes, that is what it cached, so the next turn g
proxy/internal/gateway/chatgpt_test.go:1487
Function
TestChatGPTAgentNamesCodexByItsOwnHeaders
(t *testing.T)
proxy/internal/gateway/chatgpt_auto_test.go:723
Function
TestChatGPTAutoAcceptedReplayPinsTheConversationRaw
An accepted replay of the fallback model's own bytes pins the conversation raw, as on a named model: the provider cached those bytes.
proxy/internal/gateway/chatgpt_auto_test.go:584
Function
TestChatGPTAutoBrokenEncodingHasItsOwnReason
A body that fits but does not decode whole is not "too large": it records its own reason, and its decoder is closed when the upstream send aborts.
proxy/internal/gateway/chatgpt_auto_test.go:371
Function
TestChatGPTAutoCloudFailureKeepsTheSessionsModel
A transient Cloud failure runs the model the session was last served by; a limit or a refused login runs the fallback.
proxy/internal/gateway/chatgpt_auto_test.go:532
← previous
next →
8,901–9,000 of 12,853, ranked by callers