MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

FunctionTestNamedMountWithoutDialectKeepsOpenAIZonesOnMessagesPath
TestNamedMountWithoutDialectKeepsOpenAIZonesOnMessagesPath pins the default: a dialect-less mount uses the OpenAI grammar even on /v1/messages, exactl
proxy/providers/openaicompat/wire_dialect_zones_test.go:119
FunctionTestNamedRefusalNeverDropsAnAcceptedField
A 400 that names a field a 200 already came back for drops nothing either.
proxy/internal/cloudlink/cache_ttl_test.go:161
FunctionTestNamespaceAuthorizationIsolatesPrincipals
A1: the namespace is authorized server-side on every route, and a principal reaches only what its own authority owns.
proxy/internal/middleware/identity_test.go:51
FunctionTestNamespacelessPrincipalHoldsNoQueueSlot
S1: a principal allowed no namespace can use no scoped route, so it is refused before it can hold a queue slot, however slowly it sends.
proxy/internal/middleware/hardening_test.go:94
FunctionTestNavigationRejectsInvalidSpansAndMalformedContainers
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:76
FunctionTestNegativeCache
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:514
FunctionTestNestedFileAndListingWrappers
(t *testing.T)
engine/filewrap_test.go:64
FunctionTestNewHTTPClientRejectsRedirects
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:163
FunctionTestNewHTTPClient_AllowsPublicServer
TestNewHTTPClient_AllowsPublicServer verifies end-to-end that NewHTTPClient can complete a real HTTP round-trip to a server that is not blocked. httpt
shared/platform/ssrf/ssrf_test.go:552
FunctionTestNewHTTPClient_BlocksMetadataIPOnDo
--- NewHTTPClient test ---
shared/platform/ssrf/ssrf_test.go:471
FunctionTestNewHTTPClient_DisablesEnvironmentProxyAndGuardsFinalDestination
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:485
FunctionTestNewHTTPClient_ProxyConnectTunnelsHTTPSWithoutResolvingTarget
TestNewHTTPClient_ProxyConnectTunnelsHTTPSWithoutResolvingTarget pins the production #1001 shape: an https provider reached through CONNECT. The targe
shared/platform/ssrf/ssrf_test.go:784
FunctionTestNewHTTPClient_ProxyDirectFallbackKeepsGuardAndRefusesProxyAddress
TestNewHTTPClient_ProxyDirectFallbackKeepsGuardAndRefusesProxyAddress covers the nil-proxy branch of an environment-style selector: a NO_PROXY (or loo
shared/platform/ssrf/ssrf_test.go:846
FunctionTestNewHTTPClient_ProxyRoutesViaOperatorProxyAndKeepsLiteralGuard
TestNewHTTPClient_ProxyRoutesViaOperatorProxyAndKeepsLiteralGuard covers the cfg.Proxy opt-in (#1001): a proxy on a loopback address is dialed without
shared/platform/ssrf/ssrf_test.go:722
FunctionTestNewMiddlewareModeAndTrustFollowConfig
A11: the middleware compresses while the proxy records, and a token map makes the runtime a multi-principal resolver.
proxy/internal/standalone/middleware_test.go:52
FunctionTestNewNamedWithWireDialectRejectsUnknownDialect
(t *testing.T)
proxy/providers/openaicompat/wire_dialect_test.go:143
FunctionTestNewNamed_AnthropicMessagesPathUsesAPIKeyHeader
TestNewNamed_AnthropicMessagesPathUsesAPIKeyHeader shows that a named mount maps the credential by wire protocol. OpenCode Go serves both protocols fr
proxy/providers/openaicompat/openaicompat_test.go:226
FunctionTestNewNamed_ForwardsOpenCodeSessionHeaders
TestNewNamed_ForwardsOpenCodeSessionHeaders pins the session headers that OpenCode reads for attribution. The shared allowlist of the base adapter dro
proxy/providers/openaicompat/openaicompat_test.go:286
FunctionTestNewNamed_RejectsInvalidAndReservedNames
(t *testing.T)
proxy/providers/openaicompat/openaicompat_test.go:203
FunctionTestNewNamed_RouteAndResolve
(t *testing.T)
proxy/providers/openaicompat/openaicompat_test.go:159
FunctionTestNewNamed_RouteContextBaseURLDoesNotOverridePerNameBase
(t *testing.T)
proxy/providers/openaicompat/openaicompat_test.go:185
FunctionTestNewPrincipalGlobs
(t *testing.T)
proxy/internal/identity/identity_test.go:173
FunctionTestNewRejectsInvalidConfiguration
(t *testing.T)
shared/platform/kms/kms_test.go:189
FunctionTestNewServerTLSRejectsIncompleteFiles
(t *testing.T)
proxy/internal/identity/tls_test.go:189
FunctionTestNewUUIDv7FormatVersionVariantAndTimestamp
(t *testing.T)
shared/platform/id/id_test.go:11
FunctionTestNewUUIDv7IsUnique
(t *testing.T)
shared/platform/id/id_test.go:44
FunctionTestNewUsesUTCAnd128BitToken
(t *testing.T)
proxy/internal/runstate/runstate_test.go:184
FunctionTestNew_DefaultRouteDoesNotConfuseSimilarPrefixes
(t *testing.T)
proxy/providers/openaicompat/openaicompat_test.go:26
FunctionTestNew_DefaultRouteRespectsPerRequestBaseURL
(t *testing.T)
proxy/providers/openaicompat/openaicompat_test.go:51
FunctionTestNew_DefaultRouteStripsMountAndPreservesBasePathAndQuery
(t *testing.T)
proxy/providers/openaicompat/openaicompat_test.go:13
FunctionTestNilStoreFailsClosedNoLossyCompression
(t *testing.T)
engine/engine_test.go:243
FunctionTestNoArgumentsStartsServer
(t *testing.T)
mcp/cmd/caveman-mcp/main_test.go:53
FunctionTestNoIDInTwoFamilies
No optimizer ID may appear in more than one family — a member in two families would make dedup ambiguous and could double-count headroom. This is the
shared/platform/optimizers/optimizers_test.go:8
FunctionTestNoUpdateWhereOpenAIForbidsIt
No configuration_update where OpenAI forbids one (automatic truncation or compaction, multi-agent mode): Cloud's effort goes top-level instead.
proxy/internal/gateway/route_effort_responses_test.go:299
FunctionTestNon204WarmIsHarmlessAndBacksOff
An origin without the warm feature (a customer install) answers something else: never a pause, asks go on as before, and after warmMissMax answers in
proxy/internal/cloudlink/warm_test.go:241
FunctionTestNonAnthropicVendor_ForwardedSignedUncompressed
TestNonAnthropicVendor_ForwardedSignedUncompressed is the direct S11 acceptance: a non-anthropic.* Bedrock request is allowed (forwarded), is NOT comp
proxy/providers/bedrock/compress_sign_test.go:58
FunctionTestNonFiniteValuesLeaveTheNumericTrack
A non-finite value parses cleanly through strconv.ParseFloat and then compares false against every bound, so it used to sit on the numeric track witho
engine/compressors/invariants_test.go:979
FunctionTestNonListingContentIsUntouched
Content that is not a listing must be completely unaffected.
engine/listing_test.go:123
FunctionTestNonRepositoryMapTypesStillStoreFullCopyPerSession
(t *testing.T)
engine/ccr/store_repositorymap_dedup_test.go:90
FunctionTestNonStreamingTruncatedUpstreamBodyFailsWithoutReplay
#897: a non-streaming upstream body cut mid-transfer must never reach the client as a 200 with a truncated (undecodable) gzip payload. The proxy reads
proxy/internal/gateway/upstream_body_test.go:18
FunctionTestNormalizeTermsIsBoundedAndFailClosed
(t *testing.T)
proxy/internal/repointel/index_test.go:422
FunctionTestNotificationGetsNoResponse
(t *testing.T)
mcp/server_test.go:459
FunctionTestNullCapabilitiesCarryAnUnverifiedNote
TestNullCapabilitiesCarryAnUnverifiedNote keeps the narrowing that lets the 20 Bedrock rows keep capabilities_verified_at: 2026-07-30 from becoming a
shared/provider-catalog/catalog_test.go:251
FunctionTestOAuthLiveZoneCompressesAcrossPrefixStableAdapters
OAuth compression is an adapter capability, not an Anthropic special case. OpenAI Responses and Gemini both expose schema-aware frozen/live zones, so
proxy/internal/gateway/subscription_live_zone_test.go:218
FunctionTestOAuthLiveZoneNeedsNoAccount
TestOAuthLiveZoneNeedsNoAccount pins the invariant for the OAuth classification: OAuth-authenticated traffic compresses with no Caveman account, but s
proxy/internal/gateway/prefix_stability_test.go:488
FunctionTestOAuthTokenRouteRejectsOversizedBody
(t *testing.T)
proxy/internal/gateway/oauth_token_route_test.go:142
FunctionTestOAuthTokenRouteRelaysRefresh
TestOAuthTokenRouteRelaysRefresh is the Claude Code "User OAuth refresh failed (HTTP 404) ... Proxy path is not recognized." report. Signed in with a
proxy/internal/gateway/oauth_token_route_test.go:55
FunctionTestOAuthTokenRouteRelaysRejection
TestOAuthTokenRouteRelaysRejection keeps the provider's refusal intact: Claude Code reads "invalid_grant" from the body to clear a dead refresh token,
proxy/internal/gateway/oauth_token_route_test.go:100
FunctionTestOAuthTokenRouteStaysFailClosed
TestOAuthTokenRouteStaysFailClosed proves the token mount is one exact POST route, not a new pass-through, and that it sits behind the authenticator.
proxy/internal/gateway/oauth_token_route_test.go:114
FunctionTestOIDCAcceptsRS256AndES256WithNamespaces
(t *testing.T)
proxy/internal/identity/oidc_test.go:101
FunctionTestOIDCKeySetAndConfigValidation
(t *testing.T)
proxy/internal/identity/oidc_test.go:258
FunctionTestOIDCKnownKidDoesNotWaitForARefetch
S4: an unknown kid refetches the key set outside the lock, once for every concurrent caller, while tokens with known kids keep verifying.
proxy/internal/identity/oidc_test.go:292
FunctionTestOIDCRefusesJWKSRedirectToHTTP
S5: jwks_url must be https, and so must every redirect it follows.
proxy/internal/identity/oidc_test.go:344
FunctionTestOIDCRejectsForgedAndInvalidTokens
(t *testing.T)
proxy/internal/identity/oidc_test.go:143
FunctionTestOIDCUnknownKidRefreshesOnceThenIsBounded
(t *testing.T)
proxy/internal/identity/oidc_test.go:213
FunctionTestObjectFieldsTakesScalarsInSortedOrder
(t *testing.T)
engine/compressors/invariants_test.go:422
FunctionTestObserveEstimateForwardsByteIdenticalAndRecordsWouldSave
TestObserveEstimateForwardsByteIdenticalAndRecordsWouldSave proves the record-mode observe path: the request reaches the upstream BYTE-IDENTICAL (reco
proxy/internal/gateway/estimate_test.go:57
FunctionTestObserveEstimateOffRecordsNothing
TestObserveEstimateOffRecordsNothing proves record mode with observe-estimate off (the default) records no would-have-saved figure even with an estima
proxy/internal/gateway/estimate_test.go:118
FunctionTestObserveEstimateUsesSameLatestUserQuery
(t *testing.T)
proxy/internal/gateway/compression_query_test.go:156
FunctionTestObserveStaticTagChurnConcurrent
(t *testing.T)
engine/pixel/transform_anthropic_test.go:151
FunctionTestObserveSummaryCacheColumnsAndEligibleCount
TestObserveSummaryCacheColumnsAndEligibleCount proves issue #133's honest cache columns and the compression-eligibility contract field: ObserveSummary
proxy/internal/store/cache_columns_test.go:15
FunctionTestObserveSummaryCompressedParts
TestObserveSummaryCompressedParts proves the compact object carries the compressed-parts before/after totals behind the saved delta, so the CLI's sess
proxy/internal/store/observe_test.go:251
FunctionTestObserveSummaryOldDBTolerated
TestObserveSummaryOldDBTolerated proves the ADD COLUMN migration path: a store opened, closed, and reopened (simulating an upgrade over an existing DB
proxy/internal/store/cache_columns_test.go:80
FunctionTestObserveSummarySince
TestObserveSummarySince proves the compact object filters by session start and computes the funnel percentage over tokens sent.
proxy/internal/store/observe_test.go:163
FunctionTestOfficialRuntimeModelPricesAndTiers
(t *testing.T)
shared/platform/catalog/catalog_test.go:548
FunctionTestOlderCloudRefusingPoolIsAskedAgainWithoutIt
(t *testing.T)
proxy/internal/cloudlink/pool_test.go:159
FunctionTestOlderCloudsGenericRefusalDropsTheNewestFieldsFirst
Cloud's real refusal of an unknown field names none ("Router request invalid."): the newest field goes first, then the next; the one whose removal got
proxy/internal/cloudlink/cache_ttl_test.go:64
FunctionTestOldestVerifiedAtIsNotSilentlyAdvanced
TestOldestVerifiedAtIsNotSilentlyAdvanced pins the catalog's oldest price verification date to a known value. VerifiedAt must move only when a row's P
shared/platform/catalog/catalog_test.go:80
FunctionTestOnDiskPersists
(t *testing.T)
engine/ccr/store_test.go:330
FunctionTestOneDecisionPerAsk
Every tool-loop turn of one ask reuses one decision, so the model never switches halfway through a turn.
proxy/internal/cloudlink/link_test.go:494
FunctionTestOnePrincipalCannotFillAQueue
S1: one principal's slow bodies take at most its share of a queue, so every other principal still gets a slot.
proxy/internal/middleware/hardening_test.go:127
FunctionTestOnePrincipalCannotFillTheStore
S3: with more than one principal configured, one principal filling its default share leaves the store open to the others.
proxy/internal/middleware/hardening_test.go:150
FunctionTestOnlyKnownRunesLowercaseIntoASCII
TestOnlyKnownRunesLowercaseIntoASCII pins the premise of requestScan's spelled flag: U+0130 and U+212A are the only non-ASCII runes whose lowercase is
proxy/providers/inspect_test.go:141
FunctionTestOpaque429WithRateLimitHeadersIsRetriedRaw
TestOpaque429WithRateLimitHeadersIsRetriedRaw: Anthropic puts its anthropic-ratelimit-* headers on every response, not only on rate limits, so they ca
proxy/internal/gateway/cache_prefix_invariant_test.go:1469
FunctionTestOpenAIAutoOffersOnlyItsThreeModels
OpenAI Auto offers Cloud its three models alone, in models and in the pool.
proxy/internal/cloudlink/pool_test.go:262
FunctionTestOpenAIAutoRunsOnlyItsThreeModels
OpenAI Auto runs gpt-6.1-sol, gpt-6-astra or gpt-6-luna only: the ask offers those, and an answer naming another model runs gpt-6.1-sol at its effort.
proxy/internal/gateway/route_effort_test.go:1896
FunctionTestOpenAIHistoryTurnLowering
(t *testing.T)
engine/pixel/history_openai_test.go:15
FunctionTestOpenAIPAYGPrefixCacheBeatsNonDeterministicCompressor
TestOpenAIPAYGPrefixCacheBeatsNonDeterministicCompressor pins WHO is authoritative once a replacement has gone upstream: the cache, never a fresh comp
proxy/internal/gateway/prefix_stability_payg_test.go:198
FunctionTestOpenAIPAYGPrefixCacheUnavailablePassesThrough
TestOpenAIPAYGPrefixCacheUnavailablePassesThrough pins the fail-open rule: a replacement the proxy cannot persist could not be reproduced next turn, s
proxy/internal/gateway/prefix_stability_payg_test.go:230
FunctionTestOpenAIPAYGPrefixStableAcrossTurns
TestOpenAIPAYGPrefixStableAcrossTurns is the exact probe that failed: an OpenAI PAYG compress session compresses turn 1, and turn 2 must still carry t
proxy/internal/gateway/prefix_stability_payg_test.go:92
FunctionTestOpenAIPAYGPrefixStableSurvivesRestart
TestOpenAIPAYGPrefixStableSurvivesRestart pins durability: a new process whose compressor now emits different bytes must still send what the FIRST pro
proxy/internal/gateway/prefix_stability_payg_test.go:173
FunctionTestOpenAIPAYGPrefixStableThreeTurns
TestOpenAIPAYGPrefixStableThreeTurns extends the invariant past a single hop and checks the literal byte prefix, which is what the provider's automati
proxy/internal/gateway/prefix_stability_payg_test.go:119
FunctionTestOpenAIPAYGPrefixStableToolMessages
TestOpenAIPAYGPrefixStableToolMessages runs the invariant over tool messages, which carry the bulk of an agent conversation's tokens.
proxy/internal/gateway/prefix_stability_payg_test.go:152
FunctionTestOpenAIPAYGPrefixSubstitutionBooksSavingsOnce
TestOpenAIPAYGPrefixSubstitutionBooksSavingsOnce is the no-fake-savings pin: a message's token delta is counted on the turn it was first compressed an
proxy/internal/gateway/prefix_stability_payg_test.go:250
FunctionTestOpenAIPrefixStableTenTurns
(t *testing.T)
proxy/internal/gateway/prefix_stability_test.go:294
FunctionTestOpenAIPromptCacheKeyCannotClaimCausalSavings
(t *testing.T)
proxy/internal/gateway/pricing_semantics_test.go:143
FunctionTestOpenAddsJulianDayIndexToExistingDatabase
(t *testing.T)
proxy/internal/store/stats_test.go:364
FunctionTestOpenAllowsResolvedStickyParentSymlink
(t *testing.T)
engine/ccr/store_permissions_test.go:91
FunctionTestOpenAllowsStickyTemporaryDirectory
(t *testing.T)
engine/ccr/store_permissions_test.go:76
FunctionTestOpenClosePeerPreservesLiveWriter
The writer must stay open while independent consumers come and go. Closing the writer before checking would checkpoint its WAL and hide lost locks.
engine/ccr/store_locking_test.go:30
FunctionTestOpenCodeChatGPTOAuthReroutesToSubscriptionUpstream
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:1076
FunctionTestOpenCodeChatGPTSubscriptionDetection
(t *testing.T)
proxy/internal/gateway/chatgpt_test.go:1124
FunctionTestOpenCodeSessionSourceAddsExclusiveCacheAndRoundTripsPartLocator
(t *testing.T)
proxy/internal/store/source_opencode_test.go:12
FunctionTestOpenDoesNotRecreateDatabaseLostAfterPreparation
(t *testing.T)
engine/ccr/store_generation_test.go:565
FunctionTestOpenMigratesLegacyMemorySchema
(t *testing.T)
mem/store_test.go:330
FunctionTestOpenRecoveryStoreCreatesFreshCavemanHome
(t *testing.T)
browse/cmd/caveman-browse/main_test.go:22
FunctionTestOpenRefusesGenerationChangesAfterSQLiteInitialization
(t *testing.T)
engine/ccr/store_generation_test.go:711
FunctionTestOpenRejectsDatabaseSymlink
(t *testing.T)
engine/ccr/store_permissions_test.go:42
FunctionTestOpenRejectsImpossibleBudgetBeforePreparingFiles
(t *testing.T)
engine/ccr/store_reopen_race_test.go:132
FunctionTestOpenRejectsWritableParentDirectory
(t *testing.T)
engine/ccr/store_permissions_test.go:60
← previousnext →9,501–9,600 of 12,391, ranked by callers