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
TestStaleButValidCredentialsServedDuringOutage
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:639
Function
TestStaleReferences
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:203
Function
TestStaleStripNeverMatchesANewHistory
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
Function
TestStalledEndpointBoundsCredentialsLatency
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
Function
TestStandaloneActiveModeAutoCachesAcrossProvidersAndModelSwitches
(t *testing.T)
proxy/internal/standalone/standalone_test.go:121
Function
TestStandaloneAnthropicModelDiscoveryRoutesPassThrough
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
Function
TestStandaloneAzureAuthBoundariesEndToEnd
TestStandaloneAzureAuthBoundariesEndToEnd keeps the synthetic placeholder path distinct from real Entra bearer credentials: the exact sentinel may be
proxy/internal/standalone/standalone_test.go:1117
Function
TestStandaloneBedrockPartialEnvPairDoesNotFallThroughToRole
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
Function
TestStandaloneBedrockPreservesEncodedRequestOnWire
(t *testing.T)
proxy/internal/standalone/standalone_test.go:1325
Function
TestStandaloneBedrockReSignsSDKRequestWithTaskRole
(t *testing.T)
proxy/internal/standalone/bedrock_chain_test.go:84
Function
TestStandaloneBedrockRejectsUnresolvableSignedRequests
(t *testing.T)
proxy/internal/standalone/standalone_test.go:1271
Function
TestStandaloneBedrockResignsSDKRequests
(t *testing.T)
proxy/internal/standalone/standalone_test.go:1208
Function
TestStandaloneBedrockSignsWithTaskRoleWhenEnvHasNoKeys
(t *testing.T)
proxy/internal/standalone/bedrock_chain_test.go:46
Function
TestStandaloneBedrockWithoutAnyCredentialStillFailsClosed
(t *testing.T)
proxy/internal/standalone/bedrock_chain_test.go:129
Function
TestStandaloneBoot_ZeroCloudDeps_InferredRows
(t *testing.T)
proxy/internal/standalone/standalone_test.go:75
Function
TestStandaloneCABundle_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
Function
TestStandaloneClientLifetimeAndCancellation
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
Function
TestStandaloneCompressMode_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
Function
TestStandaloneCompressMode_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
Function
TestStandaloneCompressMode_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
Function
TestStandaloneConcurrentEncodedResponsesRemainDecodable
#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
Function
TestStandaloneCostBreakdownUsesDistinctReasoningRate
(t *testing.T)
proxy/internal/gateway/pricing_semantics_test.go:158
Function
TestStandaloneGeminiGoogleEnvFallbackEndToEnd
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
Function
TestStandaloneGeminiQueryCredentialsEndToEnd
(t *testing.T)
proxy/internal/standalone/gemini_query_auth_test.go:14
Function
TestStandaloneGeminiStableGenerationRoutes
(t *testing.T)
proxy/internal/standalone/provider_routes_test.go:84
Function
TestStandaloneLeavesAmbiguousFallbackUncorrelated
(t *testing.T)
proxy/internal/standalone/standalone_test.go:251
Function
TestStandaloneNativeProviderHeadersEndToEnd
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
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
TestStatelessAdapterNeverMutatesTopLevelEffort
TestStatelessAdapterNeverMutatesTopLevelEffort verifies the cache-safety invariant: the stateless Anthropic adapter MUST NOT mutate top-level `output_
proxy/providers/anthropic/turn_effort_test.go:16
Function
TestStatelessAdapterNeverMutatesTopLevelTurnEffort
TestStatelessAdapterNeverMutatesTopLevelTurnEffort verifies the cache-safety invariant: the stateless OpenAI adapter MUST NOT mutate top-level `reason
proxy/providers/openai/turn_effort_test.go:17
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
TestStdioUpstreamEndToEnd
(t *testing.T)
mcp/codemode/stdio_js_builtin_test.go:85
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
← previous
next →
10,801–10,900 of 12,853, ranked by callers