MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

FunctionTestConfigTrendComparesAgainstTheUsersOwnHistory
TestConfigTrendComparesAgainstTheUsersOwnHistory proves the finding is growth measured against this machine's recorded past, not a static guideline.
proxy/internal/store/detect_config_trend_test.go:29
FunctionTestConfigTrendIgnoresDriftAndShrinkage
TestConfigTrendIgnoresDriftAndShrinkage keeps noise and improvements out of a finding whose whole subject is unwanted growth.
proxy/internal/store/detect_config_trend_test.go:96
FunctionTestConfigTrendSilentWithoutHistory
TestConfigTrendSilentWithoutHistory refuses to report a trend from one observation, which would be a flat line nobody measured.
proxy/internal/store/detect_config_trend_test.go:78
FunctionTestConfigYAMLKeepsParentsImportantAndQueryRelevantLines
(t *testing.T)
engine/compressors/config_test.go:24
FunctionTestConfigYAMLQueryKeepsSequenceItemParent
(t *testing.T)
engine/compressors/config_test.go:60
FunctionTestConfiguredCARejectsInvalidPEMAndPlaintextTLS
(t *testing.T)
shared/platform/postgresconfig/postgresconfig_test.go:200
FunctionTestConfiguredModeReadsTheNewConfigHomeFirst
The CLI moved its config to $CAVEMAN_HOME/cloud.json; the hook must follow, or `think.mode=record` written there is ignored and compression keeps runn
proxy/internal/nativehook/config_mode_test.go:11
FunctionTestConservativeModesDoNotStoreOriginals
(t *testing.T)
proxy/internal/middleware/runtime_test.go:403
FunctionTestConsolidationOwnerMustVerify
(t *testing.T)
engine/ccr/store_reclaim_test.go:306
FunctionTestConstructedURISANNeverNamesThePrincipal
FX2: Go's x509 parser (and so its name-constraint check) skips a constructed [6] SAN. A CA constrained to spiffe://td must not be able to name spiffe:
proxy/internal/identity/tls_test.go:328
FunctionTestContainerPlaintextAllowlistIsECSAndEKSOnly
The plaintext allowlist is the three addresses the AWS SDKs actually use, not every link-local address: 169.254.0.0/16 and fe80::/10 are shared with a
shared/platform/awscreds/awscreds_test.go:188
FunctionTestContainerRejectsPlaintextNonLoopbackHost
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:166
FunctionTestContainerRelativeURIAndTokenFile
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:127
FunctionTestContextTokensUseTheParentsTokensPerByte
Context tokens: the provider's own count per byte, from the parent session for a child.
proxy/internal/gateway/route_cache_test.go:224
FunctionTestContextWindowTokensRequiresExactCatalogMatch
(t *testing.T)
shared/platform/catalog/context_window_test.go:10
FunctionTestContextWindowUsesExactCatalogThenFallback
(t *testing.T)
proxy/internal/store/source_codex_test.go:99
FunctionTestCostChartBlendsEachModelsCatalogCachePrice
(t *testing.T)
proxy/internal/store/report_chart_test.go:5
FunctionTestCount
(t *testing.T)
mem/store_test.go:71
FunctionTestCountTokensGetsTheSessionsMarksAndHeal
count_tokens runs the same binding check: it gets the session's marks and remembered heal, is never asked about and never changes the session.
proxy/internal/gateway/route_effort_test.go:1358
FunctionTestCountTokensInATopOnlySession
count_tokens adds nothing to a history without marks, whatever Cloud answered before.
proxy/internal/gateway/route_effort_test.go:1748
FunctionTestCountTokensRequestAcceptsStringInput
A string `input` is as valid as an array in the Responses API.
proxy/providers/openai/count_tokens_test.go:142
FunctionTestCountTokensRequestFailsClosed
(t *testing.T)
proxy/providers/gemini/count_tokens_test.go:29
FunctionTestCountTokensRequestFailsClosed
(t *testing.T)
proxy/providers/bedrock/count_tokens_test.go:26
FunctionTestCountTokensRequestFailsClosed
(t *testing.T)
proxy/providers/anthropic/count_tokens_test.go:26
FunctionTestCountTokensRequestFailsClosed
Fails CLOSED on anything that is not a Responses request. Chat Completions has no count endpoint; projecting one onto /v1/responses/input_tokens would
proxy/providers/openai/count_tokens_test.go:56
FunctionTestCountTokensRequestGolden
(t *testing.T)
proxy/providers/gemini/count_tokens_test.go:10
FunctionTestCountTokensRequestGolden
(t *testing.T)
proxy/providers/bedrock/count_tokens_test.go:10
FunctionTestCountTokensRequestGolden
(t *testing.T)
proxy/providers/anthropic/count_tokens_test.go:10
FunctionTestCountTokensRequestKeepsRoutePrefix
The prefixed route the managed gateway mounts must resolve to the prefixed count path, not the bare one.
proxy/providers/openai/count_tokens_test.go:130
FunctionTestCountTokensRequestProjectsResponsesInput
The Responses API is the only OpenAI surface with a count endpoint. The projection has to carry everything the model will actually be charged for — in
proxy/providers/openai/count_tokens_test.go:14
FunctionTestCountTokensRequestRefusesServerHeldThreads
CW 5: server-held prompt surface has no projectable prompt. previous_response_id / conversation / prompt mean the model is charged for content the req
proxy/providers/openai/count_tokens_test.go:88
FunctionTestCoverageShedPriority
--- coverage shed priority --- TestCoverageShedPriority pins where each coverage form sits in the budget queue. A DENSE coverage settles membership ou
engine/compressors/invariants_test.go:713
FunctionTestCredential_BedrockBearerPrecedesIAM
(t *testing.T)
proxy/internal/config/config_test.go:369
FunctionTestCredential_BedrockIAMRequiresCompletePair
(t *testing.T)
proxy/internal/config/config_test.go:381
FunctionTestCredential_ReadsBYOKEnv
(t *testing.T)
proxy/internal/config/config_test.go:361
FunctionTestCredsNativeProviderHeadersStayProviderScoped
(t *testing.T)
proxy/internal/standalone/standalone_test.go:1084
FunctionTestCreds_BearerSchemeRecorded
TestCreds_BearerSchemeRecorded proves the resolver records the bearer scheme only when the key came from an inbound Authorization header, so the Anthr
proxy/internal/standalone/standalone_test.go:1394
FunctionTestCreds_BedrockEnvPairStillWinsOverChain
(t *testing.T)
proxy/internal/standalone/bedrock_chain_test.go:112
FunctionTestCreds_BedrockInboundThenEnvironment
(t *testing.T)
proxy/internal/standalone/standalone_test.go:1426
FunctionTestCreds_NamedCompatEnvResolution
(t *testing.T)
proxy/internal/standalone/standalone_test.go:958
FunctionTestCreds_OpenCodeGoBuiltinCompatCredential
TestCreds_OpenCodeGoBuiltinCompatCredential proves that the built-in OpenCode Go mount has its own BYOK policy. The proxy adds this mount only if the
proxy/internal/standalone/standalone_test.go:889
FunctionTestCreds_PassthroughThenBYOK
TestCreds_PassthroughThenBYOK proves the credential resolver preserves a real inbound provider credential and falls back to the operator BYOK env key
proxy/internal/standalone/standalone_test.go:700
FunctionTestCrossProviderDepthAndRepasteSinks
(t *testing.T)
proxy/internal/store/source_opencode_test.go:76
FunctionTestCurrentBedrockCatalogUsesExactModelAndSourceRegionPrices
(t *testing.T)
shared/provider-catalog/catalog_test.go:57
FunctionTestCurrentCatalogPinsDocumentedRoutingEffortLevels
(t *testing.T)
shared/provider-catalog/catalog_test.go:14
FunctionTestCurrentCatalogRowsAreFreshAndStructurallyValid
(t *testing.T)
shared/platform/catalog/catalog_test.go:44
FunctionTestCurrentMistralRegionalPricingAndCapabilities
(t *testing.T)
shared/provider-catalog/catalog_test.go:134
FunctionTestCutToolCallIsNeverClosed
A stream cut mid tool call never closes that call: only the error goes out.
proxy/internal/translate/review_regressions_test.go:15
FunctionTestDamageFoundAtServeReachesStatusUntilRepaired
The serve-time check finds the damage once; status then reports it on every run without reading the whole file, and a repair clears it.
proxy/cmd/caveman-proxy/recovery_store_test.go:108
FunctionTestDamagedStoreRefusesWritesAfterIntegrityCheck
(t *testing.T)
engine/ccr/store_integrity_test.go:85
FunctionTestDecideFailsSafeTowardKeepingDetail
(t *testing.T)
engine/image/image_test.go:97
FunctionTestDecideLowDetailAndResize
(t *testing.T)
engine/image/image_test.go:113
FunctionTestDecideNeverUpscales
(t *testing.T)
engine/image/image_test.go:226
FunctionTestDecodeAndValidateRejectsUnsafeCatalogs
(t *testing.T)
shared/platform/catalog/catalog_test.go:495
FunctionTestDecodeBoolObjectGuardsNilAndDecodes
TestDecodeBoolObjectGuardsNilAndDecodes covers the issue #140 nil-object crash: CallFunctionOn can return a nil RemoteObject without an error, and the
browse/cdp_test.go:17
FunctionTestDecodeJSONRejectsTrailingAndOversizedBodies
(t *testing.T)
shared/platform/httpx/httpx_test.go:27
FunctionTestDecodeTOONFailsClosedOnImpossibleCountsAndDuplicateKeys
(t *testing.T)
engine/compressors/toon_roundtrip_test.go:8
FunctionTestDecryptEnvelopeValidation
(t *testing.T)
shared/platform/kms/kms_test.go:295
FunctionTestDecryptRejectsEnvelopeKeyOutsideExplicitAllowlist
(t *testing.T)
shared/platform/kms/kms_test.go:160
FunctionTestDecryptRejectsOversizedEnvelopeBeforeNetwork
(t *testing.T)
shared/platform/kms/kms_test.go:146
FunctionTestDecryptResponseValidationAndRotatedKey
(t *testing.T)
shared/platform/kms/kms_test.go:321
FunctionTestDedupReferenceRefusesDamagedOwnerData
(t *testing.T)
engine/ccr/store_corrupt_test.go:80
FunctionTestDefaultChromeCandidatesIncludeWindowsInstallRoots
(t *testing.T)
browse/cmd/caveman-browse/main_test.go:163
FunctionTestDefaultChromeCandidatesPreserveMacPaths
(t *testing.T)
browse/cmd/caveman-browse/main_test.go:97
FunctionTestDefaultCounterCountsAndIsDeterministic
(t *testing.T)
engine/tokens/tokens_test.go:9
FunctionTestDefaultEffortKeepsTheMarks
With the model's default effort known (Cloud's default_effort), a request that sets no effort keeps the session's marks when Cloud gives none and gets
proxy/internal/gateway/route_effort_test.go:1407
FunctionTestDefaultTransformOptions
(t *testing.T)
engine/pixel/types_test.go:7
FunctionTestDefaultUpstreamClientBoundsResponseHeaders
With no total request deadline (CAVE_GATEWAY_UPSTREAM_TIMEOUT_MS defaults to 0) an upstream that connects and then never answers would hang the handle
proxy/internal/gateway/upstream_bounds_test.go:27
FunctionTestDefaultUpstreamClientKeepsConnectionsForConcurrentCallers
Go keeps two idle connections per host by default; eight callers at once would then open six new upstream connections every round. The default client
proxy/internal/gateway/upstream_bounds_test.go:122
FunctionTestDeferMCPToolsDefersNonCoreAndPrependsSearchTool
(t *testing.T)
proxy/providers/anthropic/defer_mcp_test.go:54
FunctionTestDeferMCPToolsRespectsGuards
(t *testing.T)
proxy/providers/anthropic/defer_mcp_test.go:111
FunctionTestDeferMCPToolsWorksAcrossAnthropicAndVertexAndSkipsUnsupportedProviders
(t *testing.T)
proxy/providers/anthropic/defer_mcp_test.go:190
FunctionTestDeferredMaskIsInjectedOnceForHostsWithoutDirectOutputRewrite
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:867
FunctionTestDeleteWithAnUnsupportedVersion
§6: an unsupported schema_version is unsupported_version on every route.
proxy/internal/middleware/hardening_test.go:818
FunctionTestDemoteProtectedHeadTextQuotesPreview
A preview holding quotes/backslashes must stay inside its delimiters (so it can't fake the end of the tombstone) and survive a JSON round-trip intact.
engine/pixel/history_anthropic_test.go:122
FunctionTestDensePages
(t *testing.T)
engine/pixel/render_test.go:260
FunctionTestDensityEnvelopeStaysNoResize
TestDensityEnvelopeStaysNoResize asserts that every level × tier full-canvas page stays inside its tier's no-resize envelope: long edge ≤ tier.MaxPx A
engine/pixel/density_gate_test.go:11
FunctionTestDensityFromEnv
TestDensityFromEnv pins the env selector: default balanced, falsey values conservative, invalid values fail closed to conservative, case-insensitive.
engine/pixel/density_test.go:76
FunctionTestDensityHardFloors
TestDensityHardFloors verifies the stall-envelope floors clamp any sub-floor config: mono pitch floors at 6, zebra pitch floors at 5, layers cap at 2,
engine/pixel/density_test.go:114
FunctionTestDescribeRecoveryStoreNamesWhyAndTheFix
(t *testing.T)
proxy/cmd/caveman-proxy/recovery_store_test.go:155
FunctionTestDetect
(t *testing.T)
engine/detect_test.go:9
FunctionTestDetectAndroidFromBuildProp
Codex scrubs the MCP server environment, so ANDROID_ROOT alone misses caveman-mcp on Termux; the system image marker must still be detected.
engine/ccr/store_locking_procfs_linux_test.go:136
FunctionTestDetectGoWithHTMLStringsNotHTML
(t *testing.T)
engine/detect_html_test.go:34
FunctionTestDetectHTML
(t *testing.T)
engine/detect_html_test.go:9
FunctionTestDetectHTMLDeclarationNeedsATagBoundary
(t *testing.T)
engine/detect_html_test.go:68
FunctionTestDetectHTMLDocumentWithStrayCarriageReturns
(t *testing.T)
engine/detect_html_test.go:55
FunctionTestDetectJSXRoutesToCode
(t *testing.T)
engine/detect_html_test.go:17
FunctionTestDetectLearningLoopsDistinguishesPaginationVariants
(t *testing.T)
proxy/internal/store/learn_loops_test.go:34
FunctionTestDetectLearningLoopsRequiresThreeCallsWithinOneSession
(t *testing.T)
proxy/internal/store/learn_loops_test.go:12
FunctionTestDetectLogWithCodeKeywords
(t *testing.T)
engine/detect_html_test.go:42
FunctionTestDetectSeesThroughFileWrapper
(t *testing.T)
engine/filewrap_test.go:71
FunctionTestDetectSeesThroughTheReadToolGutter
Detect runs on the content, not on the read tool's gutter. Before this, a guttered JSON document did not start with '{', json.Valid failed, and it rou
engine/listing_test.go:42
FunctionTestDetectTerminal
(t *testing.T)
engine/terminal_test.go:13
FunctionTestDetectVolatileReturnsKindsAndOffsetsNotValues
(t *testing.T)
shared/platform/cacheguard/cacheguard_test.go:70
FunctionTestDialContext_AllowlistedHostnameCannotReachMetadata
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:130
FunctionTestDialContext_AllowsPublicAddress
TestDialContext_AllowsPublicAddress verifies that the DialContext wrapper does not interfere with connections to genuinely public IP addresses. We can
shared/platform/ssrf/ssrf_test.go:460
FunctionTestDialContext_BlocksLoopback
--- DialContext wrapper test --- Starts a real TCP listener on 127.0.0.1 and asserts the guarded dialer refuses to connect to it.
shared/platform/ssrf/ssrf_test.go:429
FunctionTestDialContext_BlocksMetadataIP
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:444
FunctionTestDialContext_HostPortAllowlistMatchesAtConnectTime
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:29
FunctionTestDialContext_InvalidAddressDoesNotEchoRawInput
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:355
← previousnext →9,201–9,300 of 12,853, ranked by callers