Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
12,391 in github.com/JuliusBrussee/caveman
⨍
Functions
12,391
◇
Types & classes
1,304
↳
Endpoints
5
Function
TestStandaloneNativeStreamsAndProviderErrors
These fixtures follow the provider SDK's native wire, including raw AWS EventStream payloads (the event name is in a binary header, not a JSON wrapper
proxy/internal/standalone/provider_stream_test.go:30
Function
TestStandaloneOpenAIModelDiscoveryRoutesPassThrough
(t *testing.T)
proxy/internal/standalone/provider_routes_test.go:111
Function
TestStandaloneOpenCodeGoAuthEndToEnd
TestStandaloneOpenCodeGoAuthEndToEnd drives the Pi wire shapes through the full standalone handler: the /w/pi agent prefix, the built-in opencode-go m
proxy/internal/standalone/standalone_test.go:1477
Function
TestStandalonePricingMatchesManagedRegionalRules
(t *testing.T)
proxy/internal/gateway/pricing_semantics_test.go:21
Function
TestStandaloneProductionTransportPreservesEncodedResponseWireBytes
(t *testing.T)
proxy/internal/standalone/standalone_test.go:304
Function
TestStandaloneSSRF_BlocksPrivateUpstream
TestStandaloneSSRF_BlocksPrivateUpstream proves the SSRF dial guard is always on in standalone (not gated on CAVE_ENV=prod): a request whose upstream
proxy/internal/standalone/standalone_test.go:281
Function
TestStandaloneStreamErrorKeepsBilledUsageWithoutClaimingSavings
(t *testing.T)
proxy/internal/standalone/provider_stream_test.go:165
Function
TestStandaloneStripsSignedNativeSessionMarkerBeforeProviderAndCorrelatesRow
(t *testing.T)
proxy/internal/standalone/standalone_test.go:178
Function
TestStandaloneSubscriptionCompress_NoAccountRequired
TestStandaloneSubscriptionCompress_NoAccountRequired proves the invariant end to end with the real engine: a subscription-authenticated coding-agent r
proxy/internal/standalone/standalone_test.go:594
Function
TestStandaloneTokenCountRoutesPreserveAccountingRequests
(t *testing.T)
proxy/internal/standalone/provider_routes_test.go:31
Function
TestStandaloneUpstreamProxy_RoutesProviderTrafficThroughProxy
TestStandaloneUpstreamProxy_RoutesProviderTrafficThroughProxy is the #1001 path end to end: caveman.yaml upstream_proxy sends provider traffic to a co
proxy/internal/standalone/standalone_test.go:1733
Function
TestStandaloneUsesOnlyExplicitApproximateSessionFallback
(t *testing.T)
proxy/internal/standalone/standalone_test.go:220
Function
TestStandaloneVertexExpressCredentialsEndToEnd
(t *testing.T)
proxy/internal/standalone/vertex_express_auth_test.go:13
Function
TestStandaloneVertexRegionAgnosticFixtureProbe
TestStandaloneVertexRegionAgnosticFixtureProbe does nothing in a normal run. It is the child process of the test above.
proxy/internal/gateway/pricing_semantics_test.go:122
Function
TestStandaloneVertexRegionAgnosticPricingOnFixtureCatalog
TestStandaloneVertexRegionAgnosticPricingOnFixtureCatalog proves that a regional Vertex request takes a global row's price only when that row declares
proxy/internal/gateway/pricing_semantics_test.go:104
Function
TestStartWarmsTheRoutePath
A started link, signed in with routing on, warms once at start: the asks' own key, x-cave-warm and no body. Routing off, or a link no runtime started,
proxy/internal/cloudlink/warm_test.go:80
Function
TestStateBoundsAndLogin
An oversized state is not kept; an answer without one (a side request's) keeps the one there; a new login forgets every state.
proxy/internal/cloudlink/route_effort_test.go:167
Function
TestStateOnlyEventStillRunsAfterTheDeadline
subagent.start sends the host nothing; its effect is the state write, so a stripe held past the hook deadline delays it instead of dropping it.
proxy/internal/nativeruntime/hook_budget_test.go:344
Function
TestStateRoundTripsPerSessionAndChild
Cloud's state goes back per session; a child sends its parent's as parent_state; last goes as reported, its counts bounded.
proxy/internal/cloudlink/route_effort_test.go:129
Function
TestStatedInvariantsAreLiterallyTrue
TestStatedInvariantsAreLiterallyTrue re-derives every claim a marker makes against the rows the marker actually replaced. This is the honesty gate: a
engine/compressors/invariants_test.go:604
Function
TestStatefulChainKeepsTheCacheKey
A previous_response_id chain (answered off) keeps the session's key, so its follow-ups go where the first request's cache is.
proxy/internal/gateway/route_effort_responses_test.go:285
Function
TestStatefulResponsesChainsAreNotRouted
A Responses chain continued by previous_response_id is never routed: its follow-ups carry no human text, so a decision could not hold for the turn.
proxy/internal/cloudlink/link_test.go:752
Function
TestStatsChatGPTRecordsFinalBytesAndSeparateEquivalent
(t *testing.T)
proxy/internal/gateway/stats_accounting_test.go:367
Function
TestStatsCustomOriginKeepsTokenDeltaUnpriced
(t *testing.T)
proxy/internal/gateway/stats_accounting_test.go:350
Function
TestStatsHTMLAtomicReplacementDoesNotFollowTargetSymlink
(t *testing.T)
proxy/internal/store/stats_report_test.go:62
Function
TestStatsHTMLFixture
(t *testing.T)
proxy/internal/store/stats_report_test.go:82
Function
TestStatsHTMLInteractiveAccounting
(t *testing.T)
proxy/internal/store/stats_report_test.go:117
Function
TestStatsHTMLPreservesPrivateEscapedSnapshot
(t *testing.T)
proxy/internal/store/stats_report_test.go:14
Function
TestStatsIsInferredSessionScopedNeverVerified
(t *testing.T)
mcp/server_test.go:317
Function
TestStatsMeteringCountsCachedReplacementsOnEachProviderRequest
(t *testing.T)
proxy/internal/gateway/stats_accounting_test.go:302
Function
TestStatsMeteringFollowsFinalAcceptedRequest
(t *testing.T)
proxy/internal/gateway/stats_accounting_test.go:256
Function
TestStatsMissingObservedBucketRateStaysUnpriced
(t *testing.T)
proxy/internal/store/stats_test.go:281
Function
TestStatsPersistenceKeepsReceiptEquationConsistent
(t *testing.T)
proxy/internal/store/stats_test.go:267
Function
TestStatsPersistenceRejectsInvalidSnapshotAndTokenBuckets
(t *testing.T)
proxy/internal/store/stats_test.go:235
Function
TestStatsPricingOriginRequiresExactProvider
(t *testing.T)
proxy/internal/gateway/stats_accounting_test.go:321
Function
TestStatsQueryUsesJulianDayIndex
(t *testing.T)
proxy/internal/store/stats_test.go:360
Function
TestStatsReceiptBoundDoesNotTruncateTotals
(t *testing.T)
proxy/internal/store/stats_test.go:255
Function
TestStatsReportEmptyAndZeroDiffer
(t *testing.T)
proxy/internal/store/stats_test.go:168
Function
TestStatsReportFiltersJointGroupsAndUTCWindow
(t *testing.T)
proxy/internal/store/stats_test.go:141
Function
TestStatsReportKeepsAPISavingsAndSubscriptionEquivalentSeparate
(t *testing.T)
proxy/internal/store/stats_test.go:52
Function
TestStatsReportKeepsRegressionsAndExcludesFailedAndLegacySavings
(t *testing.T)
proxy/internal/store/stats_test.go:104
Function
TestStatsReportKeepsWarmSpendOutOfRequests
(t *testing.T)
proxy/internal/store/cache_warm_stats_test.go:93
Function
TestStatsReportMissingIdentityFiltersMatchDisplayedLabels
(t *testing.T)
proxy/internal/store/stats_test.go:192
Function
TestStatsReportMixedHistoricalTimestampsUseUTCInstants
(t *testing.T)
proxy/internal/store/stats_test.go:208
Function
TestStatsReportOptions
(t *testing.T)
proxy/cmd/caveman-proxy/stats_test.go:5
Function
TestStatsReportUnknownAndIncompleteStayNull
(t *testing.T)
proxy/internal/store/stats_test.go:80
Function
TestStdDensityCapacityRatios
The test-pinned per-page capacities used by the design. This checks them at the exported draw seam, so the render ratio test below has an exact anchor
engine/cmd/caveman-engine/pixel_density_test.go:45
Function
TestStorageUsageCounterMatchesTheScan
The counter must equal the scan it replaced after every kind of write: an insert, an upsert, a dedup pointer, a raw UPDATE and DELETE, and a write by
engine/ccr/store_budget_scale_test.go:140
Function
TestStoreCloseAfterCompleteReplacementPreservesLiveJournal
(t *testing.T)
engine/ccr/store_generation_test.go:261
Function
TestStoreCloseCannotCheckpointReplacedJournalAfterWriterExit
(t *testing.T)
engine/ccr/store_generation_test.go:531
Function
TestStoreConnectionPragmas
TestStoreConnectionPragmas: every pooled connection waits on a busy database, uses WAL and keeps synchronous FULL, also after RecordBatch committed on
proxy/internal/store/record_batch_test.go:135
Function
TestStoreDoesNotPublishHandleWhenFilesChangeDuringPut
(t *testing.T)
engine/ccr/store_generation_test.go:418
Function
TestStoreNormalConcurrentConnectionsAndCheckpoints
(t *testing.T)
engine/ccr/store_generation_test.go:371
Function
TestStoreQuarantinesJournalChangesAcrossProcesses
(t *testing.T)
engine/ccr/store_generation_test.go:279
Function
TestStoreQuarantinesMixedMainAndJournalGenerations
(t *testing.T)
engine/ccr/store_generation_test.go:580
Function
TestStoreRefusesMissingOrInvalidReplacementUntilRestart
(t *testing.T)
engine/ccr/store_generation_test.go:318
Function
TestStoreRefusesRemovedJournalWithoutRecreatingIt
(t *testing.T)
engine/ccr/store_generation_test.go:447
Function
TestStoreRefusesSymlinkReplacement
(t *testing.T)
engine/ccr/store_generation_test.go:467
Function
TestStoreRequiresRestartAfterCompleteReplacementAcrossProcesses
(t *testing.T)
engine/ccr/store_generation_test.go:212
Function
TestStoreRequiresRestartForCheckpointedReplacementWithoutJournals
(t *testing.T)
engine/ccr/store_generation_test.go:617
Function
TestStoredEvidenceBundleCarriesOnlyDirectItems
The rendered block drops metadata-only items, but the ccr:// handle it hands the model must not carry them either: retrieving the bundle is one step a
proxy/internal/nativeruntime/runtime_test.go:1388
Function
TestStoredPlansKeepNoReplacementText
GO-10 (A2): a stored plan references its replacements' text through their choices; it never keeps a second copy for the plan's lifetime.
proxy/internal/middleware/hardening_test.go:469
Function
TestStoredRowsGolden
TestStoredRowsGolden pins every stored column of each golden request: the request and prefix hashes, the frozen-prefix evidence, provider usage, the l
proxy/internal/standalone/golden_rows_test.go:204
Function
TestStreamUsage_DisabledIsPassthrough
(t *testing.T)
proxy/providers/openai/stream_usage_test.go:105
Function
TestStreamUsage_FlagWithoutEvalGateIsPassthrough
C8 review finding 5: the flag alone must not be enough — an uncleared eval gate must block injection exactly like it blocks output-brevity/ reasoning-
proxy/providers/openai/stream_usage_test.go:116
Function
TestStreamUsage_IdempotentWhenAlreadyTrue
(t *testing.T)
proxy/providers/openai/stream_usage_test.go:67
Function
TestStreamUsage_InjectsWhenAbsent
(t *testing.T)
proxy/providers/openai/stream_usage_test.go:21
Function
TestStreamUsage_MalformedBodyPassesThroughUnchanged
(t *testing.T)
proxy/providers/openai/stream_usage_test.go:129
Function
TestStreamUsage_MergesIntoExistingStreamOptionsWithoutIncludeUsage
(t *testing.T)
proxy/providers/openai/stream_usage_test.go:38
Function
TestStreamUsage_NeverOverwritesExplicitFalse
The core rule: an explicit client choice of include_usage:false is a DELIBERATE choice and must never be overwritten, even though the gateway would no
proxy/providers/openai/stream_usage_test.go:58
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
← previous
next →
10,401–10,500 of 12,391, ranked by callers