MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

FunctionTestAllowedModelEnv
(t *testing.T)
engine/pixel/applicability_test.go:35
FunctionTestAmbiguousDirectoriesNeedEcosystemEvidence
Ambiguous names are first-party until an ecosystem manifest says otherwise, so `internal/build` and a hand-written `vendor/` are not silently dropped.
proxy/internal/repointel/index_test.go:288
FunctionTestAnAskIsNeverSentTwice
An ask is never replayed by the transport: a server that read it (and may have decided and counted it) and then dropped the kept connection sees it on
proxy/internal/cloudlink/link_test.go:1349
FunctionTestAnOlderLoadNeverOverwritesANewerOne
A load that saw fewer keychain secrets and finishes after a newer one never puts the settings from before the read back.
proxy/internal/cloudlink/link_test.go:1376
FunctionTestAnalyze
(t *testing.T)
engine/image/image_test.go:28
FunctionTestAnalyzeRejectsDecodeBomb
(t *testing.T)
engine/image/image_test.go:217
FunctionTestAnalyzeTrialBoundsAggregatePayloadReplay
(t *testing.T)
proxy/internal/store/trial_feature_test.go:153
FunctionTestAnalyzeTrialCompressionReplayReportsTokenShapeWithZeroDollars
(t *testing.T)
proxy/internal/store/trial_feature_test.go:173
FunctionTestAnalyzeTrialWithoutPayloadIsInsufficientData
(t *testing.T)
proxy/internal/store/trial_feature_test.go:122
FunctionTestAnswerEffortIsCheckedNotGuessed
An effort or mode the runtime does not know how to splice is left out.
proxy/internal/cloudlink/route_effort_test.go:222
FunctionTestAnsweredEffortOnEveryDirection
The answered effort goes out in the upstream's own shape on every translator direction, clamped to what that shape takes; a caller that turned thinkin
proxy/internal/translate/review_regressions_test.go:176
FunctionTestAnthropicAutomaticPromptCacheCannotClaimCausalSavings
(t *testing.T)
proxy/internal/gateway/pricing_semantics_test.go:152
FunctionTestAnthropicCacheStrategiesRecordModeAreByteIdentical
(t *testing.T)
proxy/providers/anthropic/automatic_cache_test.go:85
FunctionTestAnthropicEventNameDefinesIncompleteUsageWithoutJSONType
(t *testing.T)
proxy/providers/stream_error_test.go:47
FunctionTestAnthropicHistoryKeepsExactNumbersInLiveTail
(t *testing.T)
engine/pixel/transform_numbers_test.go:134
FunctionTestAnthropicImageTokensEdges
TestAnthropicImageTokensEdges pins the degenerate inputs and the cap boundary.
engine/pixel/pricing_test.go:39
FunctionTestAnthropicImageTokensWorkedExamples
TestAnthropicImageTokensWorkedExamples asserts the raw patch-token math (⌈w/28⌉ × ⌈h/28⌉, capped) against Anthropic's own worked examples, with no saf
engine/pixel/pricing_test.go:13
FunctionTestAnthropicInferenceGeoNotAvailableIsNoGeography
(t *testing.T)
proxy/providers/adapter_usage_test.go:624
FunctionTestAnthropicMessageIterationsStayPriced
(t *testing.T)
proxy/providers/adapter_usage_test.go:605
FunctionTestAnthropicModelsMetadataRoute
TestAnthropicModelsMetadataRoute covers the sibling adapter: the Anthropic wire protocol defines GET /v1/models too, and it shared the same gap.
proxy/internal/gateway/models_metadata_route_test.go:105
FunctionTestAnthropicNativeIsByteIdenticalOnCleanBodies
AnthropicNative hands back the very slice it got when nothing is foreign.
proxy/internal/translate/messages_test.go:644
FunctionTestAnthropicPrefixStableTenTurns
TestAnthropicPrefixStableTenTurns is EAB-114's full trace: every earlier turn's replacement remains byte-identical while each new turn appends past ca
proxy/internal/gateway/prefix_stability_test.go:261
FunctionTestAnthropicStreamingIterationsOnMessageStartAreNotPriced
#1453: the counter parser and the outcome-qualifier guard read the same field from two different positions. usageObjects() has a dedicated add(msg["us
proxy/providers/adapter_usage_test.go:643
FunctionTestAnthropicToolIDs
Another host's tool ids are rewritten for Anthropic, consistently, so calls and results still pair; a valid body is returned as it came.
proxy/internal/translate/messages_test.go:730
FunctionTestAnthropicWireZonesAgreesWithHeaderPathRule
TestAnthropicWireZonesAgreesWithHeaderPathRule pins the two path questions to one rule. SanitizeAndMapHeaders asks anthropicMessagesPath whether a req
proxy/providers/openaicompat/wire_dialect_zones_test.go:150
FunctionTestAppendArrayElementsHandlesEmptyArray
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:239
FunctionTestAppendArrayElementsPreservesOriginalBytes
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:219
FunctionTestAppendArrayElementsValidatesInputsAndNoOpPreservesBody
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:258
FunctionTestAppendObjectFieldsHandlesEmptyObject
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:173
FunctionTestAppendObjectFieldsPreservesOriginalBytes
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:153
FunctionTestAppendObjectFieldsValidatesInputsAndNoOpPreservesBody
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:190
FunctionTestAppliedFixRoundTripConfirmsPostFixSessionsAndInsufficientData
(t *testing.T)
proxy/internal/store/learn_outcomes_test.go:11
FunctionTestApplyDetailLowKeepsBytes
(t *testing.T)
engine/image/image_test.go:155
FunctionTestApplyDetailLowRejectedForProviderWithoutLowTier
(t *testing.T)
engine/image/image_test.go:178
FunctionTestApplyPassthrough
(t *testing.T)
engine/image/image_test.go:170
FunctionTestApplyRejectsMarginalInferredReductionForS4
(t *testing.T)
engine/image/image_test.go:246
FunctionTestApplyRejectsMissingModelOrDetail
(t *testing.T)
engine/image/image_test.go:233
FunctionTestApplyResizePreservesColorOfSemiTransparentPixels
(t *testing.T)
engine/image/image_test.go:187
FunctionTestApplyResizeShrinksAndIsDeterministic
(t *testing.T)
engine/image/image_test.go:135
FunctionTestApplyUpstreamAuthFallbackHeaderOnly
(t *testing.T)
proxy/internal/gateway/auth_fallback_test.go:299
FunctionTestApproxCounter
(t *testing.T)
engine/tokens/tokens_test.go:28
FunctionTestAskBodyFitsTheContract
Escaping can make the JSON six times the text; the body still fits 256 KiB and text keeps the longest end that fits. A text whose kept end is blank is
proxy/internal/cloudlink/link_test.go:372
FunctionTestAskFailsOpen
(t *testing.T)
proxy/internal/cloudlink/link_test.go:434
FunctionTestAskMatchesTheRouteAskSchema
The ask's fields are route-ask-v1's: every field sent is in the schema and every required one is sent, for the body and its request and last objects.
proxy/internal/cloudlink/route_effort_test.go:275
FunctionTestAskOnlyWhenRoutingIsOnAndSignedIn
(t *testing.T)
proxy/internal/cloudlink/link_test.go:470
FunctionTestAskSendsModelsSignalsAndText
(t *testing.T)
proxy/internal/cloudlink/link_test.go:67
FunctionTestAskSendsThePoolOfWhatThePersonSetUp
(t *testing.T)
proxy/internal/cloudlink/pool_test.go:57
FunctionTestAskTextFromEachShape
(t *testing.T)
proxy/internal/cloudlink/link_test.go:109
FunctionTestAskTextKeepsTheEnds
Each field keeps its end within its bound, cut on a rune boundary: Claude Code puts its reminders first and the person's words last.
proxy/internal/cloudlink/link_test.go:339
FunctionTestAsyncRecordCloseDrainsQueuedRows
(t *testing.T)
proxy/internal/gateway/recorder_test.go:171
FunctionTestAsyncRecordFlushWaitsForRecordedRows
TestAsyncRecordFlushWaitsForRecordedRows: after Flush a reader of the sink sees every request served so far, its slow token count included.
proxy/internal/gateway/recorder_test.go:206
FunctionTestAsyncRecordKeepsRequestOrder
TestAsyncRecordKeepsRequestOrder: a large request's slow token count does not let the small request after it reach the sink first.
proxy/internal/gateway/recorder_test.go:125
FunctionTestAsyncRecordRowsMatchInline
TestAsyncRecordRowsMatchInline: a row finished off the request path is the row the handler used to finish itself — request token counts, booked compre
proxy/internal/gateway/recorder_test.go:106
FunctionTestAtlasDecodedLengths
(t *testing.T)
engine/pixel/atlas_test.go:19
FunctionTestAtlasGlyphA
(t *testing.T)
engine/pixel/atlas_test.go:29
FunctionTestAtlasRank
(t *testing.T)
engine/pixel/atlas_test.go:7
FunctionTestAtlasWideCJK
(t *testing.T)
engine/pixel/atlas_test.go:48
FunctionTestAttachLearnTrendHistoryMoversAndScore
(t *testing.T)
proxy/internal/store/learn_trends_test.go:183
FunctionTestAttributionRungsCarryTheirConfounders
TestAttributionRungsCarryTheirConfounders proves a weak measurement can never be read as a strong one: every rung names what it cannot rule out, and a
proxy/internal/store/learn_attribution_test.go:67
FunctionTestAuditLogAndMetricsCarryNoContent
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:595
FunctionTestAuthToken_AcceptsBearerAndFallsBackToOperatorKey
(t *testing.T)
proxy/internal/standalone/auth_token_test.go:105
FunctionTestAuthToken_AcceptsCaveAPIKeyAndStripsIt
(t *testing.T)
proxy/internal/standalone/auth_token_test.go:93
FunctionTestAuthToken_ConsumesTokenFromBothHeaders
A client that hedges and sends the token in BOTH headers must still have it consumed from Authorization: an early return on the x-cave-api-key match l
proxy/internal/standalone/auth_token_test.go:196
FunctionTestAuthToken_EmptyTokenKeepsLoopbackBehavior
(t *testing.T)
proxy/internal/standalone/auth_token_test.go:162
FunctionTestAuthToken_HealthStaysUnauthenticated
TestAuthToken_HealthStaysUnauthenticated: a load balancer in front of a VPC-bound proxy probes readiness without holding the operator's secret.
proxy/internal/standalone/auth_token_test.go:153
FunctionTestAuthToken_InboundProviderKeyStillWinsOverBYOK
(t *testing.T)
proxy/internal/standalone/auth_token_test.go:120
FunctionTestAuthToken_PreservesForeignBearer
TestAuthToken_PreservesForeignBearer is the credential-safety case: an Authorization header that is NOT the shared token is a real provider OAuth cred
proxy/internal/standalone/auth_token_test.go:177
FunctionTestAuthToken_ProbeRoutesStayOpenAndChatGPTIsGated
The probe routes a load balancer needs stay open; /chatgpt/ is inference and does not.
proxy/internal/standalone/auth_token_test.go:269
FunctionTestAuthToken_RejectionIsCountedAndLogged
A rejected token used to be completely silent: no log line, no metric, so a brute-force run against the gate looked exactly like an idle proxy. The li
proxy/internal/standalone/auth_token_test.go:216
FunctionTestAuthToken_RejectsRequestWithoutToken
(t *testing.T)
proxy/internal/standalone/auth_token_test.go:82
FunctionTestAuthToken_RejectsWrongTokenInEitherHeader
(t *testing.T)
proxy/internal/standalone/auth_token_test.go:133
FunctionTestAuthToken_UnknownRouteIsNotARouteOracle
Route matching used to run before the gate, so an unauthenticated caller could enumerate the proxy's providers and compat mounts by telling 401 from 4
proxy/internal/standalone/auth_token_test.go:246
FunctionTestAutoCountTokensAndNoCloudLink
count_tokens naming Auto counts on the fallback model; with no Cloud link at all Auto still never reaches the provider.
proxy/internal/gateway/route_test.go:624
FunctionTestAutoElsewhereIsRefusedAndEncodedAutoRuns
Auto where no provider serves it (another provider, an unreadable model field) is a clean 400; an encoded body naming Auto is decoded and runs.
proxy/internal/gateway/route_test.go:643
FunctionTestAutoFallsBackAndShowsAuto
Auto that Cloud cannot route runs on the provider's fallback model, the ask names that model, and the agent reads Auto, in JSON and in a stream.
proxy/internal/gateway/route_test.go:597
FunctionTestAutoMemoryDirResolution
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:268
FunctionTestAutoRetryAnswerNamesAuto
The original-bytes retry of an Auto request asks for an identity answer too: a compressed one would reach the agent naming the real model.
proxy/internal/gateway/route_test.go:767
FunctionTestAutoTakesThe1MSuffix
The Auto id with Claude Code's [1m] suffix is Auto: it is asked about, the fallback model goes upstream and the agent reads the id it sent.
proxy/internal/gateway/route_test.go:747
FunctionTestAutomaticPromptCacheAddsOnlyTopLevelFiveMinuteMarker
(t *testing.T)
proxy/providers/anthropic/automatic_cache_test.go:29
FunctionTestAutomaticPromptCacheConflictsPassThroughByteIdentically
(t *testing.T)
proxy/providers/anthropic/automatic_cache_test.go:41
FunctionTestAutomaticPromptCacheDoesNotGuessModelTokenThreshold
(t *testing.T)
proxy/providers/anthropic/automatic_cache_test.go:71
FunctionTestAzure_DisallowedApiVersionRejected
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:67
FunctionTestAzure_EnvAllowlistOverride
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:99
FunctionTestAzure_FoundryV1InferenceRoutesAllowed
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:28
FunctionTestAzure_FoundryV1RejectsUnknownVersionAndRoute
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:40
FunctionTestAzure_FoundryV1ResolvesNativeUpstreamPath
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:52
FunctionTestAzure_LegacyRouteRejectsNonChatActions
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:85
FunctionTestAzure_MissingApiVersionRejected
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:73
FunctionTestAzure_MissingDeploymentRejected
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:79
FunctionTestAzure_ValidRequestAllowed
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:22
FunctionTestBM25EmptyQuery
(t *testing.T)
mem/bm25_test.go:42
FunctionTestBM25ScoresDeterministicAndRanked
(t *testing.T)
mem/bm25_test.go:18
FunctionTestBareAnthropicRoute
TestBareAnthropicRoute proves an agent can point ANTHROPIC_BASE_URL straight at the proxy unprefixed: a bare POST /v1/messages routes to Anthropic, fo
proxy/internal/gateway/server_test.go:264
FunctionTestBareGeminiEmbedContentDoesNotMatch
(t *testing.T)
proxy/providers/gemini/gemini_test.go:118
FunctionTestBareGeminiPixelRouteAndRecordMode
(t *testing.T)
proxy/internal/gateway/gemini_bare_route_test.go:12
FunctionTestBareGeminiVerifiedRoutesMatchMetadata
(t *testing.T)
proxy/providers/gemini/gemini_test.go:127
FunctionTestBareModelsRouteChoosesAdapterByProtocol
TestBareModelsRouteChoosesAdapterByProtocol is the #1187 follow-up: bare v1/models is both OpenAI's and Anthropic's catalog route, and the real standa
proxy/internal/gateway/models_metadata_route_test.go:135
FunctionTestBatchRequestIsHandledAndDoesNotKillStream
A JSON-RPC batch (array) must be handled per JSON-RPC — one array of responses — and must not terminate the stream. Sub-issue #2.
mcp/server_test.go:603
FunctionTestBedrockCatalogDoesNotBorrowSourceRegionOrInventedModelPrices
(t *testing.T)
shared/provider-catalog/catalog_test.go:116
FunctionTestBedrockClaudeCacheRowsAreFullyPriced
List must return the full catalog (more than the old hardcoded 3 models) and span every provider — so the /providers/catalog endpoint serves the live
shared/platform/catalog/catalog_test.go:789
← previousnext →8,701–8,800 of 12,853, ranked by callers