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
TestTransformRejected4xxFailsOpenWithOriginalBytes
TestTransformRejected4xxFailsOpenWithOriginalBytes proves the byte-safe fail-open retry: when the upstream rejects a request whose bytes the proxy mod
proxy/internal/gateway/compress_test.go:1098
Function
TestTransformRejectsTrailingBytesAfterTheTopLevelValue
Decoding with a json.Decoder instead of json.Unmarshal must not widen what this adapter accepts. json.Unmarshal rejects trailing bytes after the top-l
proxy/providers/openai/cache_key_test.go:224
Function
TestTransientInspectFailureDoesNotQuarantineStore
A parent directory whose mode is loose for one instant, an antivirus lock, or an I/O error means "could not verify", not "was replaced". Quarantine is
engine/ccr/store_generation_test.go:747
Function
TestTranslatedMessageStartEstimatesInput
A translated stream's message_start carries an input estimate (Claude Code's context meter reads it), marked as one; message_delta carries the host's
proxy/internal/translate/review_regressions_test.go:268
Function
TestTranslatedThinkingIsStrippedBeforeAnthropic
Reasoning another provider produced is signed caveman:…, and a native Anthropic forward strips it (and unsigned thinking) while keeping Claude's own s
proxy/internal/translate/messages_test.go:611
Function
TestTrendDirectionDeadBand
(t *testing.T)
proxy/internal/store/learn_trends_test.go:52
Function
TestTrialPayloadCaptureOnlyTrialLabel
(t *testing.T)
proxy/internal/store/trial_feature_test.go:18
Function
TestTrialReportKeepsImportedHistoryContextual
(t *testing.T)
proxy/internal/store/trial_feature_test.go:223
Function
TestTrimmedHistoryStartsANewEpoch
PY-3: a trimmed or summarized history (or a nested agent on the same scope) starts a new epoch for a 1.1 client instead of failing every later turn; i
proxy/internal/middleware/hardening_test.go:484
Function
TestTrimmedSummaryDeclaresWhatItShed
TestTrimmedSummaryDeclaresWhatItShed is the honesty gate for shedding, the same one TestEnumeratedCountsCoverEveryElidedUnit applies to enumeration. s
engine/compressors/invariants_test.go:909
Function
TestTripwireFlagsADroppedBreakpoint
TestTripwireFlagsADroppedBreakpoint: a forwarded request that caches less than the client asked for leaves the next turn no entry to read, and only ca
proxy/internal/gateway/prefix_monitor_test.go:455
Function
TestTripwireFollowsThePinAcrossSessions
TestTripwireFollowsThePinAcrossSessions: the raw retry that pinned a conversation can arrive without a session id (correlation is best effort), so the
proxy/internal/gateway/prefix_monitor_test.go:403
Function
TestTripwireFreezesTheToolSchemaStrip
TestTripwireFreezesTheToolSchemaStrip is the first consumer of LeverAllowed, end to end: a session whose cache-creation blows up after the strip ran l
proxy/internal/gateway/breakpoint_plan_test.go:196
Function
TestTripwireIsInertWithoutASession
TestTripwireIsInertWithoutASession: a caller that does not identify its session keeps every lever forever. The tripwire needs a session to attribute h
proxy/internal/gateway/breakpoint_plan_test.go:244
Function
TestTripwireLeverFreezeIsNotCavemansBust
TestTripwireLeverFreezeIsNotCavemansBust: the harm tripwire freezing the tool-schema strip for a session is a deliberate one-time rollover of the cata
proxy/internal/gateway/prefix_monitor_test.go:419
Function
TestTruncateForBudget
(t *testing.T)
engine/pixel/textprep_test.go:78
Function
TestTruncatedBeforeFirstParseDoesNotClaimUsageFreeSession
(t *testing.T)
proxy/internal/store/learn_retro_test.go:1097
Function
TestTruncatedMapKeepsDirectEvidenceUsable
A truncated or large map used to silence every hit through Scout status. Scout advice and injection eligibility are now separate judgements.
proxy/internal/repointel/index_test.go:362
Function
TestTurnEffortSignalsHermesErrorsMechanicalUserAndRecoveryNames
(t *testing.T)
proxy/providers/openai/turn_effort_test.go:98
Function
TestTurnStartedInAPauseKeepsItsAnswer
A turn that starts during a pause keeps the paused answer for its whole tool loop: the pause ending halfway never switches the model.
proxy/internal/cloudlink/link_test.go:1248
Function
TestTurnStartsRunOnTurnStart
A session or prompt start runs OnTurnStart (the Cloud link warms its route path before the model request); no other event does.
proxy/internal/nativeruntime/runtime_test.go:1614
Function
TestTwentyTurnsAcrossRestartAndWorkers
(t *testing.T)
proxy/internal/middleware/runtime_test.go:297
Function
TestTwoLayerCapacitySeam
TestTwoLayerCapacitySeam pins that the layer-aware capacity flows through the SAME seam into EstimateImageCount and TruncateForBudget: a tool result s
engine/pixel/overlay_test.go:223
Function
TestTwoLayerGateParityAndCapacity
TestTwoLayerGateParityAndCapacity asserts the two invariants of the max gate: a max image costs the SAME tokens as a balanced page (identical pixels)
engine/pixel/overlay_test.go:189
Function
TestTwoLayerOverlapMatchesReferenceComposite
TestTwoLayerOverlapMatchesReferenceComposite renders the SAME glyph in both layers at the same cell (so red and blue coverage are identical at every p
engine/pixel/overlay_test.go:71
Function
TestTwoLayerReaderNote
TestTwoLayerReaderNote pins the max-level reader instruction: two red/blue layers, red-before-blue, row order continues red→blue, black = single layer
engine/pixel/transform_anthropic_twolayer_test.go:33
Function
TestTwoLayerSplitter
TestTwoLayerSplitter covers page-by-page halving across layers: exact 2N, odd (shorter blue), single-line (black not red), empty, and spill into a sec
engine/pixel/overlay_test.go:112
Function
TestTwoPrincipalsCannotFillAQueue
FX2: two principals each holding their full share of both queues still leave a slot for a principal holding none: its optimize and retrieve answer wit
proxy/internal/middleware/hardening_test.go:556
Function
TestTypedObjectFailsClosedAndIsSessionScoped
(t *testing.T)
engine/ccr/store_test.go:125
Function
TestTypedObjectPersistsOnDisk
(t *testing.T)
engine/ccr/store_test.go:170
Function
TestTypedObjectRoundTripAndCurrentness
(t *testing.T)
engine/ccr/store_test.go:33
Function
TestUnavailableClassifierFallsBackToMasking
TestUnavailableClassifierFallsBackToMasking is the fail-safe direction: without a classifier the runtime cannot know what elision would do, so it mask
proxy/internal/nativeruntime/mask_elidable_test.go:193
Function
TestUnavailableSessionFailsClosedWithoutPanicking
(t *testing.T)
browse/session_test.go:136
Function
TestUnchangedObjectKeepsRefusalState
(t *testing.T)
engine/ccr/store_full_test.go:364
Function
TestUniqueRecentSessionFailsClosedOnAmbiguityAndStaleness
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:984
Function
TestUniqueRecentSessionUsesKnownModelToRejectOtherSessions
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:1020
Function
TestUnixServerConcurrentSessionsAndPermissions
(t *testing.T)
proxy/internal/nativeruntime/server_test.go:19
Function
TestUnknownArgumentExitsTwo
(t *testing.T)
mcp/cmd/caveman-mcp/main_test.go:38
Function
TestUnknownClassFailsClosed
(t *testing.T)
engine/safety/safety_test.go:64
Function
TestUnknownGraderFailsClosed
(t *testing.T)
engine/evals/harness_test.go:84
Function
TestUnknownMethodIsJSONRPCError
(t *testing.T)
mcp/server_test.go:452
Function
TestUnknownModeFailsClosedToRecord
(t *testing.T)
engine/engine_test.go:78
Function
TestUnknownRouteFailsClosed
TestUnknownRouteFailsClosed proves an unrecognized path is a 404, never a blind pass-through.
proxy/internal/gateway/server_test.go:494
Function
TestUnknownRouteIsNotFoundBeforeQuotaAndBody
§1: an unknown route is 404 whatever its body, before it takes a quota count.
proxy/internal/middleware/hardening_test.go:764
Function
TestUnknownSchemaFailsClosed
(t *testing.T)
proxy/internal/runstate/runstate_test.go:169
Function
TestUnlockRemovesOnlyItsOwnLock
A holder only ever removes its own lock: after a stale break handed the lock to another writer, the first holder's unlock leaves it alone.
proxy/internal/pool/pool_test.go:356
Function
TestUnmatchedBodiesKeepTheirMarksToThemselves
A body matching none of the session's marks gets its own mark only: a side request (even one repeated word for word) never replaces the main thread's
proxy/internal/gateway/route_effort_test.go:1245
Function
TestUnpersistedRawDecisionHolds
TestUnpersistedRawDecisionHolds: when the replacement store cannot take a write, the turn's new block goes out raw and that decision cannot be stored.
proxy/internal/gateway/cache_prefix_invariant_test.go:1419
Function
TestUnreadableAnswerPauses
A 200 that is not JSON pauses like any other bad answer.
proxy/internal/cloudlink/link_test.go:916
Function
TestUnsignedThinkingScan
(t *testing.T)
proxy/internal/translate/jsonfast_test.go:5
Function
TestUnstructuredRunsKeepTheBareMarker
TestUnstructuredRunsKeepTheBareMarker is the fallback contract: a payload the extractors cannot read must produce exactly the marker this compressor e
engine/compressors/invariants_test.go:536
Function
TestUnsummarizableToolOutputIsStillMasked
TestUnsummarizableToolOutputIsStillMasked: masking keeps its original job.
proxy/internal/nativeruntime/mask_elidable_test.go:143
Function
TestUnwrapCodexExecOnlyTakesCodexResultLines
(t *testing.T)
engine/codexexec_test.go:67
Function
TestUnwrapFileWrapper
(t *testing.T)
engine/filewrap_test.go:10
Function
TestUnwrapInputNumberedListingEmptyLines
(t *testing.T)
engine/filewrap_test.go:55
Function
TestUpdatesComeBackAfterATruncationRequest
A session's updates survive a request that may carry none.
proxy/internal/gateway/route_effort_responses_test.go:417
Function
TestUpstreamAmbiguousFailureNeverReplaysInference
(t *testing.T)
proxy/internal/gateway/upstream_retry_test.go:103
Function
TestUpstreamAuthFallbackHeaders
(t *testing.T)
proxy/internal/gateway/auth_fallback_test.go:55
Function
TestUpstreamIDIsKept
The host's own answer id is kept for looking the call up there (its cost): OpenRouter's gen- id under a Codex caller's translated resp_ id.
proxy/internal/translate/review_regressions_test.go:302
Function
TestUpstreamProxyConnectFailureRetries
#1001: a corporate proxy that is down fails at proxy connection setup, which net/http reports as Op "proxyconnect", not Op "dial". A dial-only test le
proxy/internal/gateway/upstream_retry_test.go:82
Function
TestUpstreamProxyFunc_HandBuiltConfigNeverPanics
The accessor is a cached-field read for a loaded Config and must never panic on a Config assembled in code: a request path is a bad place to discover
proxy/internal/config/config_test.go:741
Function
TestUpstreamRetryLogRemovesURLCredentials
(t *testing.T)
proxy/internal/gateway/upstream_log_redaction_test.go:14
Function
TestUpstreamTransportErrorRetries
Dial failures occur before the request reaches the provider and can be retried.
proxy/internal/gateway/upstream_retry_test.go:19
Function
TestUsageAfterFlushWritesPendingRowsFirst
A receipt reads session usage only after the rows still being finished are written: the flush lands the session's last row before the sum.
proxy/cmd/caveman-proxy/usage_flush_test.go:12
Function
TestUsageAndCost_NonZeroForCatalogModel
Catalog cost for a Bedrock model in the catalog must be non-zero (the catalog entry was added with this adapter), proving usage+cost are parsed correc
proxy/providers/bedrock/usage_test.go:233
Function
TestUsageAndCost_NonZeroForCatalogModels
Catalog cost for a Vertex model in the catalog must be non-zero (the catalog entries were added with this adapter), proving usage+cost wiring. Since 2
proxy/providers/vertex/usage_test.go:79
Function
TestUsageImportsCodexClaudeAndReportRedactsRawContent
(t *testing.T)
proxy/internal/store/trial_feature_test.go:37
Function
TestUsageLineFilterMatchesDecodingEveryLine
TestUsageLineFilterMatchesDecodingEveryLine: skipping the lines mayCarryUsage rules out leaves every observed value as it was.
proxy/providers/usage_line_filter_test.go:74
Function
TestUsagePricingQualifiersAndTerminalProof
(t *testing.T)
proxy/providers/adapter_usage_test.go:189
Function
TestUsageScannerRetainsObservedErrorFromBoundedTail
(t *testing.T)
proxy/providers/stream_error_test.go:36
Function
TestUsageScanner_CorruptSupportedEncodingIsExplicitlyUnpriced
(t *testing.T)
proxy/providers/adapter_usage_test.go:485
Function
TestUsageScanner_DecodedSideCopyHonorsScanLimit
(t *testing.T)
proxy/providers/adapter_usage_test.go:499
Function
TestUsageScanner_DecodesSupportedSideCopyWithoutChangingWireBytes
(t *testing.T)
proxy/providers/adapter_usage_test.go:451
Function
TestUsageScanner_RecoversCompleteTerminalUsageFromBoundedTail
(t *testing.T)
proxy/providers/adapter_usage_test.go:565
Function
TestUsageScanner_StackedEncodingIsExplicitlyUnpriced
(t *testing.T)
proxy/providers/adapter_usage_test.go:514
Function
TestUsageScanner_TeeAndStatus
(t *testing.T)
proxy/providers/adapter_usage_test.go:391
Function
TestUsageScanner_Truncation
(t *testing.T)
proxy/providers/adapter_usage_test.go:441
Function
TestUsageScanner_UnsupportedEncodingIsExplicitlyUnpriced
(t *testing.T)
proxy/providers/adapter_usage_test.go:556
Function
TestUserClaudeMDAndCodexAgentsRatesCountOnlyTheirOwnSource
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:533
Function
TestValidPriceAcceptsCatalogShapeAndRejectsUnsafeFields
(t *testing.T)
shared/platform/cost/cost_contract_test.go:110
Function
TestValidateChecksProcessAndListenerIdentity
(t *testing.T)
proxy/internal/runstate/runstate_test.go:107
Function
TestValidateHost
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:393
Function
TestValidateHost_InvalidInputDoesNotEchoRawInput
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:341
Function
TestValidateHost_LoopbackAllowlist
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:598
Function
TestValidateHost_ZonedAddressesBlocked
IPv6 zone identifiers must not defeat the block lists: a zoned link-local or loopback literal has to be rejected just like its un-zoned form.
shared/platform/ssrf/ssrf_zone_test.go:14
Function
TestValidatePayloadProductionRequiresDedicatedKey
(t *testing.T)
shared/platform/kms/kms_test.go:177
Function
TestValidateProductionFailsClosed
(t *testing.T)
shared/platform/kms/kms_test.go:138
Function
TestValidateURL
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:261
Function
TestValidateURL_HostResolvingToLoopback
--- DNS-resolved hostname test --- This test starts a real local server on 127.0.0.1 to act as a resolution target. We can't control what external DN
shared/platform/ssrf/ssrf_test.go:415
Function
TestValidateURL_InvalidPortDoesNotEchoRawInput
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:327
Function
TestValidateURL_ParseErrorsDoNotEchoRawInput
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:277
Function
TestValidateURL_ValidUserinfoKeepsGenericRejection
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:313
Function
TestValidateURL_ZonedLiteralBlocked
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:172
Function
TestVerificationDoesNotConsumeRecovery
(t *testing.T)
mcp/retrieve_verification_test.go:10
Function
TestVerificationRejectsUnknownHandle
(t *testing.T)
mcp/retrieve_verification_test.go:42
Function
TestVersionAdvertisesSupersedeStdin
(t *testing.T)
mem/cmd/cavemem/main_test.go:343
Function
TestVersionJSON
(t *testing.T)
engine/cmd/caveman-engine/version_test.go:11
Function
TestVersionJSON
(t *testing.T)
shrink/cmd/caveman-shrink/version_test.go:11
Function
TestVersionJSON
(t *testing.T)
browse/cmd/caveman-browse/version_test.go:11
Function
TestVersionJSON
(t *testing.T)
mem/cmd/cavemem/version_test.go:11
← previous
next →
11,101–11,200 of 12,853, ranked by callers