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
TestConfigTrendComparesAgainstTheUsersOwnHistory
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
Function
TestConfigTrendIgnoresDriftAndShrinkage
TestConfigTrendIgnoresDriftAndShrinkage keeps noise and improvements out of a finding whose whole subject is unwanted growth.
proxy/internal/store/detect_config_trend_test.go:96
Function
TestConfigTrendSilentWithoutHistory
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
Function
TestConfigYAMLKeepsParentsImportantAndQueryRelevantLines
(t *testing.T)
engine/compressors/config_test.go:24
Function
TestConfigYAMLQueryKeepsSequenceItemParent
(t *testing.T)
engine/compressors/config_test.go:60
Function
TestConfiguredCARejectsInvalidPEMAndPlaintextTLS
(t *testing.T)
shared/platform/postgresconfig/postgresconfig_test.go:200
Function
TestConfiguredModeReadsTheNewConfigHomeFirst
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
Function
TestConservativeModesDoNotStoreOriginals
(t *testing.T)
proxy/internal/middleware/runtime_test.go:403
Function
TestConsolidationOwnerMustVerify
(t *testing.T)
engine/ccr/store_reclaim_test.go:306
Function
TestConstructedURISANNeverNamesThePrincipal
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
Function
TestContainerPlaintextAllowlistIsECSAndEKSOnly
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
Function
TestContainerRejectsPlaintextNonLoopbackHost
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:166
Function
TestContainerRelativeURIAndTokenFile
(t *testing.T)
shared/platform/awscreds/awscreds_test.go:127
Function
TestContextTokensUseTheParentsTokensPerByte
Context tokens: the provider's own count per byte, from the parent session for a child.
proxy/internal/gateway/route_cache_test.go:224
Function
TestContextWindowTokensRequiresExactCatalogMatch
(t *testing.T)
shared/platform/catalog/context_window_test.go:10
Function
TestContextWindowUsesExactCatalogThenFallback
(t *testing.T)
proxy/internal/store/source_codex_test.go:99
Function
TestCostChartBlendsEachModelsCatalogCachePrice
(t *testing.T)
proxy/internal/store/report_chart_test.go:5
Function
TestCount
(t *testing.T)
mem/store_test.go:71
Function
TestCountTokensGetsTheSessionsMarksAndHeal
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
Function
TestCountTokensInATopOnlySession
count_tokens adds nothing to a history without marks, whatever Cloud answered before.
proxy/internal/gateway/route_effort_test.go:1748
Function
TestCountTokensRequestAcceptsStringInput
A string `input` is as valid as an array in the Responses API.
proxy/providers/openai/count_tokens_test.go:142
Function
TestCountTokensRequestFailsClosed
(t *testing.T)
proxy/providers/gemini/count_tokens_test.go:29
Function
TestCountTokensRequestFailsClosed
(t *testing.T)
proxy/providers/bedrock/count_tokens_test.go:26
Function
TestCountTokensRequestFailsClosed
(t *testing.T)
proxy/providers/anthropic/count_tokens_test.go:26
Function
TestCountTokensRequestFailsClosed
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
Function
TestCountTokensRequestGolden
(t *testing.T)
proxy/providers/gemini/count_tokens_test.go:10
Function
TestCountTokensRequestGolden
(t *testing.T)
proxy/providers/bedrock/count_tokens_test.go:10
Function
TestCountTokensRequestGolden
(t *testing.T)
proxy/providers/anthropic/count_tokens_test.go:10
Function
TestCountTokensRequestKeepsRoutePrefix
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
Function
TestCountTokensRequestProjectsResponsesInput
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
Function
TestCountTokensRequestRefusesServerHeldThreads
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
Function
TestCoverageShedPriority
--- 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
Function
TestCredential_BedrockBearerPrecedesIAM
(t *testing.T)
proxy/internal/config/config_test.go:369
Function
TestCredential_BedrockIAMRequiresCompletePair
(t *testing.T)
proxy/internal/config/config_test.go:381
Function
TestCredential_ReadsBYOKEnv
(t *testing.T)
proxy/internal/config/config_test.go:361
Function
TestCredsNativeProviderHeadersStayProviderScoped
(t *testing.T)
proxy/internal/standalone/standalone_test.go:1084
Function
TestCreds_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
Function
TestCreds_BedrockEnvPairStillWinsOverChain
(t *testing.T)
proxy/internal/standalone/bedrock_chain_test.go:112
Function
TestCreds_BedrockInboundThenEnvironment
(t *testing.T)
proxy/internal/standalone/standalone_test.go:1426
Function
TestCreds_NamedCompatEnvResolution
(t *testing.T)
proxy/internal/standalone/standalone_test.go:958
Function
TestCreds_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
Function
TestCreds_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
Function
TestCrossProviderDepthAndRepasteSinks
(t *testing.T)
proxy/internal/store/source_opencode_test.go:76
Function
TestCurrentBedrockCatalogUsesExactModelAndSourceRegionPrices
(t *testing.T)
shared/provider-catalog/catalog_test.go:57
Function
TestCurrentCatalogPinsDocumentedRoutingEffortLevels
(t *testing.T)
shared/provider-catalog/catalog_test.go:14
Function
TestCurrentCatalogRowsAreFreshAndStructurallyValid
(t *testing.T)
shared/platform/catalog/catalog_test.go:44
Function
TestCurrentMistralRegionalPricingAndCapabilities
(t *testing.T)
shared/provider-catalog/catalog_test.go:134
Function
TestCutToolCallIsNeverClosed
A stream cut mid tool call never closes that call: only the error goes out.
proxy/internal/translate/review_regressions_test.go:15
Function
TestDamageFoundAtServeReachesStatusUntilRepaired
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
Function
TestDamagedStoreRefusesWritesAfterIntegrityCheck
(t *testing.T)
engine/ccr/store_integrity_test.go:85
Function
TestDecideFailsSafeTowardKeepingDetail
(t *testing.T)
engine/image/image_test.go:97
Function
TestDecideLowDetailAndResize
(t *testing.T)
engine/image/image_test.go:113
Function
TestDecideNeverUpscales
(t *testing.T)
engine/image/image_test.go:226
Function
TestDecodeAndValidateRejectsUnsafeCatalogs
(t *testing.T)
shared/platform/catalog/catalog_test.go:495
Function
TestDecodeBoolObjectGuardsNilAndDecodes
TestDecodeBoolObjectGuardsNilAndDecodes covers the issue #140 nil-object crash: CallFunctionOn can return a nil RemoteObject without an error, and the
browse/cdp_test.go:17
Function
TestDecodeJSONRejectsTrailingAndOversizedBodies
(t *testing.T)
shared/platform/httpx/httpx_test.go:27
Function
TestDecodeTOONFailsClosedOnImpossibleCountsAndDuplicateKeys
(t *testing.T)
engine/compressors/toon_roundtrip_test.go:8
Function
TestDecryptEnvelopeValidation
(t *testing.T)
shared/platform/kms/kms_test.go:295
Function
TestDecryptRejectsEnvelopeKeyOutsideExplicitAllowlist
(t *testing.T)
shared/platform/kms/kms_test.go:160
Function
TestDecryptRejectsOversizedEnvelopeBeforeNetwork
(t *testing.T)
shared/platform/kms/kms_test.go:146
Function
TestDecryptResponseValidationAndRotatedKey
(t *testing.T)
shared/platform/kms/kms_test.go:321
Function
TestDedupReferenceRefusesDamagedOwnerData
(t *testing.T)
engine/ccr/store_corrupt_test.go:80
Function
TestDefaultChromeCandidatesIncludeWindowsInstallRoots
(t *testing.T)
browse/cmd/caveman-browse/main_test.go:163
Function
TestDefaultChromeCandidatesPreserveMacPaths
(t *testing.T)
browse/cmd/caveman-browse/main_test.go:97
Function
TestDefaultCounterCountsAndIsDeterministic
(t *testing.T)
engine/tokens/tokens_test.go:9
Function
TestDefaultEffortKeepsTheMarks
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
Function
TestDefaultTransformOptions
(t *testing.T)
engine/pixel/types_test.go:7
Function
TestDefaultUpstreamClientBoundsResponseHeaders
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
Function
TestDefaultUpstreamClientKeepsConnectionsForConcurrentCallers
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
Function
TestDeferMCPToolsDefersNonCoreAndPrependsSearchTool
(t *testing.T)
proxy/providers/anthropic/defer_mcp_test.go:54
Function
TestDeferMCPToolsRespectsGuards
(t *testing.T)
proxy/providers/anthropic/defer_mcp_test.go:111
Function
TestDeferMCPToolsWorksAcrossAnthropicAndVertexAndSkipsUnsupportedProviders
(t *testing.T)
proxy/providers/anthropic/defer_mcp_test.go:190
Function
TestDeferredMaskIsInjectedOnceForHostsWithoutDirectOutputRewrite
(t *testing.T)
proxy/internal/nativeruntime/runtime_test.go:867
Function
TestDeleteWithAnUnsupportedVersion
§6: an unsupported schema_version is unsupported_version on every route.
proxy/internal/middleware/hardening_test.go:818
Function
TestDemoteProtectedHeadTextQuotesPreview
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
Function
TestDensePages
(t *testing.T)
engine/pixel/render_test.go:260
Function
TestDensityEnvelopeStaysNoResize
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
Function
TestDensityFromEnv
TestDensityFromEnv pins the env selector: default balanced, falsey values conservative, invalid values fail closed to conservative, case-insensitive.
engine/pixel/density_test.go:76
Function
TestDensityHardFloors
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
Function
TestDescribeRecoveryStoreNamesWhyAndTheFix
(t *testing.T)
proxy/cmd/caveman-proxy/recovery_store_test.go:155
Function
TestDetect
(t *testing.T)
engine/detect_test.go:9
Function
TestDetectAndroidFromBuildProp
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
Function
TestDetectGoWithHTMLStringsNotHTML
(t *testing.T)
engine/detect_html_test.go:34
Function
TestDetectHTML
(t *testing.T)
engine/detect_html_test.go:9
Function
TestDetectHTMLDeclarationNeedsATagBoundary
(t *testing.T)
engine/detect_html_test.go:68
Function
TestDetectHTMLDocumentWithStrayCarriageReturns
(t *testing.T)
engine/detect_html_test.go:55
Function
TestDetectJSXRoutesToCode
(t *testing.T)
engine/detect_html_test.go:17
Function
TestDetectLearningLoopsDistinguishesPaginationVariants
(t *testing.T)
proxy/internal/store/learn_loops_test.go:34
Function
TestDetectLearningLoopsRequiresThreeCallsWithinOneSession
(t *testing.T)
proxy/internal/store/learn_loops_test.go:12
Function
TestDetectLogWithCodeKeywords
(t *testing.T)
engine/detect_html_test.go:42
Function
TestDetectSeesThroughFileWrapper
(t *testing.T)
engine/filewrap_test.go:71
Function
TestDetectSeesThroughTheReadToolGutter
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
Function
TestDetectTerminal
(t *testing.T)
engine/terminal_test.go:13
Function
TestDetectVolatileReturnsKindsAndOffsetsNotValues
(t *testing.T)
shared/platform/cacheguard/cacheguard_test.go:70
Function
TestDialContext_AllowlistedHostnameCannotReachMetadata
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:130
Function
TestDialContext_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
Function
TestDialContext_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
Function
TestDialContext_BlocksMetadataIP
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:444
Function
TestDialContext_HostPortAllowlistMatchesAtConnectTime
(t *testing.T)
shared/platform/ssrf/ssrf_zone_test.go:29
Function
TestDialContext_InvalidAddressDoesNotEchoRawInput
(t *testing.T)
shared/platform/ssrf/ssrf_test.go:355
← previous
next →
9,201–9,300 of 12,853, ranked by callers