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
TestToolSchemaByteSafeOnMalformed
(t *testing.T)
engine/compressors/toolschema_test.go:181
Function
TestToolSchemaDependencyPropertyNamesSurvive
(t *testing.T)
engine/compressors/toolschema_test.go:152
Function
TestToolSchemaDescriptionTruncationStaysUTF8
TestToolSchemaDescriptionTruncationStaysUTF8 guards UTF-8 safety: the byte-index cut must back off to a rune boundary so no U+FFFD replacement charact
engine/compressors/toolschema_test.go:234
Function
TestToolSchemaIdempotent
(t *testing.T)
engine/compressors/toolschema_test.go:208
Function
TestToolSchemaKeepsDefault
TestToolSchemaKeepsDefault guards default preservation: a `default` value is part of argument construction (an agent omits the argument to inherit it)
engine/compressors/toolschema_test.go:340
Function
TestToolSchemaPreservesArgumentConstraints
TestToolSchemaPreservesArgumentConstraints is the call-VALIDITY conformance gate. A compressed catalog must not turn valid tool calls into invalid one
engine/compressors/toolschema_test.go:559
Function
TestToolSchemaPreservesEnvelopeAndMCPAnnotationTitle
(t *testing.T)
engine/compressors/toolschema_test.go:89
Function
TestToolSchemaPreservesSelectionTokens
(t *testing.T)
engine/compressors/toolschema_test.go:49
Function
TestToolSchemaPropertyNamedDescriptionSurvives
(t *testing.T)
engine/compressors/toolschema_test.go:125
Function
TestToolSchemaRefIntegrity
TestToolSchemaRefIntegrity guards reference integrity: a $defs / definitions entry whose name collides with a schema-metadata key must not be dropped,
engine/compressors/toolschema_test.go:356
Function
TestToolSchemaRejectsEveryTrailingNonWhitespaceToken
(t *testing.T)
engine/compressors/toolschema_test.go:191
Function
TestToolSchemaRetainsMarkerlessConstraints
TestToolSchemaRetainsMarkerlessConstraints reproduces the round-2 review's under-keep cases and asserts each constraint SURVIVES compression — both th
engine/compressors/toolschema_test.go:281
Function
TestToolSchemaStripFailsClosed
TestToolSchemaStripFailsClosed covers every way the lever must decline: an unrecognized flag value, the explicit request-wide opt-out, a missing recov
proxy/internal/gateway/toolschema_strip_test.go:270
Function
TestToolSchemaStripIgnoresEpochVeto
TestToolSchemaStripIgnoresEpochVeto: the strip is a pure function of the tool catalog at the head of the prefix. Gating it per request flipped the cat
proxy/internal/gateway/cache_prefix_invariant_test.go:1325
Function
TestToolSchemaStripIsCacheStable
TestToolSchemaStripIsCacheStable is the reason a frozen-prefix rewrite is admissible at all: two consecutive requests carrying the same catalog must p
proxy/internal/gateway/toolschema_strip_test.go:209
Function
TestToolSchemaStripIsOffByDefault
TestToolSchemaStripIsOffByDefault is the default-off pin: a wrap with every technical condition satisfied and no strip configured forwards the catalog
proxy/internal/gateway/toolschema_strip_test.go:113
Function
TestToolSchemaStripRecordModeIsPassThrough
TestToolSchemaStripRecordModeIsPassThrough keeps record mode what it has always been: a byte-safe pass-through, whatever the operator configured.
proxy/internal/gateway/toolschema_strip_test.go:241
Function
TestToolSchemaStripRemovesAnnotationsAndDisclosesRecovery
TestToolSchemaStripRemovesAnnotationsAndDisclosesRecovery pins the whole contract of an enabled strip: the four annotations leave, everything that sel
proxy/internal/gateway/toolschema_strip_test.go:140
Function
TestToolSchemaStripSurvivesStoreFailure
TestToolSchemaStripSurvivesStoreFailure: the catalog is the head of the provider prefix. A strip that fell back to the original catalog whenever the r
proxy/internal/gateway/toolschema_strip_test.go:398
Function
TestToolSchemaStripWithoutPrefixCachePassesThrough
TestToolSchemaStripWithoutPrefixCachePassesThrough pins the maintainability half of the gate. Without a durable replacement cache the proxy cannot kee
proxy/internal/gateway/toolschema_strip_test.go:368
Function
TestToolSchemaStripWithoutStripperCapabilityPassesThrough
TestToolSchemaStripWithoutStripperCapabilityPassesThrough pins the seam: an embedder whose Compressor cannot strip keeps the catalog, whatever the ope
proxy/internal/gateway/toolschema_strip_test.go:345
Function
TestToolSequenceGrader
(t *testing.T)
engine/evals/harness_test.go:136
Function
TestToolSignatureGroupsWithoutLeakingPaths
TestToolSignatureGroupsWithoutLeakingPaths pins both halves of the normalization contract: calls collapse into an actionable shape, and no user path,
proxy/internal/store/detect_tool_portfolio_test.go:11
Function
TestToolsListExactlyFive
--- tests ------------------------------------------------------------------
mcp/server_test.go:107
Function
TestToolsListIncludesOptionalMetadata
(t *testing.T)
mcp/server_test.go:139
Function
TestToonDecodeEngineErrorFailsLoudly
(t *testing.T)
mcp/server_test.go:420
Function
TestToonDecodeFailsLoudlyOnGarbage
(t *testing.T)
mcp/server_test.go:402
Function
TestToonDecodeRoundTrips
(t *testing.T)
mcp/server_test.go:377
Function
TestToonEncodeDegradesByteSafeWithNote
(t *testing.T)
mcp/server_test.go:357
Function
TestToonEncodeHappyPathIncludesBothSizes
(t *testing.T)
mcp/server_test.go:337
Function
TestTopAnswerForACompactionIsAnUnsavedMark
A "top" answer for a compaction on a marked session goes in as a mark for that request only.
proxy/internal/gateway/route_effort_test.go:1729
Function
TestTopAnswerOnAMarkedSessionAppendsAMark
A "top" answer on a session with marks goes in as one more mark: the marks stay and the history is unchanged.
proxy/internal/gateway/route_effort_test.go:1613
Function
TestTopAnswersNeverBringMarks
Cloud answering "top" never brings marks or the beta: a timeout in between sends the agent's own bytes (one cache restart), and no 400 path runs.
proxy/internal/gateway/route_effort_test.go:1582
Function
TestTopSinksCapsAt20
(t *testing.T)
proxy/internal/store/report_chart_test.go:33
Function
TestTraceAndSpanIDs
(t *testing.T)
shared/platform/id/id_test.go:56
Function
TestTransformAnthropicCacheControlNeverAdds
(t *testing.T)
engine/pixel/transform_anthropic_test.go:22
Function
TestTransformAnthropicGoldenFixtures
(t *testing.T)
engine/pixel/transform_anthropic_test.go:215
Function
TestTransformAnthropicHiResBalancedGeometry
TestTransformAnthropicHiResBalancedGeometry is the end-to-end check that a hi-res reader (Fable 5) renders REAL hi-res pages by default: the slab page
engine/pixel/transform_anthropic_density_test.go:29
Function
TestTransformAnthropicHistoryRunsOnEarlyExit
(t *testing.T)
engine/pixel/transform_anthropic_test.go:197
Function
TestTransformAnthropicKeepSharpAndRecoverable
(t *testing.T)
engine/pixel/transform_anthropic_test.go:68
Function
TestTransformAnthropicMalformedAndPassThroughShapes
(t *testing.T)
engine/pixel/transform_anthropic_test.go:175
Function
TestTransformAnthropicMaxLargeSlabTwoLayer
TestTransformAnthropicMaxLargeSlabTwoLayer is the end-to-end check that a max slab exceeding one layer renders the red/blue overlay AND that its doubl
engine/pixel/transform_anthropic_twolayer_test.go:71
Function
TestTransformAnthropicMaxSmallSlabBlack
TestTransformAnthropicMaxSmallSlabBlack asserts the fail-soft path: a max slab that fits one layer renders as a single mono-BLACK page (never red, nev
engine/pixel/transform_anthropic_twolayer_test.go:49
Function
TestTransformAnthropicMaxSmallToolResultBlackNoNote
TestTransformAnthropicMaxSmallToolResultBlackNoNote is the fail-soft companion: a tool result that fits one layer renders mono black and gets NO 2-lay
engine/pixel/transform_anthropic_twolayer_test.go:146
Function
TestTransformAnthropicMaxToolResultEmitsNote
TestTransformAnthropicMaxToolResultEmitsNote checks that a 2-layer tool-result image never reaches the model without its red/blue note — even when the
engine/pixel/transform_anthropic_twolayer_test.go:106
Function
TestTransformAnthropicPreservesExactToolNumbers
(t *testing.T)
engine/pixel/transform_numbers_test.go:59
Function
TestTransformAnthropicRelocatesExistingCacheControlToHistory
(t *testing.T)
engine/pixel/transform_anthropic_test.go:42
Function
TestTransformAnthropicStaticTagCanary
(t *testing.T)
engine/pixel/transform_anthropic_test.go:115
Function
TestTransformErrorFailsOpen
TestTransformErrorFailsOpen proves the byte-safe fail-open contract: in active mode, when the optimizer step errors, the proxy forwards the ORIGINAL r
proxy/internal/gateway/server_test.go:329
Function
TestTransformGeminiExplicitHighMediaResolutionUsesHighBudget
(t *testing.T)
engine/pixel/transform_gemini_test.go:231
Function
TestTransformGeminiKeepsFunctionResponsePairing
(t *testing.T)
engine/pixel/transform_gemini_test.go:301
Function
TestTransformGeminiMalformedBody
(t *testing.T)
engine/pixel/transform_gemini_test.go:249
Function
TestTransformGeminiNonHighGlobalMediaResolutionFailsClosed
(t *testing.T)
engine/pixel/transform_gemini_test.go:186
Function
TestTransformGeminiPassThroughByteIdentity
(t *testing.T)
engine/pixel/transform_gemini_test.go:145
Function
TestTransformGeminiStructural
(t *testing.T)
engine/pixel/transform_gemini_test.go:14
Function
TestTransformGeminiUnknownModelFailsClosedBeforeTokenGate
(t *testing.T)
engine/pixel/transform_gemini_test.go:172
Function
TestTransformGeminiUnknownTopLevelRawPreserved
(t *testing.T)
engine/pixel/transform_gemini_test.go:262
Function
TestTransformGeminiUsesModelSpecificMediaResolutionGate
(t *testing.T)
engine/pixel/transform_gemini_test.go:280
Function
TestTransformOpenAIChatCompressesDenseSystemSlab
(t *testing.T)
engine/pixel/transform_openai_regression_test.go:8
Function
TestTransformOpenAIChatCompressesSystemAndToolDocs
(t *testing.T)
engine/pixel/transform_openai_test.go:81
Function
TestTransformOpenAIDefaultBalancedGeometry
TestTransformOpenAIDefaultBalancedGeometry checks the standalone OpenAI path renders balanced by default for gpt-5.6 (a density-capable reader on the
engine/pixel/transform_openai_density_test.go:14
Function
TestTransformOpenAIGoldenFixtures
(t *testing.T)
engine/pixel/transform_openai_test.go:235
Function
TestTransformOpenAIHistoryCollapseResponsesAndChat
(t *testing.T)
engine/pixel/history_openai_test.go:206
Function
TestTransformOpenAIPassThroughAndErrors
(t *testing.T)
engine/pixel/transform_openai_test.go:214
Function
TestTransformOpenAIPreservesExactToolSchemaNumbers
(t *testing.T)
engine/pixel/transform_numbers_test.go:96
Function
TestTransformOpenAIResponsesBareStringInput
(t *testing.T)
engine/pixel/transform_openai_test.go:188
Function
TestTransformOpenAIResponsesCompressesInstructionsAndTools
(t *testing.T)
engine/pixel/transform_openai_test.go:145
Function
TestTransformPreservesLargeIntegersOnRemarshalFallback
TestTransformPreservesLargeIntegersOnRemarshalFallback pins the sibling of the Bedrock cache-points defect (#1057). spliceTopLevelFields cannot expres
proxy/providers/openai/cache_key_test.go:169
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
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
← previous
next →
10,601–10,700 of 12,391, ranked by callers