MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

FunctionTestExcludedPathFoldsCaseForUnambiguousNames
(t *testing.T)
proxy/internal/repointel/index_test.go:326
FunctionTestExpandTabsInLine
(t *testing.T)
engine/pixel/render_test.go:85
FunctionTestExpandTildeMirrorsPi
(t *testing.T)
proxy/internal/store/agent_roots_test.go:150
FunctionTestExperimentArmsRecordIntervals
TestExperimentArmsRecordIntervals proves the arm ledger: starting opens the on-arm, switching closes it and opens the other, and switching to the arm
proxy/internal/store/learn_experiment_test.go:38
FunctionTestExperimentAssignsSessionsByStartTime
TestExperimentAssignsSessionsByStartTime pins the assignment rule: a session belongs to the arm it BEGAN in, so one straddling a switch counts once.
proxy/internal/store/learn_experiment_test.go:84
FunctionTestExperimentFlagsCheaperButWorse
TestExperimentFlagsCheaperButWorse guards the failure mode that makes token savings dangerous: an arm that is cheaper because it fails more.
proxy/internal/store/learn_experiment_test.go:168
FunctionTestExperimentProfilesToggleRealRuntimeMechanisms
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:647
FunctionTestExperimentRefusesUnderpoweredVerdict
TestExperimentRefusesUnderpoweredVerdict proves an under-powered holdout drops to unattributed rather than emitting a weak-but-official-looking win.
proxy/internal/store/learn_experiment_test.go:145
FunctionTestExperimentReportGradesAHoldout
TestExperimentReportGradesAHoldout is the payoff: with both arms populated, the harness produces a controlled verdict at the holdout rung, prices the
proxy/internal/store/learn_experiment_test.go:106
FunctionTestExpireCacheComponentsKeepsAccounting
(t *testing.T)
proxy/internal/store/cache_components_test.go:340
FunctionTestExpiredObjectAnswersExpiredThroughEveryReadPath
(t *testing.T)
engine/ccr/store_reclaim_test.go:344
FunctionTestExpiredWaiterLeavesTheQueueWithoutStoreWork
A host-visible event whose budget runs out while it waits for the stripe does no store work afterwards: the host has already failed open.
proxy/internal/nativeruntime/hook_budget_test.go:380
FunctionTestExpiryDeletionAndFailedRecoveryStayClosed
(t *testing.T)
proxy/internal/middleware/runtime_test.go:443
FunctionTestExpiryKeepsAnOwnerThatAKeptReferenceReads
(t *testing.T)
engine/ccr/store_reclaim_test.go:195
FunctionTestExplainDecisionReturnsDeterministicBasisWithoutRawOutput
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:1340
FunctionTestExplicitCache_DisabledIsPassThrough
(t *testing.T)
proxy/providers/gemini/explicit_cache_test.go:54
FunctionTestExplicitCache_GarbagePassThrough
(t *testing.T)
proxy/providers/gemini/explicit_cache_test.go:92
FunctionTestExplicitCache_IdempotentWhenAlreadyCached
(t *testing.T)
proxy/providers/gemini/explicit_cache_test.go:73
FunctionTestExplicitCache_NoSystemInstructionPassThrough
(t *testing.T)
proxy/providers/gemini/explicit_cache_test.go:84
FunctionTestExplicitCache_RecordModePassThrough
(t *testing.T)
proxy/providers/gemini/explicit_cache_test.go:64
FunctionTestExplicitCache_RetiredFlagIsByteIdenticalAndUnattributed
RETIRED: even a stale enabled flag must not move systemInstruction into a cache reference, emit telemetry attribution, or change any request byte.
proxy/providers/gemini/explicit_cache_test.go:39
FunctionTestExplicitEpochVetoKeepsSubstitutions
TestExplicitEpochVetoKeepsSubstitutions: a framework's declared epoch may veto NEW compression, but the replacement it accepted on an earlier turn is
proxy/internal/gateway/cache_prefix_invariant_test.go:1298
FunctionTestExplicitPassThroughSuppressesCompressMode
(t *testing.T)
proxy/internal/gateway/compress_test.go:117
FunctionTestExplicitPassThroughSuppressesPixelMode
(t *testing.T)
proxy/internal/gateway/pixel_test.go:174
FunctionTestExplicitPassThroughSuppressesProviderNativeTransform
(t *testing.T)
proxy/internal/gateway/server_test.go:184
FunctionTestExportSpansLeaveWarmsOut
(t *testing.T)
proxy/internal/store/cache_warm_stats_test.go:77
FunctionTestExportTrialWritesSpansWithoutPayloads
(t *testing.T)
proxy/internal/store/trial_feature_test.go:250
FunctionTestExternalRecoveryAllowsS4WithoutLocalCCRHandle
(t *testing.T)
engine/engine_test.go:276
FunctionTestExternalTokenBudgetMapping
(t *testing.T)
mem/cmd/cavemem/main_test.go:198
FunctionTestExtractCompressibleDoesNotDecodeFrozenHistory
TestExtractCompressibleDoesNotDecodeFrozenHistory is the regression guard: live-only extraction must not pay for the frozen turns it throws away.
proxy/providers/gemini/content_compress_test.go:91
FunctionTestExtractCompressibleDoesNotDecodeFrozenHistory
TestExtractCompressibleDoesNotDecodeFrozenHistory is the regression guard: live-only extraction must not pay for the frozen blocks it throws away. Wit
proxy/providers/openai/content_compress_test.go:240
FunctionTestExtractCompressibleLatestUserTextAndFunctionResponse
(t *testing.T)
proxy/providers/gemini/content_compress_test.go:13
FunctionTestExtractCompressibleMalformedThresholdAndCountOptOut
(t *testing.T)
proxy/providers/gemini/content_compress_test.go:33
FunctionTestExtractCompressibleReusesOpenAIChatGrammar
(t *testing.T)
proxy/providers/azureopenai/content_compress_test.go:10
FunctionTestExtractCompressible_BlockThresholdAndCountTokens
(t *testing.T)
proxy/providers/anthropic/content_compress_test.go:259
FunctionTestExtractCompressible_ClaudeCodeMarkedSystemAfterToolResult
(t *testing.T)
proxy/providers/anthropic/content_compress_test.go:124
FunctionTestExtractCompressible_ClaudeCodeTrailingSystemTail
(t *testing.T)
proxy/providers/anthropic/content_compress_test.go:82
FunctionTestExtractCompressible_ForcedTOONBypassesThresholdForToolMessagesOnly
(t *testing.T)
proxy/providers/openai/content_compress_test.go:94
FunctionTestExtractCompressible_ForcedTOONBypassesThresholdForToolResultsOnly
(t *testing.T)
proxy/providers/anthropic/content_compress_test.go:272
FunctionTestExtractCompressible_LatestMutableUserOnlyAndSpliceFidelity
(t *testing.T)
proxy/providers/anthropic/content_compress_test.go:14
FunctionTestExtractCompressible_LatestToolAndLatestUserOnly
(t *testing.T)
proxy/providers/openai/content_compress_test.go:14
FunctionTestExtractCompressible_MalformedOptsOut
(t *testing.T)
proxy/providers/anthropic/content_compress_test.go:286
FunctionTestExtractCompressible_MalformedOptsOut
(t *testing.T)
proxy/providers/openai/content_compress_test.go:108
FunctionTestExtractCompressible_OptsOutForEveryBedrockVendor
TestExtractCompressible_OptsOutForEveryBedrockVendor asserts no Bedrock vendor's body is ever reshaped by compress mode — including a realistic Anthro
proxy/providers/bedrock/compress_sign_test.go:41
FunctionTestExtractCompressible_ResponsesCustomToolOutputAndRecovery
(t *testing.T)
proxy/providers/openai/content_compress_test.go:154
FunctionTestExtractCompressible_ResponsesLatestUserAndToolOutputOnly
(t *testing.T)
proxy/providers/openai/content_compress_test.go:130
FunctionTestExtractCompressible_ResponsesStringInput
(t *testing.T)
proxy/providers/openai/content_compress_test.go:114
FunctionTestExtractCompressible_SpliceFidelityNonASCII
(t *testing.T)
proxy/providers/anthropic/content_compress_test.go:153
FunctionTestExtractCompressible_SplicePreservesPrefixSuffix
(t *testing.T)
proxy/providers/openai/content_compress_test.go:58
FunctionTestExtractCompressible_ThresholdAndEmbeddingsOptOut
(t *testing.T)
proxy/providers/openai/content_compress_test.go:82
FunctionTestExtractCompressionQuery
(t *testing.T)
proxy/internal/gateway/compression_query_test.go:15
FunctionTestExtractCompressionQueryBoundsWorkWithoutBreakingUTF8
(t *testing.T)
proxy/internal/gateway/compression_query_test.go:73
FunctionTestExtractStabilizableInheritsOpenAIZones
(t *testing.T)
proxy/providers/openaicompat/content_compress_test.go:35
FunctionTestExtractStabilizableInheritsOpenAIZones
(t *testing.T)
proxy/providers/azureopenai/content_compress_test.go:32
FunctionTestExtractStabilizableMatchesExtractCompressibleLiveZone
TestExtractStabilizableMatchesExtractCompressibleLiveZone is the no-drift pin: both extractors read the same zone definition, so the Live blocks of on
proxy/providers/gemini/prefix_stability_test.go:85
FunctionTestExtractStabilizableOptsOutWhereCompressionDoes
TestExtractStabilizableOptsOutWhereCompressionDoes keeps the carve-outs aligned: an endpoint or body whose bytes must be preserved exposes no blocks a
proxy/providers/gemini/prefix_stability_test.go:119
FunctionTestExtractStabilizableTagsFrozenAndLiveTurns
TestExtractStabilizableTagsFrozenAndLiveTurns pins the zones: the latest user turn is Live, every earlier user turn is frozen (substitute-only), and m
proxy/providers/gemini/prefix_stability_test.go:27
FunctionTestExtractStabilizable_ChatTagsFrozenAndLiveBlocks
TestExtractStabilizable_ChatTagsFrozenAndLiveBlocks pins the chat grammar's zones: the latest tool and latest user message are Live, every EARLIER use
proxy/providers/openai/prefix_stability_test.go:28
FunctionTestExtractStabilizable_CountTokensOptsOut
TestExtractStabilizable_CountTokensOptsOut keeps the count_tokens carve-out: that endpoint is never reshaped, so it exposes no blocks at all.
proxy/providers/anthropic/content_compress_test.go:395
FunctionTestExtractStabilizable_MatchesExtractCompressibleLiveZone
TestExtractStabilizable_MatchesExtractCompressibleLiveZone is the no-drift pin: both extractors read the same zone definition, so the Live blocks of o
proxy/providers/openai/prefix_stability_test.go:130
FunctionTestExtractStabilizable_OptsOutWhereCompressionDoes
TestExtractStabilizable_OptsOutWhereCompressionDoes keeps the carve-outs aligned: an endpoint whose bytes must be preserved exposes no blocks at all,
proxy/providers/openai/prefix_stability_test.go:183
FunctionTestExtractStabilizable_ResponsesTagsFrozenAndLiveBlocks
TestExtractStabilizable_ResponsesTagsFrozenAndLiveBlocks runs the same rule over the Responses grammar: the latest function_call_output and the latest
proxy/providers/openai/prefix_stability_test.go:89
FunctionTestExtractStabilizable_TagsFrozenAndLiveBlocks
TestExtractStabilizable_TagsFrozenAndLiveBlocks pins the zone tagging the cross-turn prefix fix depends on: the clamped trailing turn is Live (it may
proxy/providers/anthropic/content_compress_test.go:296
FunctionTestExtractStabilizable_TagsToolResultSemantics
(t *testing.T)
proxy/providers/anthropic/content_compress_test.go:376
FunctionTestExtractStabilizable_UnmarkedConversationFreezesOlderUserTurns
TestExtractStabilizable_UnmarkedConversationFreezesOlderUserTurns covers the no-cache_control variant: only the latest user turn is Live, but earlier
proxy/providers/anthropic/content_compress_test.go:348
FunctionTestExtractToolCatalogFailsClosed
(t *testing.T)
proxy/providers/toolzone_test.go:79
FunctionTestExtractToolCatalogMultiProvider
(t *testing.T)
proxy/providers/toolzone_test.go:34
FunctionTestExtractToolCatalogReturnsExactBytesAndSplicesInPlace
(t *testing.T)
proxy/providers/toolzone_test.go:14
FunctionTestFactSheetAllPagesCounts
(t *testing.T)
engine/pixel/factsheet_test.go:83
FunctionTestFactSheetBudgetAndPriority
(t *testing.T)
engine/pixel/factsheet_test.go:35
FunctionTestFactSheetExtraction
(t *testing.T)
engine/pixel/factsheet_test.go:11
FunctionTestFactSheetTicketsAndCounts
(t *testing.T)
engine/pixel/factsheet_test.go:63
FunctionTestFailedFirstSnapshotClosesNewOwnedChrome
(t *testing.T)
browse/cmd/caveman-browse/main_integration_test.go:116
FunctionTestFailedInitialOpenPreservesJournalsReplacedBeforeCapture
(t *testing.T)
engine/ccr/store_reopen_race_test.go:109
FunctionTestFailureBeforeContentIsNotServed
A 2xx that fails before any content writes nothing, so the request can fall back.
proxy/internal/translate/review_regressions_test.go:31
FunctionTestFailureWithALingeringUpstream
An upstream that fails and then keeps the connection open: before content the request still falls back at once (no heartbeat commits the held error),
proxy/internal/translate/wire_gaps_test.go:714
FunctionTestFallbackContextWindowKeepsDepthCountsButOmitsTokenFloorAndCrossProviderDepth
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:122
FunctionTestFallbackReportsStorageErrorsAsErrors
(t *testing.T)
engine/ccr/store_consolidation_blocks_test.go:188
FunctionTestFamilyIndexNameRoundTrip
FamilyIndexOf and FamilyNameOf must round-trip for every member, and both must fail closed (index -1, name "") for an unknown ID.
shared/platform/optimizers/optimizers_test.go:24
FunctionTestFanoutKeyIncludesThePromptCacheKey
Siblings with different prompt_cache_keys may land on different OpenAI machines: they never wait on each other.
proxy/internal/gateway/route_cache_test.go:310
FunctionTestFanoutReleasesAtTheFirstContentEvent
An event stream releases the leader at its first content event: comments, pings and the openings sent before the prompt is read wait; an error release
proxy/internal/gateway/route_cache_test.go:266
FunctionTestFanoutSendsOneSiblingFirst
Four siblings on one new prefix: one goes, three wait for its first byte. A sibling after that finds the prefix warm and waits for nobody.
proxy/internal/gateway/route_cache_test.go:164
FunctionTestFanoutWaitIsBounded
The wait is bounded: a leader that never answers releases nobody, and the siblings go after fanoutWait; a cancelled sibling stops waiting at once.
proxy/internal/gateway/route_cache_test.go:189
FunctionTestFieldElementsAndStringsNavigateWithoutReencoding
(t *testing.T)
proxy/providers/jsonsplice/jsonsplice_test.go:36
FunctionTestFileRepeatRequiresMatchingExternalInputState
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:138
FunctionTestFindTaskDecision
(t *testing.T)
engine/ccr/store_test.go:151
FunctionTestFingerprintProvesTheEditIsStillOurs
TestFingerprintProvesTheEditIsStillOurs is the core attribution mechanism: we hash the artifact at apply time, so a later scan can state whether the c
proxy/internal/store/learn_attribution_test.go:23
FunctionTestFirstPositionalDoesNotConsumeValueAfterBooleanFlag
(t *testing.T)
proxy/cmd/caveman-proxy/main_test.go:87
FunctionTestFirstRequestWaitsForTheKeychainRead
Start begins the keychain read off any request; the first request after a start that lands before the read waits for it and is asked about, instead of
proxy/internal/cloudlink/link_test.go:1285
FunctionTestFitEffort
(t *testing.T)
proxy/internal/translate/review_regressions_test.go:328
FunctionTestFixtureWithNoGradersFailsClosed
(t *testing.T)
engine/evals/harness_test.go:154
FunctionTestForInputTokensAppliesProviderReportedLongContextTier
(t *testing.T)
shared/platform/cost/cost_test.go:49
FunctionTestForInputTokensCoversAllRatesAndSafeFallbacks
(t *testing.T)
shared/platform/cost/cost_contract_test.go:69
FunctionTestForInputTokensHonorsInclusiveThreshold
(t *testing.T)
shared/platform/cost/cost_test.go:63
FunctionTestForgedWouldSaveUSDStrippedOnUnpricedRow
TestForgedWouldSaveUSDStrippedOnUnpricedRow proves the store re-enforces the price discipline: a would_save_usd handed in for a non-list-priced row is
proxy/internal/store/observe_test.go:99
FunctionTestForget
(t *testing.T)
mem/store_test.go:176
FunctionTestForgetRepairsHistoryWithoutResurrectingExpiredMemory
(t *testing.T)
mem/store_test.go:193
FunctionTestForkedChildCountTokensGetsTheParentsMarks
A forked child's count_tokens before its first request gets its parent's marks: it resends the parent's history.
proxy/internal/gateway/route_effort_test.go:1628
FunctionTestFreePagesBelowPageCapAreRoom
(t *testing.T)
engine/ccr/store_full_test.go:234
FunctionTestFreshChildInheritsRefusals
A forked child with its own conversation still takes its parent's refused models: Cloud's effort goes top-level there, never as a mark.
proxy/internal/gateway/route_effort_test.go:1386
← previousnext →9,401–9,500 of 12,853, ranked by callers