MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

FunctionTestStandaloneNativeStreamsAndProviderErrors
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
FunctionTestStandaloneOpenAIModelDiscoveryRoutesPassThrough
(t *testing.T)
proxy/internal/standalone/provider_routes_test.go:111
FunctionTestStandaloneOpenCodeGoAuthEndToEnd
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
FunctionTestStandalonePricingMatchesManagedRegionalRules
(t *testing.T)
proxy/internal/gateway/pricing_semantics_test.go:21
FunctionTestStandaloneProductionTransportPreservesEncodedResponseWireBytes
(t *testing.T)
proxy/internal/standalone/standalone_test.go:304
FunctionTestStandaloneSSRF_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
FunctionTestStandaloneStreamErrorKeepsBilledUsageWithoutClaimingSavings
(t *testing.T)
proxy/internal/standalone/provider_stream_test.go:165
FunctionTestStandaloneStripsSignedNativeSessionMarkerBeforeProviderAndCorrelatesRow
(t *testing.T)
proxy/internal/standalone/standalone_test.go:178
FunctionTestStandaloneSubscriptionCompress_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
FunctionTestStandaloneTokenCountRoutesPreserveAccountingRequests
(t *testing.T)
proxy/internal/standalone/provider_routes_test.go:31
FunctionTestStandaloneUpstreamProxy_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
FunctionTestStandaloneUsesOnlyExplicitApproximateSessionFallback
(t *testing.T)
proxy/internal/standalone/standalone_test.go:220
FunctionTestStandaloneVertexExpressCredentialsEndToEnd
(t *testing.T)
proxy/internal/standalone/vertex_express_auth_test.go:13
FunctionTestStandaloneVertexRegionAgnosticFixtureProbe
TestStandaloneVertexRegionAgnosticFixtureProbe does nothing in a normal run. It is the child process of the test above.
proxy/internal/gateway/pricing_semantics_test.go:122
FunctionTestStandaloneVertexRegionAgnosticPricingOnFixtureCatalog
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
FunctionTestStartWarmsTheRoutePath
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
FunctionTestStateBoundsAndLogin
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
FunctionTestStateOnlyEventStillRunsAfterTheDeadline
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
FunctionTestStateRoundTripsPerSessionAndChild
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
FunctionTestStatedInvariantsAreLiterallyTrue
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
FunctionTestStatefulChainKeepsTheCacheKey
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
FunctionTestStatefulResponsesChainsAreNotRouted
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
FunctionTestStatsChatGPTRecordsFinalBytesAndSeparateEquivalent
(t *testing.T)
proxy/internal/gateway/stats_accounting_test.go:367
FunctionTestStatsCustomOriginKeepsTokenDeltaUnpriced
(t *testing.T)
proxy/internal/gateway/stats_accounting_test.go:350
FunctionTestStatsHTMLAtomicReplacementDoesNotFollowTargetSymlink
(t *testing.T)
proxy/internal/store/stats_report_test.go:62
FunctionTestStatsHTMLFixture
(t *testing.T)
proxy/internal/store/stats_report_test.go:82
FunctionTestStatsHTMLInteractiveAccounting
(t *testing.T)
proxy/internal/store/stats_report_test.go:117
FunctionTestStatsHTMLPreservesPrivateEscapedSnapshot
(t *testing.T)
proxy/internal/store/stats_report_test.go:14
FunctionTestStatsIsInferredSessionScopedNeverVerified
(t *testing.T)
mcp/server_test.go:317
FunctionTestStatsMeteringCountsCachedReplacementsOnEachProviderRequest
(t *testing.T)
proxy/internal/gateway/stats_accounting_test.go:302
FunctionTestStatsMeteringFollowsFinalAcceptedRequest
(t *testing.T)
proxy/internal/gateway/stats_accounting_test.go:256
FunctionTestStatsMissingObservedBucketRateStaysUnpriced
(t *testing.T)
proxy/internal/store/stats_test.go:281
FunctionTestStatsPersistenceKeepsReceiptEquationConsistent
(t *testing.T)
proxy/internal/store/stats_test.go:267
FunctionTestStatsPersistenceRejectsInvalidSnapshotAndTokenBuckets
(t *testing.T)
proxy/internal/store/stats_test.go:235
FunctionTestStatsPricingOriginRequiresExactProvider
(t *testing.T)
proxy/internal/gateway/stats_accounting_test.go:321
FunctionTestStatsQueryUsesJulianDayIndex
(t *testing.T)
proxy/internal/store/stats_test.go:360
FunctionTestStatsReceiptBoundDoesNotTruncateTotals
(t *testing.T)
proxy/internal/store/stats_test.go:255
FunctionTestStatsReportEmptyAndZeroDiffer
(t *testing.T)
proxy/internal/store/stats_test.go:168
FunctionTestStatsReportFiltersJointGroupsAndUTCWindow
(t *testing.T)
proxy/internal/store/stats_test.go:141
FunctionTestStatsReportKeepsAPISavingsAndSubscriptionEquivalentSeparate
(t *testing.T)
proxy/internal/store/stats_test.go:52
FunctionTestStatsReportKeepsRegressionsAndExcludesFailedAndLegacySavings
(t *testing.T)
proxy/internal/store/stats_test.go:104
FunctionTestStatsReportKeepsWarmSpendOutOfRequests
(t *testing.T)
proxy/internal/store/cache_warm_stats_test.go:93
FunctionTestStatsReportMissingIdentityFiltersMatchDisplayedLabels
(t *testing.T)
proxy/internal/store/stats_test.go:192
FunctionTestStatsReportMixedHistoricalTimestampsUseUTCInstants
(t *testing.T)
proxy/internal/store/stats_test.go:208
FunctionTestStatsReportOptions
(t *testing.T)
proxy/cmd/caveman-proxy/stats_test.go:5
FunctionTestStatsReportUnknownAndIncompleteStayNull
(t *testing.T)
proxy/internal/store/stats_test.go:80
FunctionTestStdDensityCapacityRatios
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
FunctionTestStorageUsageCounterMatchesTheScan
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
FunctionTestStoreCloseAfterCompleteReplacementPreservesLiveJournal
(t *testing.T)
engine/ccr/store_generation_test.go:261
FunctionTestStoreCloseCannotCheckpointReplacedJournalAfterWriterExit
(t *testing.T)
engine/ccr/store_generation_test.go:531
FunctionTestStoreConnectionPragmas
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
FunctionTestStoreDoesNotPublishHandleWhenFilesChangeDuringPut
(t *testing.T)
engine/ccr/store_generation_test.go:418
FunctionTestStoreNormalConcurrentConnectionsAndCheckpoints
(t *testing.T)
engine/ccr/store_generation_test.go:371
FunctionTestStoreQuarantinesJournalChangesAcrossProcesses
(t *testing.T)
engine/ccr/store_generation_test.go:279
FunctionTestStoreQuarantinesMixedMainAndJournalGenerations
(t *testing.T)
engine/ccr/store_generation_test.go:580
FunctionTestStoreRefusesMissingOrInvalidReplacementUntilRestart
(t *testing.T)
engine/ccr/store_generation_test.go:318
FunctionTestStoreRefusesRemovedJournalWithoutRecreatingIt
(t *testing.T)
engine/ccr/store_generation_test.go:447
FunctionTestStoreRefusesSymlinkReplacement
(t *testing.T)
engine/ccr/store_generation_test.go:467
FunctionTestStoreRequiresRestartAfterCompleteReplacementAcrossProcesses
(t *testing.T)
engine/ccr/store_generation_test.go:212
FunctionTestStoreRequiresRestartForCheckpointedReplacementWithoutJournals
(t *testing.T)
engine/ccr/store_generation_test.go:617
FunctionTestStoredEvidenceBundleCarriesOnlyDirectItems
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
FunctionTestStoredPlansKeepNoReplacementText
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
FunctionTestStoredRowsGolden
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
FunctionTestStreamUsage_DisabledIsPassthrough
(t *testing.T)
proxy/providers/openai/stream_usage_test.go:105
FunctionTestStreamUsage_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
FunctionTestStreamUsage_IdempotentWhenAlreadyTrue
(t *testing.T)
proxy/providers/openai/stream_usage_test.go:67
FunctionTestStreamUsage_InjectsWhenAbsent
(t *testing.T)
proxy/providers/openai/stream_usage_test.go:21
FunctionTestStreamUsage_MalformedBodyPassesThroughUnchanged
(t *testing.T)
proxy/providers/openai/stream_usage_test.go:129
FunctionTestStreamUsage_MergesIntoExistingStreamOptionsWithoutIncludeUsage
(t *testing.T)
proxy/providers/openai/stream_usage_test.go:38
FunctionTestStreamUsage_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
FunctionTestStreamUsage_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
FunctionTestStreamUsage_NonStreamingRequestUntouched
(t *testing.T)
proxy/providers/openai/stream_usage_test.go:76
FunctionTestStreamUsage_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
FunctionTestString
(t *testing.T)
shared/platform/redact/redact_test.go:149
FunctionTestStripCacheControl
(t *testing.T)
proxy/providers/anthropic/content_compress_test.go:502
FunctionTestStripHealKeepsTheMarks
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
FunctionTestStripRetrieveCallNormalizesOpenAINullContent
(t *testing.T)
proxy/internal/gateway/compress_test.go:860
FunctionTestStripSchemaDepthCapAndStructure
(t *testing.T)
engine/pixel/schemastrip_test.go:87
FunctionTestStripSchemaDescriptionsCases
(t *testing.T)
engine/pixel/schemastrip_test.go:11
FunctionTestStripToolSchemaAnnotations
(t *testing.T)
engine/compressors/toolschema_annotations_test.go:13
FunctionTestStripToolSchemaAnnotationsIsDeterministic
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
FunctionTestStripToolSchemaAnnotationsPreservesOrderAndSpacing
TestStripToolSchemaAnnotationsPreservesOrderAndSpacing pins the minimal-splice property: only the dropped members move, and every other byte — element
engine/compressors/toolschema_annotations_test.go:163
FunctionTestStructuralSelectionSurfaceInvariant
TestStructuralSelectionSurfaceInvariant proves the compressed catalog exposes the exact same structural surface (param names, enums, required) as the
shrink/shrink_test.go:105
FunctionTestStructuredOutputEveryDirection
--- 2. structured output in every direction ------------------------------------
proxy/internal/translate/wire_gaps_test.go:118
FunctionTestStructuredToolOutputIsNotMasked
TestStructuredToolOutputIsNotMasked: the classes with a field grammar reach the elision engine intact, however large they are.
proxy/internal/nativeruntime/mask_elidable_test.go:110
FunctionTestSubagentEvidenceMergesAsTypedPointersIntoParentScope
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:911
FunctionTestSubagentSpendCountsAgentNamedSpawns
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
FunctionTestSubagentSpendMeasuresCostWithoutClaimingWaste
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
FunctionTestSubagentSpendSilentWithoutFanOut
TestSubagentSpendSilentWithoutFanOut keeps the sink off a machine that does not delegate.
proxy/internal/store/detect_subagent_spend_test.go:65
FunctionTestSubscriptionCompressesLiveZoneByDefault
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
FunctionTestSubscriptionDefaultPassesThroughWithoutMutation
(t *testing.T)
proxy/internal/gateway/live_zone_test.go:185
FunctionTestSubscriptionLiveZoneClampCompressesNewestMarkedTurn
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
FunctionTestSubscriptionLiveZoneDeterministicDoubleRun
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
FunctionTestSubscriptionLiveZoneKeepsCacheBreakpointPrefixByteEqual
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
FunctionTestSubscriptionLiveZoneNeedsNoAccount
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
FunctionTestSubscriptionLiveZoneOptInCompressesWithoutToolInjectionOrHeaderMutation
(t *testing.T)
proxy/internal/gateway/live_zone_test.go:228
FunctionTestSubscriptionLiveZoneRecordsTokensNeverDollars
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
FunctionTestSubscriptionLiveZoneUncompressibleBodyPassesThrough
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
FunctionTestSubscriptionLiveZoneUnknownOffSwitchFailsClosed
TestSubscriptionLiveZoneUnknownOffSwitchFailsClosed keeps the operator opt-out fail-closed: an unrecognized subscription_compress value means passthro
proxy/internal/gateway/subscription_live_zone_test.go:112
FunctionTestSubscriptionOffSwitchPassesThrough
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
← previousnext →10,401–10,500 of 12,391, ranked by callers