MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

FunctionTestAXTreeNoCCRPassesThrough
(t *testing.T)
engine/axtree_test.go:106
FunctionTestAXTreeQueryKeepsBestMatchesAncestorsAndVisibleUIDsOnly
(t *testing.T)
engine/compressors/axtree_test.go:248
FunctionTestAXTreeQueryKeepsWholeRowForLineItemMatches
(t *testing.T)
engine/compressors/axtree_test.go:274
FunctionTestAXTreeQueryMissIsExplicitAndHasNoGuessableTargets
(t *testing.T)
engine/compressors/axtree_test.go:303
FunctionTestAXTreeUIDsAreUniqueAcrossFramesAndDuplicates
(t *testing.T)
engine/compressors/axtree_test.go:143
FunctionTestAXTreeUnknownStateTokenIsNotInvented
(t *testing.T)
engine/compressors/axtree_test.go:167
FunctionTestAbandonedSessionRepositoryRefsPrunedAfterIdleWindow
A host can disappear without ever sending session.end. repositoryEnded is only written by session.end, so a ref prune keyed off it alone keeps one ent
proxy/internal/nativeruntime/runtime_test.go:1555
FunctionTestAcceptedFieldsAreNeverDropped
A field Cloud has answered 200 for is never blamed for a later generic 400: a bad ask is not sent again without it.
proxy/internal/cloudlink/cache_ttl_test.go:137
FunctionTestAcceptedRawRetryPinsTheConversationRaw
TestAcceptedRawRetryPinsTheConversationRaw: once the provider accepted a request only in its original form, that is what it cached, so every later req
proxy/internal/gateway/cache_prefix_invariant_test.go:1488
FunctionTestAccountingRoutesResolveForBothPublishers
The Anthropic SDK counts tokens on Vertex through a fixed pseudo-model segment: .../publishers/anthropic/models/count-tokens:rawPredict. Rejecting it
proxy/providers/vertex/proxy_preflight_test.go:52
FunctionTestActRejectsUnknownActionBeforeUIDLookup
(t *testing.T)
browse/session_test.go:339
FunctionTestActUsesCachedTargetAndFailsClosedOnUnknownUID
(t *testing.T)
browse/session_test.go:347
FunctionTestAddUsageOverflowFailsClosed
(t *testing.T)
proxy/internal/gateway/usage_aggregation_test.go:9
FunctionTestAgentAttribution
TestAgentAttribution proves the proxy tags each spend row with the wrapped agent from the x-cave-agent header (set by `caveman wrap <agent>`), default
proxy/internal/gateway/server_test.go:375
FunctionTestAgentEvidenceForBuildReturnsExactContentBlindRequests
(t *testing.T)
proxy/internal/store/agent_evidence_test.go:10
FunctionTestAgentEvidenceMarksIncompleteRequestHashes
(t *testing.T)
proxy/internal/store/agent_evidence_test.go:75
FunctionTestAgentPathAttribution
(t *testing.T)
proxy/internal/gateway/server_test.go:408
FunctionTestAgentPathAttributionAcrossWireProtocols
TestAgentPathAttributionAcrossWireProtocols keeps /w/<slug> attribution a proxy contract, independent of the CLI's compiled agent registry. An intenti
proxy/internal/gateway/agent_path_protocol_test.go:20
FunctionTestAgentRootsHonorRelocationVariables
(t *testing.T)
proxy/internal/store/agent_roots_test.go:20
FunctionTestAgentsOwnEffortComesBackWithoutCloud
Without an effort from Cloud the agent's own top-level effort runs: routed low, then routing off while the agent asks for max puts max back, cache-saf
proxy/internal/gateway/route_effort_test.go:1025
FunctionTestAiderSessionSourceSplitsHeadersAndRoundTripsMarkdownLineLocator
(t *testing.T)
proxy/internal/store/source_aider_test.go:11
FunctionTestAllCachedInputLeavesNoEstimateStanding
All input cached: message_delta's input_tokens is not 0, so a client that keeps message_start's count on a 0 does not add the estimate to the cache.
proxy/internal/translate/review_regressions_test.go:312
FunctionTestAllowedDefaultModels
(t *testing.T)
engine/pixel/applicability_test.go:10
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
← previousnext →8,301–8,400 of 12,391, ranked by callers