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
TestLearnRetroExcludesUsageFreeSessionsFromEveryFamily
(t *testing.T)
proxy/internal/store/learn_retro_test.go:255
Function
TestLearnRetroFailsClosedWithoutEngine
(t *testing.T)
proxy/internal/store/learn_retro_test.go:1160
Function
TestLearnRetroFamilyLabelsNameTheirFix
(t *testing.T)
proxy/internal/store/learn_retro_test.go:303
Function
TestLearnRetroOmittedWithoutFlag
(t *testing.T)
proxy/internal/store/learn_retro_test.go:1200
Function
TestLearnRetroOptionsCarriesBothPassBudgets
(t *testing.T)
proxy/cmd/caveman-proxy/main_test.go:76
Function
TestLearnRetroRepeatedSizeSkewUsesOccurrenceSizes
(t *testing.T)
proxy/internal/store/learn_retro_test.go:589
Function
TestLearnRetroStreamCapsResidencyByCountedContext
Believed residency is capped by each turn's provider-counted size: a turn the provider counted smaller than the believed-resident tool output evicts t
proxy/internal/store/learn_retro_test.go:768
Function
TestLearnRetroStreamCrossFileAttributionIsNewestFirst
A segment appearing in several files weights deterministically in the newest file that carries it, regardless of scan-goroutine scheduling.
proxy/internal/store/learn_retro_test.go:797
Function
TestLearnRetroStreamExcludesEarliestExactTimestampTie
(t *testing.T)
proxy/internal/store/learn_retro_test.go:556
Function
TestLearnRetroStreamExcludesSidechains
Sidechain (subagent) lines share the transcript file but are a separate API stream: their turns must not weight a main-thread cut, and a sidechain cut
proxy/internal/store/learn_retro_test.go:717
Function
TestLearnRetroStreamOmitsUndatedRepeatedBlocks
(t *testing.T)
proxy/internal/store/learn_retro_test.go:665
Function
TestLearnRetroStreamPreservesFractionalOccurrenceOrderAcrossFiles
(t *testing.T)
proxy/internal/store/learn_retro_test.go:517
Function
TestLearnRetroStreamWeightsCutsByObservedTurns
The stream figure weights each cut by the provider-counted turns that contained the block, and a compact boundary stops the weighting because compacti
proxy/internal/store/learn_retro_test.go:439
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
TestLiveZoneDuplicateReadCollapsingPreservesPrefixAndRecovers
(t *testing.T)
proxy/internal/gateway/dedup_test.go:97
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:752
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:773
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:563
Function
TestLoad_CABundle
(t *testing.T)
proxy/internal/config/config_test.go:664
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:824
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:802
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:840
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:608
Function
TestLocalPlaintextRemainsAvailable
(t *testing.T)
shared/platform/postgresconfig/postgresconfig_test.go:178
Function
TestLocalTurnEffortOpenAIGPT6CacheSafeAndSkipsGPT5AndChat
(t *testing.T)
proxy/internal/gateway/local_turn_effort_test.go:290
Function
TestLocalTurnEffortOpus55DefaultEffortAndNoSessionHeaderFallback
(t *testing.T)
proxy/internal/gateway/local_turn_effort_test.go:218
Function
TestLocalTurnEffortOpus55IsCacheSafeEndToEnd
(t *testing.T)
proxy/internal/gateway/local_turn_effort_test.go:118
Function
TestLocalTurnEffortSkipsUnsupportedModelsAndHealsWithoutTopLevelMutation
(t *testing.T)
proxy/internal/gateway/local_turn_effort_test.go:244
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
← previous
next →
9,701–9,800 of 12,853, ranked by callers