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
TestAllowedModelEnv
(t *testing.T)
engine/pixel/applicability_test.go:35
Function
TestAmbiguousDirectoriesNeedEcosystemEvidence
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
Function
TestAnAskIsNeverSentTwice
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
Function
TestAnOlderLoadNeverOverwritesANewerOne
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
Function
TestAnalyze
(t *testing.T)
engine/image/image_test.go:28
Function
TestAnalyzeRejectsDecodeBomb
(t *testing.T)
engine/image/image_test.go:217
Function
TestAnalyzeTrialBoundsAggregatePayloadReplay
(t *testing.T)
proxy/internal/store/trial_feature_test.go:153
Function
TestAnalyzeTrialCompressionReplayReportsTokenShapeWithZeroDollars
(t *testing.T)
proxy/internal/store/trial_feature_test.go:173
Function
TestAnalyzeTrialWithoutPayloadIsInsufficientData
(t *testing.T)
proxy/internal/store/trial_feature_test.go:122
Function
TestAnswerEffortIsCheckedNotGuessed
An effort or mode the runtime does not know how to splice is left out.
proxy/internal/cloudlink/route_effort_test.go:222
Function
TestAnsweredEffortOnEveryDirection
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
Function
TestAnthropicAutomaticPromptCacheCannotClaimCausalSavings
(t *testing.T)
proxy/internal/gateway/pricing_semantics_test.go:152
Function
TestAnthropicCacheStrategiesRecordModeAreByteIdentical
(t *testing.T)
proxy/providers/anthropic/automatic_cache_test.go:85
Function
TestAnthropicEventNameDefinesIncompleteUsageWithoutJSONType
(t *testing.T)
proxy/providers/stream_error_test.go:47
Function
TestAnthropicHistoryKeepsExactNumbersInLiveTail
(t *testing.T)
engine/pixel/transform_numbers_test.go:134
Function
TestAnthropicImageTokensEdges
TestAnthropicImageTokensEdges pins the degenerate inputs and the cap boundary.
engine/pixel/pricing_test.go:39
Function
TestAnthropicImageTokensWorkedExamples
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
Function
TestAnthropicInferenceGeoNotAvailableIsNoGeography
(t *testing.T)
proxy/providers/adapter_usage_test.go:624
Function
TestAnthropicMessageIterationsStayPriced
(t *testing.T)
proxy/providers/adapter_usage_test.go:605
Function
TestAnthropicModelsMetadataRoute
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
Function
TestAnthropicNativeIsByteIdenticalOnCleanBodies
AnthropicNative hands back the very slice it got when nothing is foreign.
proxy/internal/translate/messages_test.go:644
Function
TestAnthropicPrefixStableTenTurns
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
Function
TestAnthropicStreamingIterationsOnMessageStartAreNotPriced
#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
Function
TestAnthropicToolIDs
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
Function
TestAnthropicWireZonesAgreesWithHeaderPathRule
TestAnthropicWireZonesAgreesWithHeaderPathRule pins the two path questions to one rule. SanitizeAndMapHeaders asks anthropicMessagesPath whether a req
proxy/providers/openaicompat/wire_dialect_zones_test.go:150
Function
TestAppendArrayElementsHandlesEmptyArray
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:239
Function
TestAppendArrayElementsPreservesOriginalBytes
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:219
Function
TestAppendArrayElementsValidatesInputsAndNoOpPreservesBody
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:258
Function
TestAppendObjectFieldsHandlesEmptyObject
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:173
Function
TestAppendObjectFieldsPreservesOriginalBytes
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:153
Function
TestAppendObjectFieldsValidatesInputsAndNoOpPreservesBody
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:190
Function
TestAppliedFixRoundTripConfirmsPostFixSessionsAndInsufficientData
(t *testing.T)
proxy/internal/store/learn_outcomes_test.go:11
Function
TestApplyDetailLowKeepsBytes
(t *testing.T)
engine/image/image_test.go:155
Function
TestApplyDetailLowRejectedForProviderWithoutLowTier
(t *testing.T)
engine/image/image_test.go:178
Function
TestApplyPassthrough
(t *testing.T)
engine/image/image_test.go:170
Function
TestApplyRejectsMarginalInferredReductionForS4
(t *testing.T)
engine/image/image_test.go:246
Function
TestApplyRejectsMissingModelOrDetail
(t *testing.T)
engine/image/image_test.go:233
Function
TestApplyResizePreservesColorOfSemiTransparentPixels
(t *testing.T)
engine/image/image_test.go:187
Function
TestApplyResizeShrinksAndIsDeterministic
(t *testing.T)
engine/image/image_test.go:135
Function
TestApplyUpstreamAuthFallbackHeaderOnly
(t *testing.T)
proxy/internal/gateway/auth_fallback_test.go:299
Function
TestApproxCounter
(t *testing.T)
engine/tokens/tokens_test.go:28
Function
TestAskBodyFitsTheContract
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
Function
TestAskFailsOpen
(t *testing.T)
proxy/internal/cloudlink/link_test.go:434
Function
TestAskMatchesTheRouteAskSchema
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
Function
TestAskOnlyWhenRoutingIsOnAndSignedIn
(t *testing.T)
proxy/internal/cloudlink/link_test.go:470
Function
TestAskSendsModelsSignalsAndText
(t *testing.T)
proxy/internal/cloudlink/link_test.go:67
Function
TestAskSendsThePoolOfWhatThePersonSetUp
(t *testing.T)
proxy/internal/cloudlink/pool_test.go:57
Function
TestAskTextFromEachShape
(t *testing.T)
proxy/internal/cloudlink/link_test.go:109
Function
TestAskTextKeepsTheEnds
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
Function
TestAsyncRecordCloseDrainsQueuedRows
(t *testing.T)
proxy/internal/gateway/recorder_test.go:171
Function
TestAsyncRecordFlushWaitsForRecordedRows
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
Function
TestAsyncRecordKeepsRequestOrder
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
Function
TestAsyncRecordRowsMatchInline
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
Function
TestAtlasDecodedLengths
(t *testing.T)
engine/pixel/atlas_test.go:19
Function
TestAtlasGlyphA
(t *testing.T)
engine/pixel/atlas_test.go:29
Function
TestAtlasRank
(t *testing.T)
engine/pixel/atlas_test.go:7
Function
TestAtlasWideCJK
(t *testing.T)
engine/pixel/atlas_test.go:48
Function
TestAttachLearnTrendHistoryMoversAndScore
(t *testing.T)
proxy/internal/store/learn_trends_test.go:183
Function
TestAttributionRungsCarryTheirConfounders
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
Function
TestAuditLogAndMetricsCarryNoContent
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:595
Function
TestAuthToken_AcceptsBearerAndFallsBackToOperatorKey
(t *testing.T)
proxy/internal/standalone/auth_token_test.go:105
Function
TestAuthToken_AcceptsCaveAPIKeyAndStripsIt
(t *testing.T)
proxy/internal/standalone/auth_token_test.go:93
Function
TestAuthToken_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
Function
TestAuthToken_EmptyTokenKeepsLoopbackBehavior
(t *testing.T)
proxy/internal/standalone/auth_token_test.go:162
Function
TestAuthToken_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
Function
TestAuthToken_InboundProviderKeyStillWinsOverBYOK
(t *testing.T)
proxy/internal/standalone/auth_token_test.go:120
Function
TestAuthToken_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
Function
TestAuthToken_ProbeRoutesStayOpenAndChatGPTIsGated
The probe routes a load balancer needs stay open; /chatgpt/ is inference and does not.
proxy/internal/standalone/auth_token_test.go:269
Function
TestAuthToken_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
Function
TestAuthToken_RejectsRequestWithoutToken
(t *testing.T)
proxy/internal/standalone/auth_token_test.go:82
Function
TestAuthToken_RejectsWrongTokenInEitherHeader
(t *testing.T)
proxy/internal/standalone/auth_token_test.go:133
Function
TestAuthToken_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
Function
TestAutoCountTokensAndNoCloudLink
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
Function
TestAutoElsewhereIsRefusedAndEncodedAutoRuns
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
Function
TestAutoFallsBackAndShowsAuto
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
Function
TestAutoMemoryDirResolution
(t *testing.T)
proxy/internal/store/detect_memory_health_test.go:268
Function
TestAutoRetryAnswerNamesAuto
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
Function
TestAutoTakesThe1MSuffix
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
Function
TestAutomaticPromptCacheAddsOnlyTopLevelFiveMinuteMarker
(t *testing.T)
proxy/providers/anthropic/automatic_cache_test.go:29
Function
TestAutomaticPromptCacheConflictsPassThroughByteIdentically
(t *testing.T)
proxy/providers/anthropic/automatic_cache_test.go:41
Function
TestAutomaticPromptCacheDoesNotGuessModelTokenThreshold
(t *testing.T)
proxy/providers/anthropic/automatic_cache_test.go:71
Function
TestAzure_DisallowedApiVersionRejected
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:67
Function
TestAzure_EnvAllowlistOverride
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:99
Function
TestAzure_FoundryV1InferenceRoutesAllowed
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:28
Function
TestAzure_FoundryV1RejectsUnknownVersionAndRoute
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:40
Function
TestAzure_FoundryV1ResolvesNativeUpstreamPath
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:52
Function
TestAzure_LegacyRouteRejectsNonChatActions
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:85
Function
TestAzure_MissingApiVersionRejected
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:73
Function
TestAzure_MissingDeploymentRejected
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:79
Function
TestAzure_ValidRequestAllowed
(t *testing.T)
proxy/providers/azureopenai/azure_routing_test.go:22
Function
TestBM25EmptyQuery
(t *testing.T)
mem/bm25_test.go:42
Function
TestBM25ScoresDeterministicAndRanked
(t *testing.T)
mem/bm25_test.go:18
Function
TestBareAnthropicRoute
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
Function
TestBareGeminiEmbedContentDoesNotMatch
(t *testing.T)
proxy/providers/gemini/gemini_test.go:118
Function
TestBareGeminiPixelRouteAndRecordMode
(t *testing.T)
proxy/internal/gateway/gemini_bare_route_test.go:12
Function
TestBareGeminiVerifiedRoutesMatchMetadata
(t *testing.T)
proxy/providers/gemini/gemini_test.go:127
Function
TestBareModelsRouteChoosesAdapterByProtocol
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
Function
TestBatchRequestIsHandledAndDoesNotKillStream
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
Function
TestBedrockCatalogDoesNotBorrowSourceRegionOrInventedModelPrices
(t *testing.T)
shared/provider-catalog/catalog_test.go:116
Function
TestBedrockClaudeCacheRowsAreFullyPriced
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
← previous
next →
8,701–8,800 of 12,853, ranked by callers