Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
12,391 in github.com/JuliusBrussee/caveman
⨍
Functions
12,391
◇
Types & classes
1,304
↳
Endpoints
5
Function
TestAXTreeNoCCRPassesThrough
(t *testing.T)
engine/axtree_test.go:106
Function
TestAXTreeQueryKeepsBestMatchesAncestorsAndVisibleUIDsOnly
(t *testing.T)
engine/compressors/axtree_test.go:248
Function
TestAXTreeQueryKeepsWholeRowForLineItemMatches
(t *testing.T)
engine/compressors/axtree_test.go:274
Function
TestAXTreeQueryMissIsExplicitAndHasNoGuessableTargets
(t *testing.T)
engine/compressors/axtree_test.go:303
Function
TestAXTreeUIDsAreUniqueAcrossFramesAndDuplicates
(t *testing.T)
engine/compressors/axtree_test.go:143
Function
TestAXTreeUnknownStateTokenIsNotInvented
(t *testing.T)
engine/compressors/axtree_test.go:167
Function
TestAbandonedSessionRepositoryRefsPrunedAfterIdleWindow
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
Function
TestAcceptedFieldsAreNeverDropped
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
Function
TestAcceptedRawRetryPinsTheConversationRaw
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
Function
TestAccountingRoutesResolveForBothPublishers
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
Function
TestActRejectsUnknownActionBeforeUIDLookup
(t *testing.T)
browse/session_test.go:339
Function
TestActUsesCachedTargetAndFailsClosedOnUnknownUID
(t *testing.T)
browse/session_test.go:347
Function
TestAddUsageOverflowFailsClosed
(t *testing.T)
proxy/internal/gateway/usage_aggregation_test.go:9
Function
TestAgentAttribution
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
Function
TestAgentEvidenceForBuildReturnsExactContentBlindRequests
(t *testing.T)
proxy/internal/store/agent_evidence_test.go:10
Function
TestAgentEvidenceMarksIncompleteRequestHashes
(t *testing.T)
proxy/internal/store/agent_evidence_test.go:75
Function
TestAgentPathAttribution
(t *testing.T)
proxy/internal/gateway/server_test.go:408
Function
TestAgentPathAttributionAcrossWireProtocols
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
Function
TestAgentRootsHonorRelocationVariables
(t *testing.T)
proxy/internal/store/agent_roots_test.go:20
Function
TestAgentsOwnEffortComesBackWithoutCloud
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
Function
TestAiderSessionSourceSplitsHeadersAndRoundTripsMarkdownLineLocator
(t *testing.T)
proxy/internal/store/source_aider_test.go:11
Function
TestAllCachedInputLeavesNoEstimateStanding
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
Function
TestAllowedDefaultModels
(t *testing.T)
engine/pixel/applicability_test.go:10
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
← previous
next →
8,301–8,400 of 12,391, ranked by callers