MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

FunctionTestLearnRetroStreamWeightsTimestampedRepeatedBlocks
(t *testing.T)
proxy/internal/store/learn_retro_test.go:476
FunctionTestLearnRetroStreamZeroWithoutLaterTurns
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
FunctionTestLearnRetroTimeBoxTruncatesNewestFirst
(t *testing.T)
proxy/internal/store/learn_retro_test.go:870
FunctionTestLearnScanNoRememberSkipsDurableLearnings
(t *testing.T)
proxy/cmd/caveman-proxy/learn_wire_test.go:289
FunctionTestLearnScanReportsHomeLeavesCanonicalReportAlone
(t *testing.T)
proxy/cmd/caveman-proxy/learn_wire_test.go:322
FunctionTestLearnSessionSourcesUsesTheRelocatedPiSessionsDir
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
FunctionTestLearnSimulateOccurrenceAndObservedTurnArithmetic
(t *testing.T)
proxy/internal/store/learn_simulate_test.go:10
FunctionTestLearnSimulateRefusesSameFileOverlap
(t *testing.T)
proxy/internal/store/learn_simulate_test.go:84
FunctionTestLearnV2BehavioralTokensObservedAndDailyEquivalentRanking
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:72
FunctionTestLearnV2ConfigSnapshotHistoryAppendsOnlyChangedCounts
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:340
FunctionTestLearnV2ConfigSnapshotsUseO200kAndNameBasis
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:183
FunctionTestLearnV2MeasuredPrefixUsesFirstDeduplicatedTurnAcrossSources
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:14
FunctionTestLearnV2StructuredSkillUseRejectsBareSubstring
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:147
FunctionTestLearnWireHelperProcess
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
FunctionTestLeaveAloneAnythingCavemanDoesNotOwn
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
FunctionTestLeaveAloneWindowsRootsAndShares
(t *testing.T)
proxy/internal/securehome/securehome_windows_test.go:91
FunctionTestLedgerEvictionForgetsAFreeze
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
FunctionTestLedgerEvictsLeastRecentlyUsed
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
FunctionTestLedgerFreezesAfterThreeStrikes
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
FunctionTestLedgerIsInertWithoutASessionID
(t *testing.T)
proxy/internal/gateway/ledger_test.go:26
FunctionTestLedgerJudgesThePreviousRequestsLevers
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
FunctionTestLedgerNilReceiverIsPermissive
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
FunctionTestLedgerRequiresBothThresholds
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
FunctionTestLedgerTracksSessionTotals
(t *testing.T)
proxy/internal/gateway/ledger_test.go:186
FunctionTestLegacyConditionsFromParityFixture
(t *testing.T)
proxy/internal/middleware/protocol_v11_test.go:222
FunctionTestLegacyOptOutPathFollowsTheUserHome
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
FunctionTestLegacyUnsafeTrialRowsFailClosed
(t *testing.T)
proxy/internal/store/trial_feature_test.go:320
FunctionTestLimitPauseLiftsWhenMeSaysSo
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
FunctionTestLinkTransportKeepsConnections
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
FunctionTestLintReportsInferredReductions
(t *testing.T)
shrink/shrink_test.go:233
FunctionTestListFilesSkipsWalkWhenRootIsHomeDirectory
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
FunctionTestListPriceEligibilityAndResolvedOpenAIRegion
(t *testing.T)
proxy/providers/adapter_contract_test.go:107
FunctionTestListReturnsFullCatalog
(t *testing.T)
shared/platform/catalog/catalog_test.go:806
FunctionTestListSessionObjectsReadsOneSnapshot
(t *testing.T)
engine/ccr/store_consolidation_blocks_test.go:241
FunctionTestListenAuthenticationSourcesAndTLSPairs
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
FunctionTestListingGivesIntroducedBlankLinesNoNumber
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
FunctionTestListingKeepsTrueNumbersAfterElidingRepeatingLines
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
FunctionTestLiveOpenRouterCache
(t *testing.T)
proxy/internal/cloudlink/live_cache_test.go:134
FunctionTestLiveZoneConsumesDensity
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
FunctionTestLiveZoneDeterminismAndMarkerContentAddressing
(t *testing.T)
proxy/internal/gateway/live_zone_test.go:132
FunctionTestLiveZoneRequiresPrefixStabilizer
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
FunctionTestLiveZoneTokenAwarePerBlockRevert
(t *testing.T)
proxy/internal/gateway/live_zone_test.go:157
FunctionTestLoadOrCreateSessionKeyIsStableAndUserOnly
(t *testing.T)
proxy/internal/nativeruntime/marker_test.go:91
FunctionTestLoad_AcceptsLoopbackListen
(t *testing.T)
proxy/internal/config/config_test.go:140
FunctionTestLoad_AuthTokenAllowsNonLoopbackListen
(t *testing.T)
proxy/internal/config/config_test.go:89
FunctionTestLoad_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
FunctionTestLoad_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
FunctionTestLoad_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
FunctionTestLoad_CABundle
(t *testing.T)
proxy/internal/config/config_test.go:655
FunctionTestLoad_CacheOptimizersDefaultOnWithExplicitOff
(t *testing.T)
proxy/internal/config/config_test.go:275
FunctionTestLoad_CompatMalformedErrors
(t *testing.T)
proxy/internal/config/config_test.go:339
FunctionTestLoad_CompressModeAccepted
(t *testing.T)
proxy/internal/config/config_test.go:172
FunctionTestLoad_ForwardHeadersRemedyOnACompatMountLoads
The remedy the error names must itself load, or the error is a dead end.
proxy/internal/config/config_test.go:815
FunctionTestLoad_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
FunctionTestLoad_MissingFileYieldsRecordDefaults
(t *testing.T)
proxy/internal/config/config_test.go:32
FunctionTestLoad_ParsesCompatUpstreams
(t *testing.T)
proxy/internal/config/config_test.go:303
FunctionTestLoad_ParsesProvidersAndOptimizers
(t *testing.T)
proxy/internal/config/config_test.go:249
FunctionTestLoad_ProviderBaseURLWithoutForwardHeadersStillLoads
A provider block that does not mention the key is untouched.
proxy/internal/config/config_test.go:831
FunctionTestLoad_RejectsNonLoopbackListen
(t *testing.T)
proxy/internal/config/config_test.go:68
FunctionTestLoad_RejectsUnusableAuthToken
(t *testing.T)
proxy/internal/config/config_test.go:112
FunctionTestLoad_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
FunctionTestLoad_SubscriptionCompressEnvOverrideAndUnknownFailClosed
(t *testing.T)
proxy/internal/config/config_test.go:214
FunctionTestLoad_SubscriptionCompressLiveZoneAccepted
(t *testing.T)
proxy/internal/config/config_test.go:200
FunctionTestLoad_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
FunctionTestLoad_UnknownModeFailsClosedToRecord
(t *testing.T)
proxy/internal/config/config_test.go:158
FunctionTestLoad_UpstreamProxy
(t *testing.T)
proxy/internal/config/config_test.go:599
FunctionTestLocalPlaintextRemainsAvailable
(t *testing.T)
shared/platform/postgresconfig/postgresconfig_test.go:178
FunctionTestLockedBuildExecutesExactTypedTransform
(t *testing.T)
proxy/internal/gateway/compress_test.go:372
FunctionTestLogCompressesMixedLineEndings
(t *testing.T)
engine/compressors/lineends_test.go:32
FunctionTestLogFastFilterMatchesCanonicalRegexp
(t *testing.T)
engine/compressors/log_match_test.go:8
FunctionTestLogIdempotent
(t *testing.T)
engine/compressors/log_test.go:71
FunctionTestLogInvalidUTF8PassesThrough
(t *testing.T)
engine/compressors/log_test.go:103
FunctionTestLogKeepsErrorsDropsNoise
(t *testing.T)
engine/compressors/log_test.go:24
FunctionTestLogKeepsSyslogEmergencySeverities
(t *testing.T)
engine/compressors/log_test.go:44
FunctionTestLogMarkerCarriesLineInvariants
(t *testing.T)
engine/compressors/invariants_test.go:478
FunctionTestLogPreservesCRLF
(t *testing.T)
engine/compressors/log_test.go:83
FunctionTestLogQueryKeepsRelevantNonErrorLine
(t *testing.T)
engine/compressors/log_test.go:117
FunctionTestLogTooShortPassesThrough
(t *testing.T)
engine/compressors/log_test.go:110
FunctionTestLogfmtFieldsExtraction
(t *testing.T)
engine/compressors/invariants_test.go:393
FunctionTestLoginWarms
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
FunctionTestLogoutPendingCleanupIsSignedOut
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
FunctionTestLoneSessionTokenIsNotAPair
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:109
FunctionTestLongSessionUsesFreshInboundOAuthAndPreservesProviderErrors
(t *testing.T)
proxy/internal/standalone/standalone_test.go:1700
FunctionTestLongerTextCountsMore
(t *testing.T)
engine/tokens/tokens_test.go:38
FunctionTestLooksLikeSSEAcceptsFramesAndRejectsJSON
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
FunctionTestLostCCROriginalSkipsOnlyItsSegment
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
FunctionTestMCPRecoveryCompressesEvenWhenRetrieveToolPresent
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
FunctionTestMCPRecoveryCompressesStreamWithMarkerNoServerLoop
TestMCPRecoveryCompressesStreamWithMarkerNoServerLoop proves the headroom-style streaming path: under MCP recovery a STREAMING request is compressed (
proxy/internal/gateway/compress_test.go:783
FunctionTestMCPSurfaceParsesObservedClaudeJSONShapesAndSharesPrefixWithoutAttribution
(t *testing.T)
proxy/internal/store/detect_mcp_tax_test.go:11
FunctionTestMain
TestStandaloneBoot_ZeroCloudDeps_InferredRows boots the full standalone server — config + BYOK + SQLite — with no Valkey/Postgres/ClickHouse anywhere,
proxy/internal/standalone/standalone_test.go:63
FunctionTestMain
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
FunctionTestMain
TestMain isolates the suite from the host's corporate-network variables, which Load now reads (#1001).
proxy/internal/config/config_test.go:25
FunctionTestMain
(m *testing.M)
shared/platform/catalog/cwd_test.go:23
FunctionTestMainHelper
TestMainHelper runs main() in a subprocess for TestSignalDuringBrowserStartup.
browse/cmd/caveman-browse/main_test.go:183
FunctionTestMalformedInputPassesThrough
(t *testing.T)
engine/engine_test.go:204
FunctionTestMalformedJSONSuffixPassesThroughExactBytes
(t *testing.T)
engine/toolschema_input_test.go:27
FunctionTestMalformedNDJSONSuffixDoesNotProduceJSONInvariants
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
FunctionTestMalformedToolSchemaSuffixPassesThroughExactBytes
(t *testing.T)
engine/toolschema_input_test.go:11
FunctionTestManagedBlockDoesNotAdvertiseAllowlist
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:704
FunctionTestManagedDialRejectsNonTLSPortBeforeNetwork
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:148
← previousnext →9,301–9,400 of 12,391, ranked by callers