MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

FunctionTestRegisterBillingAPIGatesBothRoutes
TestRegisterBillingAPIGatesBothRoutes exercises the real registration used by multitenant.go: both routes are mounted and BOTH pass through the admin-
controlplane/compute_billing_api_test.go:90
FunctionTestRegisterCLIInputsFlagsCoversEveryCLIBackedField
TestRegisterCLIInputsFlagsCoversEveryCLIBackedField guards against drift between the CLIInputs struct and the flag registrar. Every CLI-backed CLIInpu
configresolve/cliflags_test.go:93
FunctionTestRegisterCLIInputsFlagsHarvestPropagatesValuesAndSet
TestRegisterCLIInputsFlagsHarvestPropagatesValuesAndSet exercises the happy path: parse a few flags, confirm both the value field and the Set map refl
configresolve/cliflags_test.go:150
FunctionTestRegisterUIServesSPA
(t *testing.T)
controlplane/admin/embed_ui_test.go:14
FunctionTestReleaseQueryHandleReleasesAbandonedOperation
(t *testing.T)
duckdbservice/flight_handler_test.go:530
FunctionTestReleaseWorkerSocketClosesNonPrebound
(t *testing.T)
controlplane/worker_mgr_process_test.go:923
FunctionTestReleaseWorkerSocketIdempotent
(t *testing.T)
controlplane/worker_mgr_process_test.go:1019
FunctionTestReleaseWorkerSocketReturnsPrebound
(t *testing.T)
controlplane/worker_mgr_process_test.go:887
FunctionTestReleaseWorker_RetiresWhenLastSessionAndEnabled
(t *testing.T)
controlplane/worker_mgr_process_test.go:478
FunctionTestRenderPanelNoCorruption
Every panel must render to valid PromQL for both an empty and a non-empty org — in particular with NO leftover fmt "%!(EXTRA ...)" corruption (the bug
controlplane/admin/metrics_proxy_test.go:13
FunctionTestReplayUserSecrets
Replay applies statements and degrades per-statement failures to warnings that never include the statement text (it carries credentials).
duckdbservice/user_secrets_test.go:116
FunctionTestRepositoryDoesNotContainForbiddenToken
(t *testing.T)
repository_hygiene_test.go:11
FunctionTestRepositoryManifestIncludesPostHogFileViewsVersion
(t *testing.T)
tests/perf/datasets/runtime_test.go:61
FunctionTestRepositoryMetadataCatalogFileParses
(t *testing.T)
tests/scenario/sql/steps_test.go:282
FunctionTestReprovisionExistingOrgKeepsDefaultTeamID
TestReprovisionExistingOrgKeepsDefaultTeamID: re-provisioning an EXISTING org without default_team_id stays valid (not the new-org 400) and keeps the
controlplane/provisioning/api_test.go:293
FunctionTestRequestedWorkerVCPUs
(t *testing.T)
controlplane/worker_profile_test.go:127
FunctionTestRequireAdmin
RequireAdmin gates a route regardless of method (used by the audit read).
controlplane/admin/authz_test.go:122
FunctionTestReservePIDGloballyUniqueAcrossManagers
TestReservePIDGloballyUniqueAcrossManagers is the regression for the conns-map collision: backend pids must be unique across the whole CP process, not
controlplane/session_mgr_test.go:115
FunctionTestReservePIDSkipsZeroAtWrap
TestReservePIDSkipsZeroAtWrap covers the int32-wrap edge: when the counter passes through 0 (only after ~2.1B connections), reservePID must skip it so
controlplane/session_mgr_test.go:138
FunctionTestReservedAtTracking
(t *testing.T)
controlplane/pool_metrics_test.go:89
FunctionTestResetLeaderOwnedClusterMetrics
(t *testing.T)
controlplane/pool_metrics_test.go:264
FunctionTestResetPasswordEmitsAnalyticsEvent
(t *testing.T)
controlplane/provisioning/analytics_events_test.go:147
FunctionTestResetPasswordRequiresReadyWarehouse
(t *testing.T)
controlplane/provisioning/api_test.go:568
FunctionTestResolveDSNPasswordEscapesKeywordPasswordOverride
(t *testing.T)
tests/perf/publisher/publisher_test.go:256
FunctionTestResolveDSNPasswordOverridesBareKeywordPassword
(t *testing.T)
tests/perf/publisher/publisher_test.go:242
FunctionTestResolveDSNPasswordOverridesKeywordPassword
(t *testing.T)
tests/perf/publisher/publisher_test.go:228
FunctionTestResolveDSNPasswordTreatsDollarLiterallyInKeywordOverride
(t *testing.T)
tests/perf/publisher/publisher_test.go:270
FunctionTestResolveEffectiveCatalog
(t *testing.T)
controlplane/session_search_path_test.go:47
FunctionTestResolveEffectiveConfigACME
(t *testing.T)
main_test.go:806
FunctionTestResolveEffectiveConfigACMEDNSProviderValidation
(t *testing.T)
main_test.go:878
FunctionTestResolveEffectiveConfigACMEDNSRequiresDomain
(t *testing.T)
main_test.go:967
FunctionTestResolveEffectiveConfigACMEEnvOnly
(t *testing.T)
main_test.go:863
FunctionTestResolveEffectiveConfigDuckLakeDeltaCatalog
(t *testing.T)
main_test.go:223
FunctionTestResolveEffectiveConfigDuckLakeDisableMetadataThreadLocalCache
(t *testing.T)
main_test.go:178
FunctionTestResolveEffectiveConfigDuckLakeDisableMetadataThreadLocalCacheDefaultsTrue
(t *testing.T)
main_test.go:206
FunctionTestResolveEffectiveConfigEnvOverridesFile
(t *testing.T)
main_test.go:89
FunctionTestResolveEffectiveConfigFilePersistenceCLIOverridesEnv
(t *testing.T)
main_test.go:947
FunctionTestResolveEffectiveConfigFilePersistenceDefaultFalse
(t *testing.T)
main_test.go:960
FunctionTestResolveEffectiveConfigFilePersistenceEnvOverridesFile
(t *testing.T)
main_test.go:934
FunctionTestResolveEffectiveConfigFilePersistenceFromEnv
(t *testing.T)
main_test.go:924
FunctionTestResolveEffectiveConfigFilePersistenceFromFile
(t *testing.T)
main_test.go:913
FunctionTestResolveEffectiveConfigFlightIngressDurations
(t *testing.T)
main_test.go:630
FunctionTestResolveEffectiveConfigFlightIngressDurationsFromEnv
(t *testing.T)
main_test.go:730
FunctionTestResolveEffectiveConfigFlightIngressDurationsFromFile
(t *testing.T)
main_test.go:706
FunctionTestResolveEffectiveConfigInvalidEnvValues
(t *testing.T)
main_test.go:122
FunctionTestResolveEffectiveConfigInvalidFlightPortEnv
(t *testing.T)
main_test.go:754
FunctionTestResolveEffectiveConfigInvalidMemoryBudget
(t *testing.T)
main_test.go:563
FunctionTestResolveEffectiveConfigInvalidMemoryLimit
(t *testing.T)
main_test.go:469
FunctionTestResolveEffectiveConfigInvalidQueryLogEnvValues
(t *testing.T)
main_test.go:301
FunctionTestResolveEffectiveConfigInvalidThreadsEnv
(t *testing.T)
main_test.go:443
FunctionTestResolveEffectiveConfigInvalidWorkerEnvVars
(t *testing.T)
main_test.go:589
FunctionTestResolveEffectiveConfigMemoryBudgetAndWorkers
(t *testing.T)
main_test.go:496
FunctionTestResolveEffectiveConfigMemoryLimitAndThreads
(t *testing.T)
main_test.go:400
FunctionTestResolveEffectiveConfigPassthroughUsers
(t *testing.T)
main_test.go:783
FunctionTestResolveEffectiveConfigPrecedence
(t *testing.T)
main_test.go:17
FunctionTestResolveEffectiveConfigQueryLogCLIOverride
(t *testing.T)
main_test.go:376
FunctionTestResolveEffectiveConfigQueryLogKafka
(t *testing.T)
main_test.go:342
FunctionTestResolveEffectiveConfigSessionInitTimeout
(t *testing.T)
main_test.go:672
FunctionTestResolveEffectiveConfigSessionInitTimeoutPrecedence
(t *testing.T)
main_test.go:682
FunctionTestResolveEffectiveConfigWorkerQueueTimeoutDefault
(t *testing.T)
main_test.go:115
FunctionTestResolveEffectiveDefaultsK8sWorkerServiceAccountToDefaultWorker
(t *testing.T)
configresolve/resolve_k8s_test.go:7
FunctionTestResolveEffectiveExposesDuckLakeDefaultSpecVersionForControlPlane
(t *testing.T)
configresolve/resolve_k8s_test.go:15
FunctionTestResolveEffectiveInternalSecretFallbacksCLIBeatsEnv
(t *testing.T)
configresolve/resolve_internal_secret_test.go:23
FunctionTestResolveEffectiveInternalSecretFallbacksExplicitEmptyCLIClearsEnv
(t *testing.T)
configresolve/resolve_internal_secret_test.go:41
FunctionTestResolveEffectiveInternalSecretFallbacksFromEnv
(t *testing.T)
configresolve/resolve_internal_secret_test.go:8
FunctionTestResolveEffectiveInternalSecretFallbacksUnsetIsNil
(t *testing.T)
configresolve/resolve_internal_secret_test.go:58
FunctionTestResolveEffectiveParsesK8sWorkerDefaultTTL
(t *testing.T)
configresolve/resolve_k8s_test.go:41
FunctionTestResolveEffectiveParsesK8sWorkerMaxTTL
(t *testing.T)
configresolve/resolve_k8s_test.go:28
FunctionTestResolveEffectiveQueryLogKafkaGroupID
(t *testing.T)
configresolve/resolve_querylog_test.go:9
FunctionTestResolveEffectiveRejectsInvalidK8sWorkerDefaultTTL
(t *testing.T)
configresolve/resolve_k8s_test.go:54
FunctionTestResolvePostgresConnection
(t *testing.T)
controlplane/configstore/store_test.go:258
FunctionTestResolveRunTemplatesRejectsMissingEnvTemplate
(t *testing.T)
tests/scenario/runner_test.go:388
FunctionTestResolveRuntimeContractFailsForMissingRequestedVersion
(t *testing.T)
tests/perf/datasets/runtime_test.go:23
FunctionTestResolveRuntimeContractNoVersionConfigured
(t *testing.T)
tests/perf/datasets/runtime_test.go:10
FunctionTestResolveRuntimeContractWithDefaultManifestPath
(t *testing.T)
tests/perf/datasets/runtime_test.go:41
FunctionTestResolveS3SecretTransport
TestResolveS3SecretTransport pins down the discriminator that decides what URL_STYLE / USE_SSL we embed on the duckdb_s3 secret. The choice is operati
server/s3_secret_test.go:15
FunctionTestResolveSNIPrefix
(t *testing.T)
controlplane/configstore/store_test.go:207
FunctionTestResolveSTSSessionDuration
DUCKGRES_STS_SESSION_DURATION is env-only and exists to let a soak test shorten tokens to AWS's 900s AssumeRole floor (proving real in-statement expir
controlplane/sts_broker_test.go:265
FunctionTestResolveSessionLimits_PreservesExplicitValues
(t *testing.T)
controlplane/session_mgr_test.go:451
FunctionTestResolveSessionLimits_UsesRebalancerDefaultsWhenUnset
(t *testing.T)
controlplane/session_mgr_test.go:438
FunctionTestResolveWorkerProfileOrgDefaults
Org default worker profile (operator-set via the admin API): when the client sends no sizing GUCs, the org default produces a concrete profile; partia
controlplane/worker_profile_test.go:180
FunctionTestResolveWorkerProfileOrgDefaults_BuiltinFallback
An org default with no pool-global request configured falls back to the built-in 8/16Gi for unset size fields (mirrors the client path).
controlplane/worker_profile_test.go:357
FunctionTestResolveWorkerProfileOrgDefaults_GateOff
Org defaults apply even when AllowClientWorkerProfile is off: the gate is about trusting client startup options, not operator config. Client GUCs are
controlplane/worker_profile_test.go:331
FunctionTestResolveWorkerProfileSizedNoTTLUsesWorkerDefaultTTL
(t *testing.T)
controlplane/worker_profile_test.go:371
FunctionTestResolveWorkerProfileSizing
(t *testing.T)
controlplane/worker_profile_test.go:28
FunctionTestResolveWorkerProfileSizing_BuiltinDefaults
When the client DOES set sizing and no default size is configured, the built-in 8/16Gi/20m applies for the omitted fields.
controlplane/worker_profile_test.go:165
FunctionTestResolveWorkerProfileSizing_GateOff
Gate off: every GUC is ignored and the default (nil) profile is returned (never an error, even for garbage values) — preserving warm-pool reuse.
controlplane/worker_profile_test.go:95
FunctionTestResolveWorkerProfileSizing_NoSizingIsNil
A no-sizing request must return the nil default sentinel so it matches the neutral warm pool (regression guard: returning a concrete-default profile h
controlplane/worker_profile_test.go:116
FunctionTestRestoreLeavesEmbeddedPlaceholder
TestRestoreLeavesEmbeddedPlaceholder verifies boundary-aware restoration: a placeholder embedded inside a larger identifier (as the writable-CTE trans
transpiler/longident_test.go:168
FunctionTestRetireDrainingWorkerRejectsStaleSameCPLeasePostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:2500
FunctionTestRetireFromSnapshotRejectsNonTerminalTarget
(t *testing.T)
controlplane/worker_lifecycle_test.go:222
FunctionTestRetireFromSnapshotSkipsCleanupOnCASMiss
(t *testing.T)
controlplane/worker_lifecycle_test.go:179
FunctionTestRetireFromSnapshotSucceedsAndSchedulesCleanup
(t *testing.T)
controlplane/worker_lifecycle_test.go:155
FunctionTestRetireFromSnapshotTargetingLostSchedulesCleanup
(t *testing.T)
controlplane/worker_lifecycle_test.go:197
FunctionTestRetireHotIdleWorkerNoOpOnNonHotIdleSnapshotPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:2456
FunctionTestRetireHotIdleWorkerRejectsStaleListSnapshotAfterReclaimPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:2343
FunctionTestRetireHotIdleWorkerRejectsStaleListSnapshotAfterTouchPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:2406
FunctionTestRetireIdleVariantSkipsWhenSnapshotNotEligible
(t *testing.T)
controlplane/worker_lifecycle_test.go:260
FunctionTestRetireOneMismatchedVersionWorker_LeavesSameVersionWorkersAlone
(t *testing.T)
controlplane/k8s_pool_test.go:3674
FunctionTestRetireOneMismatchedVersionWorker_NoopWhenCPIDHasNoHashSuffix
(t *testing.T)
controlplane/k8s_pool_test.go:3750
← previousnext →5,201–5,300 of 5,901, ranked by callers