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
TestCodeCompressorGoIdempotent
(t *testing.T)
engine/compressors/code_test.go:66
Function
TestCodeCompressorHandlesGDScriptInEveryBuild
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
Function
TestCodeCompressorMalformedPassesThrough
(t *testing.T)
engine/compressors/code_test.go:77
Function
TestCodeCompressorPython
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
Function
TestCodeCompressorPythonIdempotent
(t *testing.T)
engine/compressors/code_cgo_test.go:87
Function
TestCodeCompressorTypeScript
(t *testing.T)
engine/compressors/code_cgo_test.go:68
Function
TestCodeCpp
(t *testing.T)
engine/compressors/code_langs_test.go:76
Function
TestCodeCppRealErrorsStillPassThrough
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
Function
TestCodeCppToleratesRecoveredTokens
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
Function
TestCodeJava
(t *testing.T)
engine/compressors/code_langs_test.go:45
Function
TestCodeModeGatewaySearchExecuteAndCCRRecovery
(t *testing.T)
mcp/codemode/codemode_test.go:89
Function
TestCodePythonDocstringOnlyModulePreserved
(t *testing.T)
engine/compressors/code_langs_test.go:192
Function
TestCodePythonDocstringRejectsFStringAndBytes
(t *testing.T)
engine/compressors/code_langs_test.go:174
Function
TestCodePythonDocstringRemove
(t *testing.T)
engine/compressors/code_langs_test.go:122
Function
TestCodeRust
(t *testing.T)
engine/compressors/code_langs_test.go:29
Function
TestCodeTSXReactComponent
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
Function
TestCodemodeRecoveryRequiredBeforeElision
(t *testing.T)
mcp/codemode/stdio_js_builtin_test.go:1152
Function
TestCodexBehaviorDoesNotDoubleCountCachedInputSubset
(t *testing.T)
proxy/internal/store/trial_feature_test.go:512
Function
TestCodexBillingUsageNormalizesInclusiveInput
TestCodexBillingUsageNormalizesInclusiveInput pins the semantic difference that would otherwise silently overcharge every OpenAI user: input_tokens al
proxy/internal/store/learn_pricing_test.go:110
Function
TestCodexCumulativeTotalWithoutBucketsIsNeverMispriced
(t *testing.T)
proxy/internal/store/trial_feature_test.go:479
Function
TestCodexExecOutputCompressesAndRetrievesTheOriginal
(t *testing.T)
engine/codexexec_test.go:25
Function
TestCodexNativeRouteNeedsV1
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
Function
TestCodexSessionSourceMinesHumanMessageRepaste
(t *testing.T)
proxy/internal/store/source_codex_test.go:14
Function
TestCodexTextExecEnvelopeUnwrapsAndRewraps
(t *testing.T)
engine/harness_envelopes_test.go:12
Function
TestCollapseAnthropicHistoryKeepsTail
(t *testing.T)
engine/pixel/history_anthropic_test.go:29
Function
TestCollapseAnthropicHistoryNoHistory
(t *testing.T)
engine/pixel/history_anthropic_test.go:19
Function
TestCollapseAnthropicHistoryOpenToolSequenceStaysLive
(t *testing.T)
engine/pixel/history_anthropic_test.go:52
Function
TestCollapseAnthropicHistoryQuantizedBytesStable
(t *testing.T)
engine/pixel/history_anthropic_test.go:83
Function
TestCommandDropsInheritedGitEnvButKeepsSystemConfig
(t *testing.T)
proxy/internal/gitsafe/gitsafe_test.go:23
Function
TestCommandOverridesRepositoryControlledConfig
(t *testing.T)
proxy/internal/gitsafe/gitsafe_test.go:10
Function
TestCommandRunsGitWithoutAConsoleWindow
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
Function
TestCommonNameIsOptInAndPrefixed
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
Function
TestCompactSlabWhitespace
(t *testing.T)
engine/pixel/textprep_test.go:155
Function
TestCompactionChurnParsesObservedBoundaryAndCompactSummaryShape
(t *testing.T)
proxy/internal/store/detect_compaction_test.go:9
Function
TestCompactionChurnResetsPreBoundaryPathsAtEachCompaction
(t *testing.T)
proxy/internal/store/detect_compaction_test.go:39
Function
TestCompactionTransitionsTaskStateHotEvidenceWarmAndRawObservationsCold
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:820
Function
TestCompactionWhileOffRunsAtTheAgentsEffort
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
Function
TestCompanionToolsFlatSurfaceAnnotationsAndCCR
(t *testing.T)
mcp/codemode/companion_test.go:15
Function
TestComparableClaudeMDSectionsRequiresEveryRecordedHeading
(t *testing.T)
proxy/internal/store/learn_outcomes_test.go:109
Function
TestCompatBaseURLValidationIsStrict
(t *testing.T)
proxy/providers/openaicompat/openaicompat_test.go:131
Function
TestCompatCredential_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
Function
TestCompatCredential_UsesPerNameEnvAndEmptyMeansNoAuth
(t *testing.T)
proxy/internal/config/config_test.go:438
Function
TestCompatEncodedSeparatorCannotClaimNamedCredentialRoute
(t *testing.T)
proxy/internal/gateway/server_test.go:505
Function
TestCompatForwardHeaderConfiguration
(t *testing.T)
proxy/internal/config/config_test.go:45
Function
TestCompatLoopbackUpstreamBlockedBySSRFGuardSaysSo
#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
Function
TestCompatModelsMetadataRoute
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
Function
TestCompatRoutesPreserveConfiguredAndRequestQueries
(t *testing.T)
proxy/providers/openaicompat/openaicompat_test.go:97
Function
TestCompatRoutesRejectAmbiguousEncodedAndDotSegments
(t *testing.T)
proxy/providers/openaicompat/openaicompat_test.go:65
Function
TestCompatUpstreamsPublishesBuiltinAndUserMounts
(t *testing.T)
proxy/cmd/caveman-proxy/main_test.go:96
Function
TestCompatUpstreamsRoundTripAndAbsentFieldStaysNil
(t *testing.T)
proxy/internal/runstate/runstate_test.go:322
Function
TestCompatUpstreams_UserEntryWins
(t *testing.T)
proxy/internal/config/config_test.go:465
Function
TestCompiledMultiRouteExecutesOrderedLockedWinners
(t *testing.T)
proxy/internal/gateway/compress_test.go:149
Function
TestCompiledPackLoadsWithBoundedUniqueClassifiedSkills
(t *testing.T)
proxy/internal/nativepack/pack_test.go:5
Function
TestCompiledPartialRouteTransformsOnlyMatchingLiveKind
(t *testing.T)
proxy/internal/gateway/compress_test.go:208
Function
TestCompiledPlanOverridesEntitlementCompression
(t *testing.T)
proxy/internal/gateway/prefix_stability_test.go:216
Function
TestCompiledRouteNeverReplaysCachedReplacementFromUnselectedKind
(t *testing.T)
proxy/internal/gateway/compress_test.go:243
Function
TestCompiledRouteSemanticMismatchPassesThrough
(t *testing.T)
proxy/internal/gateway/compress_test.go:184
Function
TestCompositeTwoLayersReferenceNumbers
TestCompositeTwoLayersReferenceNumbers pins the subtractive multiply against hand-computed pixel values, including the canonical full red+blue overlap
engine/pixel/overlay_test.go:19
Function
TestCompressCCRErrorPreservesPassThroughTokenAccounting
(t *testing.T)
mcp/server_test.go:258
Function
TestCompressDoesNotSwallowAbortHandler
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
Function
TestCompressFileWrappedGo
(t *testing.T)
engine/filewrap_test.go:120
Function
TestCompressIsIdempotent
(t *testing.T)
engine/engine_test.go:228
Function
TestCompressJSONReducesAndRecovers
(t *testing.T)
engine/engine_test.go:89
Function
TestCompressMalformedIsBytePreservingPassThrough
(t *testing.T)
mcp/server_test.go:235
Function
TestCompressModeDoesNotHijackUserRetrieveTool
(t *testing.T)
proxy/internal/gateway/compress_test.go:652
Function
TestCompressModeGeminiRetrieveRoundTrip
(t *testing.T)
proxy/internal/gateway/compress_test.go:537
Function
TestCompressModeNilCompressorPassesThrough
TestCompressModeNilCompressorPassesThrough proves compress mode with no engine wired is a pure pass-through.
proxy/internal/gateway/compress_test.go:1001
Function
TestCompressModeNoReductionPassesThrough
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
Function
TestCompressModePassesLatestUserQueryToEveryLiveSegment
(t *testing.T)
proxy/internal/gateway/compression_query_test.go:105
Function
TestCompressModeResponsesRetrieveRoundTrip
(t *testing.T)
proxy/internal/gateway/compress_test.go:474
Function
TestCompressModeRetrievePassesQuery
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
Function
TestCompressModeRetrieveRoundTrip
(t *testing.T)
proxy/internal/gateway/compress_test.go:407
Function
TestCompressModeRetrieverMissingPassesThrough
(t *testing.T)
proxy/internal/gateway/compress_test.go:699
Function
TestCompressModeShrinksRecordsAndDiscloses
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
Function
TestCompressModeStreamPassesThrough
(t *testing.T)
proxy/internal/gateway/compress_test.go:737
Function
TestCompressModeUnstorableOriginalFailsClosed
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
Function
TestCompressSurvivesCompressorPanic
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
Function
TestCompressToolForwardsContentType
(t *testing.T)
mcp/server_test.go:203
Function
TestCompressed429ReplaysAsBefore
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
Function
TestCompressionRouteMatrixCoversEveryRegisteredRoute
(t *testing.T)
proxy/providers/compression_coverage_test.go:18
Function
TestCompressionRouteMatrixMatchesRecoveryGrammar
(t *testing.T)
proxy/providers/compression_coverage_test.go:96
Function
TestCompressionSavingsUSD_CacheHeavyUsesWeightedRate
TestCompressionSavingsUSD_CacheHeavyUsesWeightedRate avoids a discontinuous majority-cache heuristic while accounting for the small uncached share.
proxy/internal/gateway/compression_savings_test.go:50
Function
TestCompressionSavingsUSD_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
Function
TestCompressionSavingsUSD_PreservesRegressions
TestCompressionSavingsUSD_PreservesRegressions keeps overhead visible as a negative inferred delta rather than silently clipping it.
proxy/internal/gateway/compression_savings_test.go:38
Function
TestCompressionSavingsUSD_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
Function
TestComputeFrozenCount_MessageMarkersOnly
(t *testing.T)
proxy/providers/anthropic/content_compress_test.go:206
Function
TestConcurrentCallsShareOneFetch
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:555
Function
TestConcurrentFirstObservationCannotReplaceEpoch
(t *testing.T)
shared/platform/cacheguard/cacheguard_test.go:83
Function
TestConcurrentFreshOpensAllSucceed
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
Function
TestConcurrentMapPutsNeverChainReferences
(t *testing.T)
engine/ccr/store_consolidation_blocks_test.go:249
Function
TestConcurrentPutsKeepPayloadBudget
(t *testing.T)
engine/ccr/store_consolidation_blocks_test.go:301
Function
TestConcurrentRememberGoroutines
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
Function
TestConcurrentRememberSubprocesses
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
Function
TestConcurrentWritersChooseOneDurableReplacement
(t *testing.T)
proxy/internal/middleware/runtime_test.go:335
Function
TestConfigGrowthChargesEachFileAtItsOwnSessionsRate
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:563
Function
TestConfigINIStaysSectionShapedAndKeepsQueryValue
(t *testing.T)
engine/compressors/config_test.go:110
Function
TestConfigInvalidTinyOrBinaryPassesThrough
(t *testing.T)
engine/compressors/config_test.go:149
Function
TestConfigPreservesCRLFWithoutAddingTrailingNewline
(t *testing.T)
engine/compressors/config_test.go:135
Function
TestConfigTOMLKeepsSectionHeadersAndRelevantValue
(t *testing.T)
engine/compressors/config_test.go:92
Function
TestConfigTaxMarksPluginTokensUnmeasured
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:228
← previous
next →
9,101–9,200 of 12,853, ranked by callers