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
TestLearnRetroStreamWeightsTimestampedRepeatedBlocks
(t *testing.T)
proxy/internal/store/learn_retro_test.go:476
Function
TestLearnRetroStreamZeroWithoutLaterTurns
A block whose session shows no provider-counted turn after it was never sent, so it must weigh zero in the stream figure (while still counting once in
proxy/internal/store/learn_retro_test.go:845
Function
TestLearnRetroTimeBoxTruncatesNewestFirst
(t *testing.T)
proxy/internal/store/learn_retro_test.go:870
Function
TestLearnScanNoRememberSkipsDurableLearnings
(t *testing.T)
proxy/cmd/caveman-proxy/learn_wire_test.go:289
Function
TestLearnScanReportsHomeLeavesCanonicalReportAlone
(t *testing.T)
proxy/cmd/caveman-proxy/learn_wire_test.go:322
Function
TestLearnSessionSourcesUsesTheRelocatedPiSessionsDir
The relocation tests above build the source directly, so every one of them still passes if learnSessionSources() is left constructing the pi source fr
proxy/internal/store/source_pi_test.go:228
Function
TestLearnSimulateOccurrenceAndObservedTurnArithmetic
(t *testing.T)
proxy/internal/store/learn_simulate_test.go:10
Function
TestLearnSimulateRefusesSameFileOverlap
(t *testing.T)
proxy/internal/store/learn_simulate_test.go:84
Function
TestLearnV2BehavioralTokensObservedAndDailyEquivalentRanking
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:72
Function
TestLearnV2ConfigSnapshotHistoryAppendsOnlyChangedCounts
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:340
Function
TestLearnV2ConfigSnapshotsUseO200kAndNameBasis
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:183
Function
TestLearnV2MeasuredPrefixUsesFirstDeduplicatedTurnAcrossSources
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:14
Function
TestLearnV2StructuredSkillUseRejectsBareSubstring
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:147
Function
TestLearnWireHelperProcess
TestLearnWireHelperProcess runs runLearn in a child so failure paths, which exit the process, can be asserted on exit code and stderr.
proxy/cmd/caveman-proxy/learn_wire_test.go:66
Function
TestLeaveAloneAnythingCavemanDoesNotOwn
Restrict rewrites a home's permissions for good. Only a plain folder holding nothing but Caveman's own files, one of them a file no other program writ
proxy/internal/securehome/securehome_test.go:11
Function
TestLeaveAloneWindowsRootsAndShares
(t *testing.T)
proxy/internal/securehome/securehome_windows_test.go:91
Function
TestLedgerEvictionForgetsAFreeze
TestLedgerEvictionForgetsAFreeze is the honest consequence of a bounded ledger: eviction is a loss of memory, so an evicted session's lever comes back
proxy/internal/gateway/ledger_test.go:165
Function
TestLedgerEvictsLeastRecentlyUsed
TestLedgerEvictsLeastRecentlyUsed: the ledger is bounded, so a client that mints a fresh session per request cannot grow it without limit — and the se
proxy/internal/gateway/ledger_test.go:138
Function
TestLedgerFreezesAfterThreeStrikes
TestLedgerFreezesAfterThreeStrikes walks the whole tripwire: a quiet baseline, three anomalous calls, the freeze, and the fail-open consequence.
proxy/internal/gateway/ledger_test.go:46
Function
TestLedgerIsInertWithoutASessionID
(t *testing.T)
proxy/internal/gateway/ledger_test.go:26
Function
TestLedgerJudgesThePreviousRequestsLevers
TestLedgerJudgesThePreviousRequestsLevers: a lever is judged by what the NEXT request had to pay to re-cache the prefix it produced. A spike on a requ
proxy/internal/gateway/ledger_test.go:116
Function
TestLedgerNilReceiverIsPermissive
TestLedgerNilReceiverIsPermissive: a Server built without a ledger must not take a lever away or panic. The tripwire only ever subtracts capability.
proxy/internal/gateway/ledger_test.go:203
Function
TestLedgerRequiresBothThresholds
TestLedgerRequiresBothThresholds pins that neither half of the rule fires alone: a huge ratio under the floor is noise, and a huge absolute number tha
proxy/internal/gateway/ledger_test.go:90
Function
TestLedgerTracksSessionTotals
(t *testing.T)
proxy/internal/gateway/ledger_test.go:186
Function
TestLegacyConditionsFromParityFixture
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:222
Function
TestLegacyOptOutPathFollowsTheUserHome
The old CLI wrote that opt-out under Node's os.homedir(). PowerShell and cmd leave HOME unset, and the user home there (USERPROFILE) is not the parent
proxy/internal/cloudlink/link_test.go:888
Function
TestLegacyUnsafeTrialRowsFailClosed
(t *testing.T)
proxy/internal/store/trial_feature_test.go:320
Function
TestLimitPauseLiftsWhenMeSaysSo
A limit pause asks /me at most every 15 minutes and lifts once routing is no longer limited (a card added, a limit raised).
proxy/internal/cloudlink/link_test.go:937
Function
TestLinkTransportKeepsConnections
The link's own transport keeps connections for the asks: HTTP/2 tried, idle connections held at least 10 min, proxies from the environment.
proxy/internal/cloudlink/warm_test.go:279
Function
TestLintReportsInferredReductions
(t *testing.T)
shrink/shrink_test.go:233
Function
TestListFilesSkipsWalkWhenRootIsHomeDirectory
A cwd equal to the user's home directory is never a repository: mapping it walks everything a user keeps at home, including .Trash. listFiles must rec
proxy/internal/repointel/index_test.go:538
Function
TestListPriceEligibilityAndResolvedOpenAIRegion
(t *testing.T)
proxy/providers/adapter_contract_test.go:107
Function
TestListReturnsFullCatalog
(t *testing.T)
shared/platform/catalog/catalog_test.go:806
Function
TestListSessionObjectsReadsOneSnapshot
(t *testing.T)
engine/ccr/store_consolidation_blocks_test.go:241
Function
TestListenAuthenticationSourcesAndTLSPairs
Every identity source makes a non-loopback listener legal; nothing does not. TLS files must come as a pair.
proxy/internal/config/middleware_test.go:92
Function
TestListingGivesIntroducedBlankLinesNoNumber
The text compressor joins kept sections with blank lines a one-line-per-entry log never had. Those blanks took the cursor's number, so the gutter read
engine/listing_test.go:206
Function
TestListingKeepsTrueNumbersAfterElidingRepeatingLines
A log whose text repeats every 420 lines: the line kept after a 645-line elision was numbered from its first identical copy (source line 648 printed a
engine/listing_test.go:191
Function
TestLiveOpenRouterCache
(t *testing.T)
proxy/internal/cloudlink/live_cache_test.go:134
Function
TestLiveZoneConsumesDensity
The proxy live zone must CONSUME density, not ignore it: with CAVE_PIXEL_DENSITY unset (default balanced) a density-capable reader renders denser (mor
proxy/internal/gateway/pixel_density_test.go:16
Function
TestLiveZoneDeterminismAndMarkerContentAddressing
(t *testing.T)
proxy/internal/gateway/live_zone_test.go:132
Function
TestLiveZoneRequiresPrefixStabilizer
TestLiveZoneRequiresPrefixStabilizer pins the capability gate: OpenAI is eligible because it exposes frozen/live Responses/chat zones, while an otherw
proxy/internal/gateway/prefix_stability_test.go:453
Function
TestLiveZoneTokenAwarePerBlockRevert
(t *testing.T)
proxy/internal/gateway/live_zone_test.go:157
Function
TestLoadOrCreateSessionKeyIsStableAndUserOnly
(t *testing.T)
proxy/internal/nativeruntime/marker_test.go:91
Function
TestLoad_AcceptsLoopbackListen
(t *testing.T)
proxy/internal/config/config_test.go:140
Function
TestLoad_AuthTokenAllowsNonLoopbackListen
(t *testing.T)
proxy/internal/config/config_test.go:89
Function
TestLoad_AuthTokenInYAMLIsRefused
`auth_token:` in caveman.yaml used to be dropped silently by the yaml:"-" tag, leaving an operator convinced their non-loopback proxy was gated when i
proxy/internal/config/config_test.go:743
Function
TestLoad_AuthTokenIsEnvironmentOnly
AuthToken is env-only in both directions: a YAML or JSON value never reaches it, and the environment is assigned unconditionally so a stale field cann
proxy/internal/config/config_test.go:764
Function
TestLoad_BreakpointPlanDefaultsFrontierAndFailsClosed
Cache planning defaults on in optimization modes. Explicit off and unknown values remain fail-closed off-switches; record mode never runs planner.
proxy/internal/config/config_test.go:554
Function
TestLoad_CABundle
(t *testing.T)
proxy/internal/config/config_test.go:655
Function
TestLoad_CacheOptimizersDefaultOnWithExplicitOff
(t *testing.T)
proxy/internal/config/config_test.go:275
Function
TestLoad_CompatMalformedErrors
(t *testing.T)
proxy/internal/config/config_test.go:339
Function
TestLoad_CompressModeAccepted
(t *testing.T)
proxy/internal/config/config_test.go:172
Function
TestLoad_ForwardHeadersRemedyOnACompatMountLoads
The remedy the error names must itself load, or the error is a dead end.
proxy/internal/config/config_test.go:815
Function
TestLoad_ForwardHeadersUnderAProviderIsRefused
Header forwarding is a compat-mount contract: `forward_headers` exists on `compat.<name>` and is validated there. Written under a `providers.<name>` b
proxy/internal/config/config_test.go:793
Function
TestLoad_MissingFileYieldsRecordDefaults
(t *testing.T)
proxy/internal/config/config_test.go:32
Function
TestLoad_ParsesCompatUpstreams
(t *testing.T)
proxy/internal/config/config_test.go:303
Function
TestLoad_ParsesProvidersAndOptimizers
(t *testing.T)
proxy/internal/config/config_test.go:249
Function
TestLoad_ProviderBaseURLWithoutForwardHeadersStillLoads
A provider block that does not mention the key is untouched.
proxy/internal/config/config_test.go:831
Function
TestLoad_RejectsNonLoopbackListen
(t *testing.T)
proxy/internal/config/config_test.go:68
Function
TestLoad_RejectsUnusableAuthToken
(t *testing.T)
proxy/internal/config/config_test.go:112
Function
TestLoad_SubscriptionCompressDefaultsToAllowed
A bare config leaves the subscription off-switch at its permissive default: local compression needs no account, so an empty value means "allowed" and
proxy/internal/config/config_test.go:189
Function
TestLoad_SubscriptionCompressEnvOverrideAndUnknownFailClosed
(t *testing.T)
proxy/internal/config/config_test.go:214
Function
TestLoad_SubscriptionCompressLiveZoneAccepted
(t *testing.T)
proxy/internal/config/config_test.go:200
Function
TestLoad_ToolSchemaStripDefaultsOffAndFailsClosed
The tool-schema strip is DEFAULT OFF: it changes model-visible bytes, so only the explicit value "annotations" turns it on and every other spelling —
proxy/internal/config/config_test.go:509
Function
TestLoad_UnknownModeFailsClosedToRecord
(t *testing.T)
proxy/internal/config/config_test.go:158
Function
TestLoad_UpstreamProxy
(t *testing.T)
proxy/internal/config/config_test.go:599
Function
TestLocalPlaintextRemainsAvailable
(t *testing.T)
shared/platform/postgresconfig/postgresconfig_test.go:178
Function
TestLockedBuildExecutesExactTypedTransform
(t *testing.T)
proxy/internal/gateway/compress_test.go:372
Function
TestLogCompressesMixedLineEndings
(t *testing.T)
engine/compressors/lineends_test.go:32
Function
TestLogFastFilterMatchesCanonicalRegexp
(t *testing.T)
engine/compressors/log_match_test.go:8
Function
TestLogIdempotent
(t *testing.T)
engine/compressors/log_test.go:71
Function
TestLogInvalidUTF8PassesThrough
(t *testing.T)
engine/compressors/log_test.go:103
Function
TestLogKeepsErrorsDropsNoise
(t *testing.T)
engine/compressors/log_test.go:24
Function
TestLogKeepsSyslogEmergencySeverities
(t *testing.T)
engine/compressors/log_test.go:44
Function
TestLogMarkerCarriesLineInvariants
(t *testing.T)
engine/compressors/invariants_test.go:478
Function
TestLogPreservesCRLF
(t *testing.T)
engine/compressors/log_test.go:83
Function
TestLogQueryKeepsRelevantNonErrorLine
(t *testing.T)
engine/compressors/log_test.go:117
Function
TestLogTooShortPassesThrough
(t *testing.T)
engine/compressors/log_test.go:110
Function
TestLogfmtFieldsExtraction
(t *testing.T)
engine/compressors/invariants_test.go:393
Function
TestLoginWarms
A login after start warms: the link takes the new credential at its next read of the CLI state.
proxy/internal/cloudlink/warm_test.go:106
Function
TestLogoutPendingCleanupIsSignedOut
A logout that stopped after revoking the session but before its final save leaves logoutPendingLocalCleanup in cloud.json: the proxy is signed out.
proxy/internal/cloudlink/link_test.go:1218
Function
TestLoneSessionTokenIsNotAPair
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:109
Function
TestLongSessionUsesFreshInboundOAuthAndPreservesProviderErrors
(t *testing.T)
proxy/internal/standalone/standalone_test.go:1700
Function
TestLongerTextCountsMore
(t *testing.T)
engine/tokens/tokens_test.go:38
Function
TestLooksLikeSSEAcceptsFramesAndRejectsJSON
An SSE body behind a mislabelled JSON Content-Type still has to be tracked: the sniff must accept it, which is what keeps #1397's own case fixed.
proxy/internal/gateway/chatgpt_test.go:591
Function
TestLostCCROriginalSkipsOnlyItsSegment
A protocol 1.0 choice whose CCR original is gone cannot be recovered from this store, so only its segment goes unreplaced: a 1.0 client gets a plan, n
proxy/internal/middleware/hardening_test.go:287
Function
TestMCPRecoveryCompressesEvenWhenRetrieveToolPresent
TestMCPRecoveryCompressesEvenWhenRetrieveToolPresent proves MCP recovery does not bail on a pre-existing caveman_retrieve tool (which, under wrap+MCP,
proxy/internal/gateway/compress_test.go:830
Function
TestMCPRecoveryCompressesStreamWithMarkerNoServerLoop
TestMCPRecoveryCompressesStreamWithMarkerNoServerLoop proves the headroom-style streaming path: under MCP recovery a STREAMING request is compressed (
proxy/internal/gateway/compress_test.go:783
Function
TestMCPSurfaceParsesObservedClaudeJSONShapesAndSharesPrefixWithoutAttribution
(t *testing.T)
proxy/internal/store/detect_mcp_tax_test.go:11
Function
TestMain
TestStandaloneBoot_ZeroCloudDeps_InferredRows boots the full standalone server — config + BYOK + SQLite — with no Valkey/Postgres/ClickHouse anywhere,
proxy/internal/standalone/standalone_test.go:63
Function
TestMain
TestMain drops the agents' relocation variables so a test run from inside a relocated Claude Code or Codex never falls through to the real config dir.
proxy/internal/store/agent_roots_test.go:12
Function
TestMain
TestMain isolates the suite from the host's corporate-network variables, which Load now reads (#1001).
proxy/internal/config/config_test.go:25
Function
TestMain
(m *testing.M)
shared/platform/catalog/cwd_test.go:23
Function
TestMainHelper
TestMainHelper runs main() in a subprocess for TestSignalDuringBrowserStartup.
browse/cmd/caveman-browse/main_test.go:183
Function
TestMalformedInputPassesThrough
(t *testing.T)
engine/engine_test.go:204
Function
TestMalformedJSONSuffixPassesThroughExactBytes
(t *testing.T)
engine/toolschema_input_test.go:27
Function
TestMalformedNDJSONSuffixDoesNotProduceJSONInvariants
TestNDJSONLinesSummarizeAsEvents: a line that is a whole JSON object is read as one, not run through the logfmt matcher that cannot see `"k":"v"`. Wit
engine/compressors/invariants_test.go:870
Function
TestMalformedToolSchemaSuffixPassesThroughExactBytes
(t *testing.T)
engine/toolschema_input_test.go:11
Function
TestManagedBlockDoesNotAdvertiseAllowlist
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:704
Function
TestManagedDialRejectsNonTLSPortBeforeNetwork
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:148
← previous
next →
9,301–9,400 of 12,391, ranked by callers