MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,391 in github.com/JuliusBrussee/caveman

FunctionTestUnchangedObjectKeepsRefusalState
(t *testing.T)
engine/ccr/store_full_test.go:364
FunctionTestUniqueRecentSessionFailsClosedOnAmbiguityAndStaleness
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:984
FunctionTestUniqueRecentSessionUsesKnownModelToRejectOtherSessions
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:1020
FunctionTestUnixServerConcurrentSessionsAndPermissions
(t *testing.T)
proxy/internal/nativeruntime/server_test.go:19
FunctionTestUnknownArgumentExitsTwo
(t *testing.T)
mcp/cmd/caveman-mcp/main_test.go:38
FunctionTestUnknownClassFailsClosed
(t *testing.T)
engine/safety/safety_test.go:64
FunctionTestUnknownGraderFailsClosed
(t *testing.T)
engine/evals/harness_test.go:84
FunctionTestUnknownMethodIsJSONRPCError
(t *testing.T)
mcp/server_test.go:452
FunctionTestUnknownModeFailsClosedToRecord
(t *testing.T)
engine/engine_test.go:78
FunctionTestUnknownRouteFailsClosed
TestUnknownRouteFailsClosed proves an unrecognized path is a 404, never a blind pass-through.
proxy/internal/gateway/server_test.go:494
FunctionTestUnknownRouteIsNotFoundBeforeQuotaAndBody
§1: an unknown route is 404 whatever its body, before it takes a quota count.
proxy/internal/middleware/hardening_test.go:764
FunctionTestUnknownSchemaFailsClosed
(t *testing.T)
proxy/internal/runstate/runstate_test.go:169
FunctionTestUnlockRemovesOnlyItsOwnLock
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
FunctionTestUnmatchedBodiesKeepTheirMarksToThemselves
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
FunctionTestUnpersistedRawDecisionHolds
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
FunctionTestUnreadableAnswerPauses
A 200 that is not JSON pauses like any other bad answer.
proxy/internal/cloudlink/link_test.go:916
FunctionTestUnsignedThinkingScan
(t *testing.T)
proxy/internal/translate/jsonfast_test.go:5
FunctionTestUnstructuredRunsKeepTheBareMarker
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
FunctionTestUnsummarizableToolOutputIsStillMasked
TestUnsummarizableToolOutputIsStillMasked: masking keeps its original job.
proxy/internal/nativeruntime/mask_elidable_test.go:143
FunctionTestUnwrapCodexExecOnlyTakesCodexResultLines
(t *testing.T)
engine/codexexec_test.go:67
FunctionTestUnwrapFileWrapper
(t *testing.T)
engine/filewrap_test.go:10
FunctionTestUpdatesComeBackAfterATruncationRequest
A session's updates survive a request that may carry none.
proxy/internal/gateway/route_effort_responses_test.go:417
FunctionTestUpstreamAmbiguousFailureNeverReplaysInference
(t *testing.T)
proxy/internal/gateway/upstream_retry_test.go:103
FunctionTestUpstreamAuthFallbackHeaders
(t *testing.T)
proxy/internal/gateway/auth_fallback_test.go:55
FunctionTestUpstreamIDIsKept
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
FunctionTestUpstreamProxyConnectFailureRetries
#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
FunctionTestUpstreamProxyFunc_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
FunctionTestUpstreamRetryLogRemovesURLCredentials
(t *testing.T)
proxy/internal/gateway/upstream_log_redaction_test.go:14
FunctionTestUpstreamTransportErrorRetries
Dial failures occur before the request reaches the provider and can be retried.
proxy/internal/gateway/upstream_retry_test.go:19
FunctionTestUsageAfterFlushWritesPendingRowsFirst
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
FunctionTestUsageAndCost_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
FunctionTestUsageAndCost_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
FunctionTestUsageImportsCodexClaudeAndReportRedactsRawContent
(t *testing.T)
proxy/internal/store/trial_feature_test.go:37
FunctionTestUsageLineFilterMatchesDecodingEveryLine
TestUsageLineFilterMatchesDecodingEveryLine: skipping the lines mayCarryUsage rules out leaves every observed value as it was.
proxy/providers/usage_line_filter_test.go:74
FunctionTestUsagePricingQualifiersAndTerminalProof
(t *testing.T)
proxy/providers/adapter_usage_test.go:189
FunctionTestUsageScannerRetainsObservedErrorFromBoundedTail
(t *testing.T)
proxy/providers/stream_error_test.go:36
FunctionTestUsageScanner_CorruptSupportedEncodingIsExplicitlyUnpriced
(t *testing.T)
proxy/providers/adapter_usage_test.go:485
FunctionTestUsageScanner_DecodedSideCopyHonorsScanLimit
(t *testing.T)
proxy/providers/adapter_usage_test.go:499
FunctionTestUsageScanner_DecodesSupportedSideCopyWithoutChangingWireBytes
(t *testing.T)
proxy/providers/adapter_usage_test.go:451
FunctionTestUsageScanner_RecoversCompleteTerminalUsageFromBoundedTail
(t *testing.T)
proxy/providers/adapter_usage_test.go:565
FunctionTestUsageScanner_StackedEncodingIsExplicitlyUnpriced
(t *testing.T)
proxy/providers/adapter_usage_test.go:514
FunctionTestUsageScanner_TeeAndStatus
(t *testing.T)
proxy/providers/adapter_usage_test.go:391
FunctionTestUsageScanner_Truncation
(t *testing.T)
proxy/providers/adapter_usage_test.go:441
FunctionTestUsageScanner_UnsupportedEncodingIsExplicitlyUnpriced
(t *testing.T)
proxy/providers/adapter_usage_test.go:556
FunctionTestUserClaudeMDAndCodexAgentsRatesCountOnlyTheirOwnSource
(t *testing.T)
proxy/internal/store/learn_v2_p0_test.go:533
FunctionTestValidPriceAcceptsCatalogShapeAndRejectsUnsafeFields
(t *testing.T)
shared/platform/cost/cost_contract_test.go:110
FunctionTestValidateChecksProcessAndListenerIdentity
(t *testing.T)
proxy/internal/runstate/runstate_test.go:107
FunctionTestValidateHost
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:393
FunctionTestValidateHost_InvalidInputDoesNotEchoRawInput
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:341
FunctionTestValidateHost_LoopbackAllowlist
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:598
FunctionTestValidateHost_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
FunctionTestValidatePayloadProductionRequiresDedicatedKey
(t *testing.T)
shared/platform/kms/kms_test.go:177
FunctionTestValidateProductionFailsClosed
(t *testing.T)
shared/platform/kms/kms_test.go:138
FunctionTestValidateURL
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:261
FunctionTestValidateURL_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
FunctionTestValidateURL_InvalidPortDoesNotEchoRawInput
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:327
FunctionTestValidateURL_ParseErrorsDoNotEchoRawInput
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:277
FunctionTestValidateURL_ValidUserinfoKeepsGenericRejection
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:313
FunctionTestValidateURL_ZonedLiteralBlocked
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:172
FunctionTestVerificationDoesNotConsumeRecovery
(t *testing.T)
mcp/retrieve_verification_test.go:10
FunctionTestVerificationRejectsUnknownHandle
(t *testing.T)
mcp/retrieve_verification_test.go:42
FunctionTestVersionAdvertisesSupersedeStdin
(t *testing.T)
mem/cmd/cavemem/main_test.go:343
FunctionTestVersionJSON
(t *testing.T)
engine/cmd/caveman-engine/version_test.go:11
FunctionTestVersionJSON
(t *testing.T)
shrink/cmd/caveman-shrink/version_test.go:11
FunctionTestVersionJSON
(t *testing.T)
browse/cmd/caveman-browse/version_test.go:11
FunctionTestVersionJSON
(t *testing.T)
mem/cmd/cavemem/version_test.go:11
FunctionTestVersionJSON
(t *testing.T)
mcp/cmd/caveman-mcp/main_test.go:10
FunctionTestVertexADCPassThroughNoPersistence
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
FunctionTestVertex_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
FunctionTestViaCloudNeedsTheProjectKeyAndHonoursCloudOff
(t *testing.T)
proxy/internal/cloudlink/pool_test.go:186
FunctionTestWalkExcludesInstalledEnvironmentsByMarkerNotName
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
FunctionTestWalkExcludesTrashDirectory
.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
FunctionTestWarmEngineEndsOnlyTransientPauses
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
FunctionTestWatchCountsReloadFailures
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
FunctionTestWatchReloadsOnFileChange
(t *testing.T)
proxy/internal/identity/identity_test.go:200
FunctionTestWebIdentity
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:373
FunctionTestWebIdentityErrorOmitsToken
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:436
FunctionTestWeightedInputDeltaUsesDisjointCacheBuckets
(t *testing.T)
proxy/internal/gateway/stats_accounting_test.go:210
FunctionTestWeightedInputDeltaUsesObservedTierWithoutGuessingCrossing
(t *testing.T)
proxy/internal/gateway/stats_accounting_test.go:243
FunctionTestWindowsACLAllowsBroadReadOnlyGrant
(t *testing.T)
engine/ccr/sqlite_parent_security_windows_test.go:29
FunctionTestWindowsACLRejectsBroadWriteGrant
(t *testing.T)
engine/ccr/sqlite_parent_security_windows_test.go:11
FunctionTestWithCacheKeyNeverReplacesTheAgentsOwn
(t *testing.T)
proxy/internal/gateway/route_cache_test.go:97
FunctionTestWithOrgRejectsEmptyScopeBeforeOpeningTransaction
(t *testing.T)
shared/platform/postgresconfig/postgresconfig_test.go:15
FunctionTestWouldSaveColumnAndSummary
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
FunctionTestWouldSaveUSDNilWhenNoPricedRow
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
FunctionTestWouldSaveZeroedOnFailedUpstream
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
FunctionTestWrapMeasuredCountsNoWarm
(t *testing.T)
proxy/internal/store/cache_warm_stats_test.go:60
FunctionTestWrapMeasuredSince
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
FunctionTestWriteAndRemoveMatching
(t *testing.T)
proxy/internal/runstate/runstate_test.go:35
FunctionTestWriteBudgetCheckDoesNotScanTheStore
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
FunctionTestWriteIsAtomicAndReadableContract
(t *testing.T)
proxy/internal/runstate/runstate_test.go:76
FunctionTestWriteLearnSidecarsPersistsZeroMovesAndPrunesToEight
(t *testing.T)
proxy/internal/store/learn_sidecar_test.go:12
FunctionTestZZBodySplit
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
FunctionTestZebraReaderNote
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
FunctionTestZebraRowColors
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
FunctionTestZeroEgressNoNetworkImports
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
MethodTraceQueryEnd
(context.Context, *pgx.Conn, pgx.TraceQueryEndData)
proxy/internal/middleware/postgres_test.go:323
MethodTraceQueryStart
(ctx context.Context, _ *pgx.Conn, _ pgx.TraceQueryStartData)
proxy/internal/middleware/postgres_test.go:319
MethodTransform
(_ context.Context, _ evals.Fixture, input []byte)
engine/evals/harness_test.go:258
MethodTransform
(_ context.Context, f Fixture, input []byte)
engine/evals/harness.go:301
← previousnext →10,701–10,800 of 12,391, ranked by callers