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
TestStreamUsage_NonObjectStreamOptionsUntouched
stream_options present but not an object shape (malformed on the client's part) must not be guessed at — leave it exactly as sent.
proxy/providers/openai/stream_usage_test.go:138
Function
TestStreamUsage_NonStreamingRequestUntouched
(t *testing.T)
proxy/providers/openai/stream_usage_test.go:76
Function
TestStreamUsage_StreamedResponsesBodyIsUntouched
CW 2: stream_options is a Chat-Completions-only parameter. A streamed Responses request was getting one injected, which sends the provider a field the
proxy/providers/openai/stream_usage_test.go:90
Function
TestString
(t *testing.T)
shared/platform/redact/redact_test.go:149
Function
TestStripCacheControl
(t *testing.T)
proxy/providers/anthropic/content_compress_test.go:502
Function
TestStripHealKeepsTheMarks
A strip heal leaves the marks' anchors alone (they skip thinking blocks): the next request replays the mark and extends the history that was served.
proxy/internal/gateway/route_effort_test.go:1488
Function
TestStripRetrieveCallNormalizesOpenAINullContent
(t *testing.T)
proxy/internal/gateway/compress_test.go:860
Function
TestStripSchemaDepthCapAndStructure
(t *testing.T)
engine/pixel/schemastrip_test.go:87
Function
TestStripSchemaDescriptionsCases
(t *testing.T)
engine/pixel/schemastrip_test.go:11
Function
TestStripToolSchemaAnnotations
(t *testing.T)
engine/compressors/toolschema_annotations_test.go:13
Function
TestStripToolSchemaAnnotationsIsDeterministic
TestStripToolSchemaAnnotationsIsDeterministic pins the cache-stability property the proxy relies on: the same catalog bytes always produce the same ou
engine/compressors/toolschema_annotations_test.go:191
Function
TestStripToolSchemaAnnotationsPreservesOrderAndSpacing
TestStripToolSchemaAnnotationsPreservesOrderAndSpacing pins the minimal-splice property: only the dropped members move, and every other byte — element
engine/compressors/toolschema_annotations_test.go:163
Function
TestStructuralSelectionSurfaceInvariant
TestStructuralSelectionSurfaceInvariant proves the compressed catalog exposes the exact same structural surface (param names, enums, required) as the
shrink/shrink_test.go:105
Function
TestStructuredOutputEveryDirection
--- 2. structured output in every direction ------------------------------------
proxy/internal/translate/wire_gaps_test.go:118
Function
TestStructuredToolOutputIsNotMasked
TestStructuredToolOutputIsNotMasked: the classes with a field grammar reach the elision engine intact, however large they are.
proxy/internal/nativeruntime/mask_elidable_test.go:110
Function
TestSubagentEvidenceMergesAsTypedPointersIntoParentScope
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:911
Function
TestSubagentSpendCountsAgentNamedSpawns
TestSubagentSpendCountsAgentNamedSpawns covers the other half of the tool rename behind #1075. The raw-line spawn counter learned the new "Agent" name
proxy/internal/store/detect_subagent_spend_test.go:88
Function
TestSubagentSpendMeasuresCostWithoutClaimingWaste
TestSubagentSpendMeasuresCostWithoutClaimingWaste pins the decree boundary: the sink reports the measured split and the per-type spawn counts, and it
proxy/internal/store/detect_subagent_spend_test.go:11
Function
TestSubagentSpendSilentWithoutFanOut
TestSubagentSpendSilentWithoutFanOut keeps the sink off a machine that does not delegate.
proxy/internal/store/detect_subagent_spend_test.go:65
Function
TestSubscriptionCompressesLiveZoneByDefault
TestSubscriptionCompressesLiveZoneByDefault pins the product decision: subscription compression is on by default — no account and no extra config valu
proxy/internal/gateway/subscription_live_zone_test.go:191
Function
TestSubscriptionDefaultPassesThroughWithoutMutation
(t *testing.T)
proxy/internal/gateway/live_zone_test.go:185
Function
TestSubscriptionLiveZoneClampCompressesNewestMarkedTurn
TestSubscriptionLiveZoneClampCompressesNewestMarkedTurn documents the one case where the live zone reaches a message that itself carries cache_control
proxy/internal/gateway/subscription_live_zone_test.go:355
Function
TestSubscriptionLiveZoneDeterministicDoubleRun
TestSubscriptionLiveZoneDeterministicDoubleRun pins determinism: the same client bytes must always produce the same upstream bytes, so a replayed pref
proxy/internal/gateway/subscription_live_zone_test.go:389
Function
TestSubscriptionLiveZoneKeepsCacheBreakpointPrefixByteEqual
TestSubscriptionLiveZoneKeepsCacheBreakpointPrefixByteEqual is the cache-safety invariant: every byte at or before the last mid-conversation cache_con
proxy/internal/gateway/subscription_live_zone_test.go:315
Function
TestSubscriptionLiveZoneNeedsNoAccount
TestSubscriptionLiveZoneNeedsNoAccount pins the invariant: local compression is NOT account-gated. A bare server with no entitlement signal of any kin
proxy/internal/gateway/subscription_live_zone_test.go:80
Function
TestSubscriptionLiveZoneOptInCompressesWithoutToolInjectionOrHeaderMutation
(t *testing.T)
proxy/internal/gateway/live_zone_test.go:228
Function
TestSubscriptionLiveZoneRecordsTokensNeverDollars
TestSubscriptionLiveZoneRecordsTokensNeverDollars is the no-fake-savings pin: a compressed subscription row carries the local o200k token estimate wit
proxy/internal/gateway/subscription_live_zone_test.go:429
Function
TestSubscriptionLiveZoneUncompressibleBodyPassesThrough
TestSubscriptionLiveZoneUncompressibleBodyPassesThrough pins the fail-open rule: a request whose live zone cannot be extracted (here: no user message
proxy/internal/gateway/subscription_live_zone_test.go:408
Function
TestSubscriptionLiveZoneUnknownOffSwitchFailsClosed
TestSubscriptionLiveZoneUnknownOffSwitchFailsClosed keeps the operator opt-out fail-closed: an unrecognized subscription_compress value means passthro
proxy/internal/gateway/subscription_live_zone_test.go:112
Function
TestSubscriptionOffSwitchPassesThrough
TestSubscriptionOffSwitchPassesThrough pins the off-switch: the operator can still turn the capability off through the existing subscription_compress
proxy/internal/gateway/subscription_live_zone_test.go:294
Function
TestSubscriptionRecoveryFromRequestToolList
(t *testing.T)
proxy/internal/gateway/subscription_live_zone_test.go:472
Function
TestSubscriptionWithoutMCPRecoveryPassesThrough
TestSubscriptionWithoutMCPRecoveryPassesThrough pins recoverability. Subscription compression is marker-only — the proxy never injects its server-side
proxy/internal/gateway/subscription_live_zone_test.go:136
Function
TestSubscriptionWithoutPrefixCachePassesThrough
TestSubscriptionWithoutPrefixCachePassesThrough pins the maintainability half of the same rule: a rewrite the proxy cannot re-issue on the next turn w
proxy/internal/gateway/subscription_live_zone_test.go:163
Function
TestSuggestedAllowlistEntryWorksAtDialTime
The suggestion must also work at DIAL time, which is where a real request is actually stopped — a token that only satisfies pre-flight sends the opera
shared/platform/ssrf/ssrf_test.go:682
Function
TestSummarizeElidedRespectsItsBudget
(t *testing.T)
engine/compressors/invariants_test.go:247
Function
TestSummarizeElidedStatesOnlyWhatHoldsEverywhere
(t *testing.T)
engine/compressors/invariants_test.go:37
Function
TestSummary
(t *testing.T)
engine/ccr/store_test.go:307
Function
TestSummaryDisclosesCacheWarms
(t *testing.T)
proxy/internal/store/cache_warm_stats_test.go:37
Function
TestSupersedeCanRevertToAnEarlierValue
(t *testing.T)
mem/store_test.go:407
Function
TestSupersedeExpiresOldMemoryAndRecallUsesCurrentVersion
(t *testing.T)
mem/store_test.go:234
Function
TestSupersedeFailsClosedWithoutCorruptingLineage
(t *testing.T)
mem/store_test.go:287
Function
TestSupersedeReadsReplacementFromStdinAndMapsTooLargeExit
(t *testing.T)
mem/cmd/cavemem/main_test.go:317
Function
TestSupersedeRejectsOversizedReplacementWithoutExpiringCurrent
(t *testing.T)
mem/store_test.go:309
Function
TestSupported
(t *testing.T)
proxy/internal/translate/messages_test.go:17
Function
TestSupportsReasoningEffort
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:293
Function
TestSupportsReasoningEffortForEndpointSkipsProAliases
(t *testing.T)
proxy/providers/openai/reasoning_effort_test.go:272
Function
TestSweepBudgetAndBacklogGauge
GO-9: the sweep stops at its time budget, and whatever it left is reported.
proxy/internal/middleware/hardening_test.go:433
Function
TestSweepReclaimsWithoutRequests
Expiry used to run in front of every optimize, sharing its writer. It now runs in the background sweep, in its own transactions, so it commits whether
proxy/internal/middleware/runtime_test.go:543
Function
TestSweptGrantAnswersExpiredUntilGraceEnds
GO-2: a swept grant keeps answering 410 expired until its grace ends, and only then becomes unknown.
proxy/internal/middleware/hardening_test.go:195
Function
TestSwitchingStoresLeavesOneSecret
(t *testing.T)
proxy/internal/pool/pool_test.go:284
Function
TestTLSListenerMapsClientCertificatesToPrincipals
(t *testing.T)
proxy/internal/identity/tls_test.go:64
Function
TestTOONCompressorTabularArrayRoundTrips
(t *testing.T)
engine/compressors/toon_test.go:10
Function
TestTOONCompressorUnsupportedShapesPassThrough
(t *testing.T)
engine/compressors/toon_test.go:27
Function
TestTOONDeterministic
(t *testing.T)
engine/compressors/toon_test.go:73
Function
TestTOONEncodeDecodeRoundTrip
The agent emits the compact TOON form; downstream recovers JSON. The two must be semantically identical so nothing the agent omits gets corrupted on t
engine/cmd/caveman-engine/main_test.go:21
Function
TestTOONNumbersPreserveLexicalForm
(t *testing.T)
engine/compressors/toon_test.go:57
Function
TestTOONRootScalarAndScalarArrayRoundTrip
(t *testing.T)
engine/compressors/toon_test.go:106
Function
TestTOONSortsNonTabularObjectKeys
(t *testing.T)
engine/compressors/toon_test.go:89
Function
TestTOONStringsNeedingQuotesRoundTrip
(t *testing.T)
engine/compressors/toon_test.go:41
Function
TestTOONVerbsFailClosed
Both verbs fail closed: encode refuses shapes it cannot prove round-trip, and decode refuses malformed input, rather than emitting a lossy/guessed res
engine/cmd/caveman-engine/main_test.go:45
Function
TestTabularCSVMarkerHasStableFieldCount
(t *testing.T)
engine/compressors/tabular_test.go:175
Function
TestTabularCSVPreservesCRLFWithoutAddingTrailingNewline
(t *testing.T)
engine/compressors/tabular_test.go:196
Function
TestTabularCSVStaysValidAndKeepsHeaderExtremaAndErrors
(t *testing.T)
engine/compressors/tabular_test.go:30
Function
TestTabularLargeIntegerRangeCoversEveryElidedRow
Past 2^53 two different integers can parse to the same float64 (snowflake IDs, nanosecond timestamps). The id column stayed on the numeric track, the
engine/compressors/tabular_test.go:257
Function
TestTabularMalformedOrTinyPassesThrough
(t *testing.T)
engine/compressors/tabular_test.go:162
Function
TestTabularMarkdownKeepsEscapedPipesInsideCells
(t *testing.T)
engine/compressors/tabular_test.go:130
Function
TestTabularMarkdownKeepsShapeAndIsIdempotent
(t *testing.T)
engine/compressors/tabular_test.go:108
Function
TestTabularMarkerCarriesRowInvariants
(t *testing.T)
engine/compressors/invariants_test.go:458
Function
TestTabularNonFiniteCellIsNotAbsorbedIntoARange
A CSV export with one non-numeric measurement — how pandas, Postgres `numeric` and R all spell a missing value — must not compress to something indist
engine/compressors/tabular_test.go:221
Function
TestTabularQueryKeepsRelevantMiddleRows
(t *testing.T)
engine/compressors/tabular_test.go:62
Function
TestTabularTSVStaysValidAndKeepsQueryRow
(t *testing.T)
engine/compressors/tabular_test.go:80
Function
TestTakeoverKeepsTheDropBlockRefusal
A side loop taking the session over keeps the refused drop_block: back on the main thread a new binding 400 goes straight to the strip.
proxy/internal/gateway/route_effort_test.go:1835
Function
TestTakeoverKeepsTheFixedTopLevel
The main thread's fixed top-level effort comes back with its marks after a side loop took the session over.
proxy/internal/gateway/route_effort_test.go:1763
Function
TestTakeoverKeepsThePreviousMarksPending
An unlabeled multi-turn side loop that takes the session over leaves the main thread's marks pending: the main thread takes them back.
proxy/internal/gateway/route_effort_test.go:1665
Function
TestTamperedPriceCapabilityBreaksTheSnapshotPin
TestTamperedPriceCapabilityBreaksTheSnapshotPin reproduces the 2026-07-31 review probe verbatim: change regional_processing_multiplier from the 1.10 t
shared/platform/catalog/catalog_test.go:342
Function
TestTamperedSignatureHealsByStripping
A tampered or undecryptable signature is no prefix change: drop_block does not apply, so the heal strips from the failing message on.
proxy/internal/gateway/route_effort_test.go:1315
Function
TestTargetCarriesTheLoginsCredentialAndTheHostsWire
(t *testing.T)
proxy/internal/pool/pool_test.go:109
Function
TestTaskContractKeepsPolicyAcrossFollowupsAndInjectsOnlyOnPolicyChange
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:169
Function
TestTaskContractStartsNewGeneralTaskAndRefreshesGoalIdentity
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:275
Function
TestTemporaryCredentialWithoutExpiryStillRefreshes
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:716
Function
TestTerminalANSIColoredOutput
(t *testing.T)
engine/compressors/terminal_test.go:107
Function
TestTerminalCRLFDocumentBehavior
(t *testing.T)
engine/compressors/terminal_test.go:121
Function
TestTerminalCRNumberedRecordsAllSurvive
The collapse decision is all or nothing per line. Dropping only the segments the redundancy gate judges redundant reintroduced #1294 at a smaller scal
engine/compressors/terminal_test.go:219
Function
TestTerminalCRTerminatedDocumentKeepsEveryLine
A bare \r is only a redraw when the frame it overwrote said the same thing. The same byte terminates lines in a classic-Mac document and shows up as a
engine/compressors/terminal_test.go:149
Function
TestTerminalCRTerminatedDocumentWithANSIKeepsEveryLine
(t *testing.T)
engine/compressors/terminal_test.go:167
Function
TestTerminalCollapsesCarriageReturns
(t *testing.T)
engine/compressors/terminal_test.go:27
Function
TestTerminalColoredFinalFrameCollapses
Compress strips ANSI only after collapsing, so the segments have to be compared by their visible text. Judging the raw bytes let a frame that merely g
engine/compressors/terminal_test.go:235
Function
TestTerminalCompressRoundTrip
TestTerminalCompressRoundTrip checks the recoverable-RTK contract end to end: noisy command output is auto-detected as terminal, compressed (lossy, S4
engine/terminal_test.go:82
Function
TestTerminalEventEndsTheStream
An answer ends when the upstream's terminal event arrives, not when the upstream closes the connection: with the upstream lingering 30 s after it, eve
proxy/internal/translate/wire_gaps_test.go:930
Function
TestTerminalIntraLineCRKeepsDistinctSegments
(t *testing.T)
engine/compressors/terminal_test.go:182
Function
TestTerminalIsIdempotent
(t *testing.T)
engine/compressors/terminal_test.go:129
Function
TestTerminalKeepsMixedLineEndings
A single CRLF anywhere used to decide the line ending for the whole document: terminal/config/tabular rewrote every LF to CRLF, and log/searchresult/d
engine/compressors/lineends_test.go:15
Function
TestTerminalKeepsSignalElidesMiddle
(t *testing.T)
engine/compressors/terminal_test.go:44
Function
TestTerminalPassesThroughPlainShort
(t *testing.T)
engine/compressors/terminal_test.go:81
Function
TestTerminalProgressRedrawStillCollapsesWithoutLF
(t *testing.T)
engine/compressors/terminal_test.go:197
Function
TestTerminalProgressRedrawWithLFAndANSI
(t *testing.T)
engine/compressors/terminal_test.go:90
Function
TestTerminalStripsANSI
(t *testing.T)
engine/compressors/terminal_test.go:10
Function
TestTestReportAllPassed
(t *testing.T)
engine/compressors/testreport_test.go:537
Function
TestTestReportDetectedShapesCompress
TestTestReportDetectedShapesCompress pins that a payload Detect routes to test-report really compresses through the engine. Engine.Compress has no fal
engine/compressors/testreport_test.go:398
Function
TestTestReportDetection
Test detection
engine/compressors/testreport_test.go:298
← previous
next →
10,901–11,000 of 12,853, ranked by callers