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
TestUnchangedObjectKeepsRefusalState
(t *testing.T)
engine/ccr/store_full_test.go:364
Function
TestUniqueRecentSessionFailsClosedOnAmbiguityAndStaleness
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:984
Function
TestUniqueRecentSessionUsesKnownModelToRejectOtherSessions
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:1020
Function
TestUnixServerConcurrentSessionsAndPermissions
(t *testing.T)
proxy/internal/nativeruntime/server_test.go:19
Function
TestUnknownArgumentExitsTwo
(t *testing.T)
mcp/cmd/caveman-mcp/main_test.go:38
Function
TestUnknownClassFailsClosed
(t *testing.T)
engine/safety/safety_test.go:64
Function
TestUnknownGraderFailsClosed
(t *testing.T)
engine/evals/harness_test.go:84
Function
TestUnknownMethodIsJSONRPCError
(t *testing.T)
mcp/server_test.go:452
Function
TestUnknownModeFailsClosedToRecord
(t *testing.T)
engine/engine_test.go:78
Function
TestUnknownRouteFailsClosed
TestUnknownRouteFailsClosed proves an unrecognized path is a 404, never a blind pass-through.
proxy/internal/gateway/server_test.go:494
Function
TestUnknownRouteIsNotFoundBeforeQuotaAndBody
§1: an unknown route is 404 whatever its body, before it takes a quota count.
proxy/internal/middleware/hardening_test.go:764
Function
TestUnknownSchemaFailsClosed
(t *testing.T)
proxy/internal/runstate/runstate_test.go:169
Function
TestUnlockRemovesOnlyItsOwnLock
A holder only ever removes its own lock: after a stale break handed the lock to another writer, the first holder's unlock leaves it alone.
proxy/internal/pool/pool_test.go:356
Function
TestUnmatchedBodiesKeepTheirMarksToThemselves
A body matching none of the session's marks gets its own mark only: a side request (even one repeated word for word) never replaces the main thread's
proxy/internal/gateway/route_effort_test.go:1245
Function
TestUnpersistedRawDecisionHolds
TestUnpersistedRawDecisionHolds: when the replacement store cannot take a write, the turn's new block goes out raw and that decision cannot be stored.
proxy/internal/gateway/cache_prefix_invariant_test.go:1419
Function
TestUnreadableAnswerPauses
A 200 that is not JSON pauses like any other bad answer.
proxy/internal/cloudlink/link_test.go:916
Function
TestUnsignedThinkingScan
(t *testing.T)
proxy/internal/translate/jsonfast_test.go:5
Function
TestUnstructuredRunsKeepTheBareMarker
TestUnstructuredRunsKeepTheBareMarker is the fallback contract: a payload the extractors cannot read must produce exactly the marker this compressor e
engine/compressors/invariants_test.go:536
Function
TestUnsummarizableToolOutputIsStillMasked
TestUnsummarizableToolOutputIsStillMasked: masking keeps its original job.
proxy/internal/nativeruntime/mask_elidable_test.go:143
Function
TestUnwrapCodexExecOnlyTakesCodexResultLines
(t *testing.T)
engine/codexexec_test.go:67
Function
TestUnwrapFileWrapper
(t *testing.T)
engine/filewrap_test.go:10
Function
TestUpdatesComeBackAfterATruncationRequest
A session's updates survive a request that may carry none.
proxy/internal/gateway/route_effort_responses_test.go:417
Function
TestUpstreamAmbiguousFailureNeverReplaysInference
(t *testing.T)
proxy/internal/gateway/upstream_retry_test.go:103
Function
TestUpstreamAuthFallbackHeaders
(t *testing.T)
proxy/internal/gateway/auth_fallback_test.go:55
Function
TestUpstreamIDIsKept
The host's own answer id is kept for looking the call up there (its cost): OpenRouter's gen- id under a Codex caller's translated resp_ id.
proxy/internal/translate/review_regressions_test.go:302
Function
TestUpstreamProxyConnectFailureRetries
#1001: a corporate proxy that is down fails at proxy connection setup, which net/http reports as Op "proxyconnect", not Op "dial". A dial-only test le
proxy/internal/gateway/upstream_retry_test.go:82
Function
TestUpstreamProxyFunc_HandBuiltConfigNeverPanics
The accessor is a cached-field read for a loaded Config and must never panic on a Config assembled in code: a request path is a bad place to discover
proxy/internal/config/config_test.go:732
Function
TestUpstreamRetryLogRemovesURLCredentials
(t *testing.T)
proxy/internal/gateway/upstream_log_redaction_test.go:14
Function
TestUpstreamTransportErrorRetries
Dial failures occur before the request reaches the provider and can be retried.
proxy/internal/gateway/upstream_retry_test.go:19
Function
TestUsageAfterFlushWritesPendingRowsFirst
A receipt reads session usage only after the rows still being finished are written: the flush lands the session's last row before the sum.
proxy/cmd/caveman-proxy/usage_flush_test.go:12
Function
TestUsageAndCost_NonZeroForCatalogModel
Catalog cost for a Bedrock model in the catalog must be non-zero (the catalog entry was added with this adapter), proving usage+cost are parsed correc
proxy/providers/bedrock/usage_test.go:233
Function
TestUsageAndCost_NonZeroForCatalogModels
Catalog cost for a Vertex model in the catalog must be non-zero (the catalog entries were added with this adapter), proving usage+cost wiring. Since 2
proxy/providers/vertex/usage_test.go:79
Function
TestUsageImportsCodexClaudeAndReportRedactsRawContent
(t *testing.T)
proxy/internal/store/trial_feature_test.go:37
Function
TestUsageLineFilterMatchesDecodingEveryLine
TestUsageLineFilterMatchesDecodingEveryLine: skipping the lines mayCarryUsage rules out leaves every observed value as it was.
proxy/providers/usage_line_filter_test.go:74
Function
TestUsagePricingQualifiersAndTerminalProof
(t *testing.T)
proxy/providers/adapter_usage_test.go:189
Function
TestUsageScannerRetainsObservedErrorFromBoundedTail
(t *testing.T)
proxy/providers/stream_error_test.go:36
Function
TestUsageScanner_CorruptSupportedEncodingIsExplicitlyUnpriced
(t *testing.T)
proxy/providers/adapter_usage_test.go:485
Function
TestUsageScanner_DecodedSideCopyHonorsScanLimit
(t *testing.T)
proxy/providers/adapter_usage_test.go:499
Function
TestUsageScanner_DecodesSupportedSideCopyWithoutChangingWireBytes
(t *testing.T)
proxy/providers/adapter_usage_test.go:451
Function
TestUsageScanner_RecoversCompleteTerminalUsageFromBoundedTail
(t *testing.T)
proxy/providers/adapter_usage_test.go:565
Function
TestUsageScanner_StackedEncodingIsExplicitlyUnpriced
(t *testing.T)
proxy/providers/adapter_usage_test.go:514
Function
TestUsageScanner_TeeAndStatus
(t *testing.T)
proxy/providers/adapter_usage_test.go:391
Function
TestUsageScanner_Truncation
(t *testing.T)
proxy/providers/adapter_usage_test.go:441
Function
TestUsageScanner_UnsupportedEncodingIsExplicitlyUnpriced
(t *testing.T)
proxy/providers/adapter_usage_test.go:556
Function
TestUserClaudeMDAndCodexAgentsRatesCountOnlyTheirOwnSource
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:533
Function
TestValidPriceAcceptsCatalogShapeAndRejectsUnsafeFields
(t *testing.T)
shared/platform/cost/cost_contract_test.go:110
Function
TestValidateChecksProcessAndListenerIdentity
(t *testing.T)
proxy/internal/runstate/runstate_test.go:107
Function
TestValidateHost
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:393
Function
TestValidateHost_InvalidInputDoesNotEchoRawInput
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:341
Function
TestValidateHost_LoopbackAllowlist
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:598
Function
TestValidateHost_ZonedAddressesBlocked
IPv6 zone identifiers must not defeat the block lists: a zoned link-local or loopback literal has to be rejected just like its un-zoned form.
shared/platform/ssrf/ssrf_zone_test.go:14
Function
TestValidatePayloadProductionRequiresDedicatedKey
(t *testing.T)
shared/platform/kms/kms_test.go:177
Function
TestValidateProductionFailsClosed
(t *testing.T)
shared/platform/kms/kms_test.go:138
Function
TestValidateURL
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:261
Function
TestValidateURL_HostResolvingToLoopback
--- DNS-resolved hostname test --- This test starts a real local server on 127.0.0.1 to act as a resolution target. We can't control what external DN
shared/platform/ssrf/ssrf_test.go:415
Function
TestValidateURL_InvalidPortDoesNotEchoRawInput
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:327
Function
TestValidateURL_ParseErrorsDoNotEchoRawInput
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:277
Function
TestValidateURL_ValidUserinfoKeepsGenericRejection
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:313
Function
TestValidateURL_ZonedLiteralBlocked
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:172
Function
TestVerificationDoesNotConsumeRecovery
(t *testing.T)
mcp/retrieve_verification_test.go:10
Function
TestVerificationRejectsUnknownHandle
(t *testing.T)
mcp/retrieve_verification_test.go:42
Function
TestVersionAdvertisesSupersedeStdin
(t *testing.T)
mem/cmd/cavemem/main_test.go:343
Function
TestVersionJSON
(t *testing.T)
engine/cmd/caveman-engine/version_test.go:11
Function
TestVersionJSON
(t *testing.T)
shrink/cmd/caveman-shrink/version_test.go:11
Function
TestVersionJSON
(t *testing.T)
browse/cmd/caveman-browse/version_test.go:11
Function
TestVersionJSON
(t *testing.T)
mem/cmd/cavemem/version_test.go:11
Function
TestVersionJSON
(t *testing.T)
mcp/cmd/caveman-mcp/main_test.go:10
Function
TestVertexADCPassThroughNoPersistence
S19 regression: the Vertex adapter must pass the caller's Application Default Credentials (a fresh OAuth2 bearer token per request) straight through t
proxy/providers/vertex/adc_test.go:18
Function
TestVertex_EndToEndTruthfulUsage
End-to-end: a Vertex request routed through the adapter against an aiplatform-shaped httptest stub records a truthful usage row — tokens and cost non-
proxy/providers/vertex/usage_test.go:99
Function
TestViaCloudNeedsTheProjectKeyAndHonoursCloudOff
(t *testing.T)
proxy/internal/cloudlink/pool_test.go:186
Function
TestWalkExcludesInstalledEnvironmentsByMarkerNotName
Dependency trees are identified by their contents, not by a name list: a pixi/conda prefix and a virtualenv are excluded under any directory name, inc
proxy/internal/repointel/index_test.go:123
Function
TestWalkExcludesTrashDirectory
.Trash is never first-party source in any ecosystem; without this guard a cwd walk (e.g. an agent invoked with cwd somewhere under a user's home) woul
proxy/internal/repointel/index_test.go:511
Function
TestWarmEngineEndsOnlyTransientPauses
Only a warm engine ends a pause, and only one a slow, unreachable or failing Cloud caused: a refused login or a limit holds, and a 204 whose engine is
proxy/internal/cloudlink/warm_test.go:203
Function
TestWatchCountsReloadFailures
S12: a token map that stops parsing keeps the old tokens valid, so the failure is a metric an operator can alert on, not only a log line.
proxy/internal/identity/identity_test.go:228
Function
TestWatchReloadsOnFileChange
(t *testing.T)
proxy/internal/identity/identity_test.go:200
Function
TestWebIdentity
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:373
Function
TestWebIdentityErrorOmitsToken
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:436
Function
TestWeightedInputDeltaUsesDisjointCacheBuckets
(t *testing.T)
proxy/internal/gateway/stats_accounting_test.go:210
Function
TestWeightedInputDeltaUsesObservedTierWithoutGuessingCrossing
(t *testing.T)
proxy/internal/gateway/stats_accounting_test.go:243
Function
TestWindowsACLAllowsBroadReadOnlyGrant
(t *testing.T)
engine/ccr/sqlite_parent_security_windows_test.go:29
Function
TestWindowsACLRejectsBroadWriteGrant
(t *testing.T)
engine/ccr/sqlite_parent_security_windows_test.go:11
Function
TestWithCacheKeyNeverReplacesTheAgentsOwn
(t *testing.T)
proxy/internal/gateway/route_cache_test.go:97
Function
TestWithOrgRejectsEmptyScopeBeforeOpeningTransaction
(t *testing.T)
shared/platform/postgresconfig/postgresconfig_test.go:15
Function
TestWouldSaveColumnAndSummary
TestWouldSaveColumnAndSummary proves the observe-estimate column persists, feeds the aggregate Summary would-save totals, and never leaks into savings
proxy/internal/store/observe_test.go:14
Function
TestWouldSaveUSDNilWhenNoPricedRow
TestWouldSaveUSDNilWhenNoPricedRow proves the aggregate would_save_usd is nil (not a fabricated 0) when no row was list-price eligible.
proxy/internal/store/observe_test.go:71
Function
TestWouldSaveZeroedOnFailedUpstream
TestWouldSaveZeroedOnFailedUpstream proves a failed upstream (status >= 400) records neither would_save_tokens nor would_save_usd — a broken request n
proxy/internal/store/observe_test.go:128
Function
TestWrapMeasuredCountsNoWarm
(t *testing.T)
proxy/internal/store/cache_warm_stats_test.go:60
Function
TestWrapMeasuredSince
TestWrapMeasuredSince proves the proxy-measured savings block: real compression cuts and observe-mode estimates sum per window, an empty store yields
proxy/internal/store/learn_savings_test.go:29
Function
TestWriteAndRemoveMatching
(t *testing.T)
proxy/internal/runstate/runstate_test.go:35
Function
TestWriteBudgetCheckDoesNotScanTheStore
Issue #1279: in a weeks-old home every native.sock request came back empty. The ccr.db there held ~93k typed objects, and the budget check behind ever
engine/ccr/store_budget_scale_test.go:86
Function
TestWriteIsAtomicAndReadableContract
(t *testing.T)
proxy/internal/runstate/runstate_test.go:76
Function
TestWriteLearnSidecarsPersistsZeroMovesAndPrunesToEight
(t *testing.T)
proxy/internal/store/learn_sidecar_test.go:12
Function
TestZZBodySplit
TestZZBodySplit reports where a Claude Code request's tokens actually sit, so the achievable ceiling of live-zone compression is a measurement rather
proxy/internal/standalone/zzsplit_test.go:16
Function
TestZebraReaderNote
TestZebraReaderNote pins the one-line reader instruction: emitted only for zebra (balanced/max) pages, silent for conservative.
engine/pixel/transform_anthropic_density_test.go:14
Function
TestZebraRowColors
TestZebraRowColors verifies each visual row is coloured from the 3-colour zebra cycle in order dark-red, dark-blue, black (row % 3).
engine/pixel/render_density_test.go:100
Function
TestZeroEgressNoNetworkImports
TestZeroEgressNoNetworkImports proves the adapter cannot egress: it imports no network package. Combined with the in-memory full-cycle test above (whi
mcp/server_test.go:533
Method
TraceQueryEnd
(context.Context, *pgx.Conn, pgx.TraceQueryEndData)
proxy/internal/middleware/postgres_test.go:323
Method
TraceQueryStart
(ctx context.Context, _ *pgx.Conn, _ pgx.TraceQueryStartData)
proxy/internal/middleware/postgres_test.go:319
Method
Transform
(_ context.Context, _ evals.Fixture, input []byte)
engine/evals/harness_test.go:258
Method
Transform
(_ context.Context, f Fixture, input []byte)
engine/evals/harness.go:301
← previous
next →
10,701–10,800 of 12,391, ranked by callers