MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

FunctionTestCodeCompressorGoIdempotent
(t *testing.T)
engine/compressors/code_test.go:66
FunctionTestCodeCompressorHandlesGDScriptInEveryBuild
The code compressor must route GDScript to the line-based elider in every build: the cgo build has no GDScript grammar and the pure-Go build has no gr
engine/compressors/code_gdscript_test.go:211
FunctionTestCodeCompressorMalformedPassesThrough
(t *testing.T)
engine/compressors/code_test.go:77
FunctionTestCodeCompressorPython
With cgo (tree-sitter) the code compressor handles Python and TypeScript too. A successful compression implies the output re-parsed without error, bec
engine/compressors/code_cgo_test.go:49
FunctionTestCodeCompressorPythonIdempotent
(t *testing.T)
engine/compressors/code_cgo_test.go:87
FunctionTestCodeCompressorTypeScript
(t *testing.T)
engine/compressors/code_cgo_test.go:68
FunctionTestCodeCpp
(t *testing.T)
engine/compressors/code_langs_test.go:76
FunctionTestCodeCppRealErrorsStillPassThrough
A macro in declaration position is a real ERROR node, not a recovered token, and the file still passes through untouched.
engine/compressors/code_cpp_realworld_test.go:76
FunctionTestCodeCppToleratesRecoveredTokens
Godot-style C++: a class-body macro without a trailing semicolon and a typed anonymous enum. tree-sitter recovers from both by inserting a token (a MI
engine/compressors/code_cpp_realworld_test.go:36
FunctionTestCodeJava
(t *testing.T)
engine/compressors/code_langs_test.go:45
FunctionTestCodeModeGatewaySearchExecuteAndCCRRecovery
(t *testing.T)
mcp/codemode/codemode_test.go:89
FunctionTestCodePythonDocstringOnlyModulePreserved
(t *testing.T)
engine/compressors/code_langs_test.go:192
FunctionTestCodePythonDocstringRejectsFStringAndBytes
(t *testing.T)
engine/compressors/code_langs_test.go:174
FunctionTestCodePythonDocstringRemove
(t *testing.T)
engine/compressors/code_langs_test.go:122
FunctionTestCodeRust
(t *testing.T)
engine/compressors/code_langs_test.go:29
FunctionTestCodeTSXReactComponent
A React component is TSX, not TypeScript: the TypeScript grammar stops at the first JSX element and the file used to pass through untouched.
engine/compressors/code_langs_test.go:205
FunctionTestCodemodeRecoveryRequiredBeforeElision
(t *testing.T)
mcp/codemode/stdio_js_builtin_test.go:1152
FunctionTestCodexBehaviorDoesNotDoubleCountCachedInputSubset
(t *testing.T)
proxy/internal/store/trial_feature_test.go:512
FunctionTestCodexBillingUsageNormalizesInclusiveInput
TestCodexBillingUsageNormalizesInclusiveInput pins the semantic difference that would otherwise silently overcharge every OpenAI user: input_tokens al
proxy/internal/store/learn_pricing_test.go:110
FunctionTestCodexCumulativeTotalWithoutBucketsIsNeverMispriced
(t *testing.T)
proxy/internal/store/trial_feature_test.go:479
FunctionTestCodexExecOutputCompressesAndRetrievesTheOriginal
(t *testing.T)
engine/codexexec_test.go:25
FunctionTestCodexNativeRouteNeedsV1
TestCodexNativeRouteNeedsV1 pins the proxy half of the contract the CLI writes into ~/.codex/config.toml as `base_url`. Codex's OpenAI-Responses clien
proxy/internal/gateway/codex_native_route_test.go:22
FunctionTestCodexSessionSourceMinesHumanMessageRepaste
(t *testing.T)
proxy/internal/store/source_codex_test.go:14
FunctionTestCodexTextExecEnvelopeUnwrapsAndRewraps
(t *testing.T)
engine/harness_envelopes_test.go:12
FunctionTestCollapseAnthropicHistoryKeepsTail
(t *testing.T)
engine/pixel/history_anthropic_test.go:29
FunctionTestCollapseAnthropicHistoryNoHistory
(t *testing.T)
engine/pixel/history_anthropic_test.go:19
FunctionTestCollapseAnthropicHistoryOpenToolSequenceStaysLive
(t *testing.T)
engine/pixel/history_anthropic_test.go:52
FunctionTestCollapseAnthropicHistoryQuantizedBytesStable
(t *testing.T)
engine/pixel/history_anthropic_test.go:83
FunctionTestCommandDropsInheritedGitEnvButKeepsSystemConfig
(t *testing.T)
proxy/internal/gitsafe/gitsafe_test.go:23
FunctionTestCommandOverridesRepositoryControlledConfig
(t *testing.T)
proxy/internal/gitsafe/gitsafe_test.go:10
FunctionTestCommandRunsGitWithoutAConsoleWindow
The detached proxy runs the repository map's git calls with no console, so without CREATE_NO_WINDOW each one flashes a console window on screen.
proxy/internal/gitsafe/gitsafe_windows_test.go:14
FunctionTestCommonNameIsOptInAndPrefixed
S2: a CN names a principal only when enabled, and then as mtls:cn:<CN>, never the token principal it spells. With no ServerTLS to re-verify against, n
proxy/internal/identity/tls_test.go:290
FunctionTestCompactSlabWhitespace
(t *testing.T)
engine/pixel/textprep_test.go:155
FunctionTestCompactionChurnParsesObservedBoundaryAndCompactSummaryShape
(t *testing.T)
proxy/internal/store/detect_compaction_test.go:9
FunctionTestCompactionChurnResetsPreBoundaryPathsAtEachCompaction
(t *testing.T)
proxy/internal/store/detect_compaction_test.go:39
FunctionTestCompactionTransitionsTaskStateHotEvidenceWarmAndRawObservationsCold
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:820
FunctionTestCompactionWhileOffRunsAtTheAgentsEffort
A compaction with routing off runs at the agent's effort, not Cloud's last mark, and leaves the session's marks for the main thread.
proxy/internal/gateway/route_effort_test.go:1220
FunctionTestCompanionToolsFlatSurfaceAnnotationsAndCCR
(t *testing.T)
mcp/codemode/companion_test.go:15
FunctionTestComparableClaudeMDSectionsRequiresEveryRecordedHeading
(t *testing.T)
proxy/internal/store/learn_outcomes_test.go:109
FunctionTestCompatBaseURLValidationIsStrict
(t *testing.T)
proxy/providers/openaicompat/openaicompat_test.go:131
FunctionTestCompatCredential_BuiltinMountReadsItsOwnEnv
A built-in compat mount has its own BYOK policy with no user config. Thus a keyless request never uses the OPENAI_COMPAT_API_KEY secret.
proxy/internal/config/config_test.go:457
FunctionTestCompatCredential_UsesPerNameEnvAndEmptyMeansNoAuth
(t *testing.T)
proxy/internal/config/config_test.go:438
FunctionTestCompatEncodedSeparatorCannotClaimNamedCredentialRoute
(t *testing.T)
proxy/internal/gateway/server_test.go:505
FunctionTestCompatForwardHeaderConfiguration
(t *testing.T)
proxy/internal/config/config_test.go:45
FunctionTestCompatLoopbackUpstreamBlockedBySSRFGuardSaysSo
#1440: a compat mount whose base_url is a loopback relay (Headroom on 127.0.0.1) is refused by the standalone SSRF dial guard unless the operator allo
proxy/internal/standalone/compat_ssrf_blocked_test.go:26
FunctionTestCompatModelsMetadataRoute
TestCompatModelsMetadataRoute covers the OpenAI-compatible mounts, which had the same gap: Groq, Ollama, vLLM and friends all serve GET /v1/models, an
proxy/internal/gateway/models_metadata_route_test.go:268
FunctionTestCompatRoutesPreserveConfiguredAndRequestQueries
(t *testing.T)
proxy/providers/openaicompat/openaicompat_test.go:97
FunctionTestCompatRoutesRejectAmbiguousEncodedAndDotSegments
(t *testing.T)
proxy/providers/openaicompat/openaicompat_test.go:65
FunctionTestCompatUpstreamsPublishesBuiltinAndUserMounts
(t *testing.T)
proxy/cmd/caveman-proxy/main_test.go:96
FunctionTestCompatUpstreamsRoundTripAndAbsentFieldStaysNil
(t *testing.T)
proxy/internal/runstate/runstate_test.go:322
FunctionTestCompatUpstreams_UserEntryWins
(t *testing.T)
proxy/internal/config/config_test.go:465
FunctionTestCompiledMultiRouteExecutesOrderedLockedWinners
(t *testing.T)
proxy/internal/gateway/compress_test.go:149
FunctionTestCompiledPackLoadsWithBoundedUniqueClassifiedSkills
(t *testing.T)
proxy/internal/nativepack/pack_test.go:5
FunctionTestCompiledPartialRouteTransformsOnlyMatchingLiveKind
(t *testing.T)
proxy/internal/gateway/compress_test.go:208
FunctionTestCompiledPlanOverridesEntitlementCompression
(t *testing.T)
proxy/internal/gateway/prefix_stability_test.go:216
FunctionTestCompiledRouteNeverReplaysCachedReplacementFromUnselectedKind
(t *testing.T)
proxy/internal/gateway/compress_test.go:243
FunctionTestCompiledRouteSemanticMismatchPassesThrough
(t *testing.T)
proxy/internal/gateway/compress_test.go:184
FunctionTestCompositeTwoLayersReferenceNumbers
TestCompositeTwoLayersReferenceNumbers pins the subtractive multiply against hand-computed pixel values, including the canonical full red+blue overlap
engine/pixel/overlay_test.go:19
FunctionTestCompressCCRErrorPreservesPassThroughTokenAccounting
(t *testing.T)
mcp/server_test.go:258
FunctionTestCompressDoesNotSwallowAbortHandler
TestCompressDoesNotSwallowAbortHandler keeps the guard from absorbing net/http's deliberate control-flow sentinel. A recover() broad enough to eat htt
proxy/internal/gateway/compress_panic_test.go:140
FunctionTestCompressFileWrappedGo
(t *testing.T)
engine/filewrap_test.go:120
FunctionTestCompressIsIdempotent
(t *testing.T)
engine/engine_test.go:228
FunctionTestCompressJSONReducesAndRecovers
(t *testing.T)
engine/engine_test.go:89
FunctionTestCompressMalformedIsBytePreservingPassThrough
(t *testing.T)
mcp/server_test.go:235
FunctionTestCompressModeDoesNotHijackUserRetrieveTool
(t *testing.T)
proxy/internal/gateway/compress_test.go:652
FunctionTestCompressModeGeminiRetrieveRoundTrip
(t *testing.T)
proxy/internal/gateway/compress_test.go:537
FunctionTestCompressModeNilCompressorPassesThrough
TestCompressModeNilCompressorPassesThrough proves compress mode with no engine wired is a pure pass-through.
proxy/internal/gateway/compress_test.go:1001
FunctionTestCompressModeNoReductionPassesThrough
TestCompressModeNoReductionPassesThrough proves that when the engine does not actually shrink the content (no-op), compress mode passes the body throu
proxy/internal/gateway/compress_test.go:1065
FunctionTestCompressModePassesLatestUserQueryToEveryLiveSegment
(t *testing.T)
proxy/internal/gateway/compression_query_test.go:105
FunctionTestCompressModeResponsesRetrieveRoundTrip
(t *testing.T)
proxy/internal/gateway/compress_test.go:474
FunctionTestCompressModeRetrievePassesQuery
TestCompressModeRetrievePassesQuery proves the model's optional query argument is parsed from the retrieve tool call and handed to the retriever, so r
proxy/internal/gateway/compress_test.go:610
FunctionTestCompressModeRetrieveRoundTrip
(t *testing.T)
proxy/internal/gateway/compress_test.go:407
FunctionTestCompressModeRetrieverMissingPassesThrough
(t *testing.T)
proxy/internal/gateway/compress_test.go:699
FunctionTestCompressModeShrinksRecordsAndDiscloses
TestCompressModeShrinksRecordsAndDiscloses proves the S4 compress path end to end: the engine seam is called, the rewritten (smaller) body is sent ups
proxy/internal/gateway/compress_test.go:308
FunctionTestCompressModeStreamPassesThrough
(t *testing.T)
proxy/internal/gateway/compress_test.go:737
FunctionTestCompressModeUnstorableOriginalFailsClosed
TestCompressModeUnstorableOriginalFailsClosed proves the CCR-or-pass-through contract: if the original cannot be stored for recovery, the proxy forwar
proxy/internal/gateway/compress_test.go:1034
FunctionTestCompressSurvivesCompressorPanic
TestCompressSurvivesCompressorPanic pins the byte-safe fail-open invariant against a panic, not just an error (#1508). An engine panic inside the per-
proxy/internal/gateway/compress_panic_test.go:44
FunctionTestCompressToolForwardsContentType
(t *testing.T)
mcp/server_test.go:203
FunctionTestCompressed429ReplaysAsBefore
A 429 on a compressed OpenAI request replays the original as it always has, a named model (nothing the route stage did is in the bytes) or Auto with o
proxy/internal/gateway/route_effort_responses_test.go:361
FunctionTestCompressionRouteMatrixCoversEveryRegisteredRoute
(t *testing.T)
proxy/providers/compression_coverage_test.go:18
FunctionTestCompressionRouteMatrixMatchesRecoveryGrammar
(t *testing.T)
proxy/providers/compression_coverage_test.go:96
FunctionTestCompressionSavingsUSD_CacheHeavyUsesWeightedRate
TestCompressionSavingsUSD_CacheHeavyUsesWeightedRate avoids a discontinuous majority-cache heuristic while accounting for the small uncached share.
proxy/internal/gateway/compression_savings_test.go:50
FunctionTestCompressionSavingsUSD_NonzeroWithOptimizer
TestCompressionSavingsUSD_NonzeroWithOptimizer proves the removed tokens are valued at the model's input rate once the optimizer id is present (uncach
proxy/internal/gateway/compression_savings_test.go:24
FunctionTestCompressionSavingsUSD_PreservesRegressions
TestCompressionSavingsUSD_PreservesRegressions keeps overhead visible as a negative inferred delta rather than silently clipping it.
proxy/internal/gateway/compression_savings_test.go:38
FunctionTestCompressionSavingsUSD_ZeroWithoutOptimizer
TestCompressionSavingsUSD_ZeroWithoutOptimizer proves the no-fake-savings gate: a token reduction is worth nothing unless the caveman-compression id i
proxy/internal/gateway/compression_savings_test.go:12
FunctionTestComputeFrozenCount_MessageMarkersOnly
(t *testing.T)
proxy/providers/anthropic/content_compress_test.go:206
FunctionTestConcurrentCallsShareOneFetch
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:555
FunctionTestConcurrentFirstObservationCannotReplaceEpoch
(t *testing.T)
shared/platform/cacheguard/cacheguard_test.go:83
FunctionTestConcurrentFreshOpensAllSucceed
A fan-out of fresh processes (cavemem remember, caveman-mcp) opens one new ccr.db at once. Switching it to WAL can return SQLITE_BUSY without waiting
engine/ccr/store_reopen_race_test.go:149
FunctionTestConcurrentMapPutsNeverChainReferences
(t *testing.T)
engine/ccr/store_consolidation_blocks_test.go:249
FunctionTestConcurrentPutsKeepPayloadBudget
(t *testing.T)
engine/ccr/store_consolidation_blocks_test.go:301
FunctionTestConcurrentRememberGoroutines
TestConcurrentRememberGoroutines drives N goroutines against a single file store and asserts every write lands. On the pre-fix store (unlimited pool,
mem/store_concurrency_test.go:14
FunctionTestConcurrentRememberSubprocesses
TestConcurrentRememberSubprocesses drives N independent cavemem processes at one shared mem.db file — the real shape of Promise.all(facts.map(remember
mem/cmd/cavemem/main_test.go:254
FunctionTestConcurrentWritersChooseOneDurableReplacement
(t *testing.T)
proxy/internal/middleware/runtime_test.go:335
FunctionTestConfigGrowthChargesEachFileAtItsOwnSessionsRate
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:563
FunctionTestConfigINIStaysSectionShapedAndKeepsQueryValue
(t *testing.T)
engine/compressors/config_test.go:110
FunctionTestConfigInvalidTinyOrBinaryPassesThrough
(t *testing.T)
engine/compressors/config_test.go:149
FunctionTestConfigPreservesCRLFWithoutAddingTrailingNewline
(t *testing.T)
engine/compressors/config_test.go:135
FunctionTestConfigTOMLKeepsSectionHeadersAndRelevantValue
(t *testing.T)
engine/compressors/config_test.go:92
FunctionTestConfigTaxMarksPluginTokensUnmeasured
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:228
← previousnext →9,101–9,200 of 12,853, ranked by callers