Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PostHog/duckgres
/ functions
Functions
5,901 in github.com/PostHog/duckgres
⨍
Functions
5,901
◇
Types & classes
803
Function
TestRegisterBillingAPIGatesBothRoutes
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
Function
TestRegisterCLIInputsFlagsCoversEveryCLIBackedField
TestRegisterCLIInputsFlagsCoversEveryCLIBackedField guards against drift between the CLIInputs struct and the flag registrar. Every CLI-backed CLIInpu
configresolve/cliflags_test.go:93
Function
TestRegisterCLIInputsFlagsHarvestPropagatesValuesAndSet
TestRegisterCLIInputsFlagsHarvestPropagatesValuesAndSet exercises the happy path: parse a few flags, confirm both the value field and the Set map refl
configresolve/cliflags_test.go:150
Function
TestRegisterUIServesSPA
(t *testing.T)
controlplane/admin/embed_ui_test.go:14
Function
TestReleaseQueryHandleReleasesAbandonedOperation
(t *testing.T)
duckdbservice/flight_handler_test.go:530
Function
TestReleaseWorkerSocketClosesNonPrebound
(t *testing.T)
controlplane/worker_mgr_process_test.go:923
Function
TestReleaseWorkerSocketIdempotent
(t *testing.T)
controlplane/worker_mgr_process_test.go:1019
Function
TestReleaseWorkerSocketReturnsPrebound
(t *testing.T)
controlplane/worker_mgr_process_test.go:887
Function
TestReleaseWorker_RetiresWhenLastSessionAndEnabled
(t *testing.T)
controlplane/worker_mgr_process_test.go:478
Function
TestRenderPanelNoCorruption
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
Function
TestReplayUserSecrets
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
Function
TestRepositoryDoesNotContainForbiddenToken
(t *testing.T)
repository_hygiene_test.go:11
Function
TestRepositoryManifestIncludesPostHogFileViewsVersion
(t *testing.T)
tests/perf/datasets/runtime_test.go:61
Function
TestRepositoryMetadataCatalogFileParses
(t *testing.T)
tests/scenario/sql/steps_test.go:282
Function
TestReprovisionExistingOrgKeepsDefaultTeamID
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
Function
TestRequestedWorkerVCPUs
(t *testing.T)
controlplane/worker_profile_test.go:127
Function
TestRequireAdmin
RequireAdmin gates a route regardless of method (used by the audit read).
controlplane/admin/authz_test.go:122
Function
TestReservePIDGloballyUniqueAcrossManagers
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
Function
TestReservePIDSkipsZeroAtWrap
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
Function
TestReservedAtTracking
(t *testing.T)
controlplane/pool_metrics_test.go:89
Function
TestResetLeaderOwnedClusterMetrics
(t *testing.T)
controlplane/pool_metrics_test.go:264
Function
TestResetPasswordEmitsAnalyticsEvent
(t *testing.T)
controlplane/provisioning/analytics_events_test.go:147
Function
TestResetPasswordRequiresReadyWarehouse
(t *testing.T)
controlplane/provisioning/api_test.go:568
Function
TestResolveDSNPasswordEscapesKeywordPasswordOverride
(t *testing.T)
tests/perf/publisher/publisher_test.go:256
Function
TestResolveDSNPasswordOverridesBareKeywordPassword
(t *testing.T)
tests/perf/publisher/publisher_test.go:242
Function
TestResolveDSNPasswordOverridesKeywordPassword
(t *testing.T)
tests/perf/publisher/publisher_test.go:228
Function
TestResolveDSNPasswordTreatsDollarLiterallyInKeywordOverride
(t *testing.T)
tests/perf/publisher/publisher_test.go:270
Function
TestResolveEffectiveCatalog
(t *testing.T)
controlplane/session_search_path_test.go:47
Function
TestResolveEffectiveConfigACME
(t *testing.T)
main_test.go:806
Function
TestResolveEffectiveConfigACMEDNSProviderValidation
(t *testing.T)
main_test.go:878
Function
TestResolveEffectiveConfigACMEDNSRequiresDomain
(t *testing.T)
main_test.go:967
Function
TestResolveEffectiveConfigACMEEnvOnly
(t *testing.T)
main_test.go:863
Function
TestResolveEffectiveConfigDuckLakeDeltaCatalog
(t *testing.T)
main_test.go:223
Function
TestResolveEffectiveConfigDuckLakeDisableMetadataThreadLocalCache
(t *testing.T)
main_test.go:178
Function
TestResolveEffectiveConfigDuckLakeDisableMetadataThreadLocalCacheDefaultsTrue
(t *testing.T)
main_test.go:206
Function
TestResolveEffectiveConfigEnvOverridesFile
(t *testing.T)
main_test.go:89
Function
TestResolveEffectiveConfigFilePersistenceCLIOverridesEnv
(t *testing.T)
main_test.go:947
Function
TestResolveEffectiveConfigFilePersistenceDefaultFalse
(t *testing.T)
main_test.go:960
Function
TestResolveEffectiveConfigFilePersistenceEnvOverridesFile
(t *testing.T)
main_test.go:934
Function
TestResolveEffectiveConfigFilePersistenceFromEnv
(t *testing.T)
main_test.go:924
Function
TestResolveEffectiveConfigFilePersistenceFromFile
(t *testing.T)
main_test.go:913
Function
TestResolveEffectiveConfigFlightIngressDurations
(t *testing.T)
main_test.go:630
Function
TestResolveEffectiveConfigFlightIngressDurationsFromEnv
(t *testing.T)
main_test.go:730
Function
TestResolveEffectiveConfigFlightIngressDurationsFromFile
(t *testing.T)
main_test.go:706
Function
TestResolveEffectiveConfigInvalidEnvValues
(t *testing.T)
main_test.go:122
Function
TestResolveEffectiveConfigInvalidFlightPortEnv
(t *testing.T)
main_test.go:754
Function
TestResolveEffectiveConfigInvalidMemoryBudget
(t *testing.T)
main_test.go:563
Function
TestResolveEffectiveConfigInvalidMemoryLimit
(t *testing.T)
main_test.go:469
Function
TestResolveEffectiveConfigInvalidQueryLogEnvValues
(t *testing.T)
main_test.go:301
Function
TestResolveEffectiveConfigInvalidThreadsEnv
(t *testing.T)
main_test.go:443
Function
TestResolveEffectiveConfigInvalidWorkerEnvVars
(t *testing.T)
main_test.go:589
Function
TestResolveEffectiveConfigMemoryBudgetAndWorkers
(t *testing.T)
main_test.go:496
Function
TestResolveEffectiveConfigMemoryLimitAndThreads
(t *testing.T)
main_test.go:400
Function
TestResolveEffectiveConfigPassthroughUsers
(t *testing.T)
main_test.go:783
Function
TestResolveEffectiveConfigPrecedence
(t *testing.T)
main_test.go:17
Function
TestResolveEffectiveConfigQueryLogCLIOverride
(t *testing.T)
main_test.go:376
Function
TestResolveEffectiveConfigQueryLogKafka
(t *testing.T)
main_test.go:342
Function
TestResolveEffectiveConfigSessionInitTimeout
(t *testing.T)
main_test.go:672
Function
TestResolveEffectiveConfigSessionInitTimeoutPrecedence
(t *testing.T)
main_test.go:682
Function
TestResolveEffectiveConfigWorkerQueueTimeoutDefault
(t *testing.T)
main_test.go:115
Function
TestResolveEffectiveDefaultsK8sWorkerServiceAccountToDefaultWorker
(t *testing.T)
configresolve/resolve_k8s_test.go:7
Function
TestResolveEffectiveExposesDuckLakeDefaultSpecVersionForControlPlane
(t *testing.T)
configresolve/resolve_k8s_test.go:15
Function
TestResolveEffectiveInternalSecretFallbacksCLIBeatsEnv
(t *testing.T)
configresolve/resolve_internal_secret_test.go:23
Function
TestResolveEffectiveInternalSecretFallbacksExplicitEmptyCLIClearsEnv
(t *testing.T)
configresolve/resolve_internal_secret_test.go:41
Function
TestResolveEffectiveInternalSecretFallbacksFromEnv
(t *testing.T)
configresolve/resolve_internal_secret_test.go:8
Function
TestResolveEffectiveInternalSecretFallbacksUnsetIsNil
(t *testing.T)
configresolve/resolve_internal_secret_test.go:58
Function
TestResolveEffectiveParsesK8sWorkerDefaultTTL
(t *testing.T)
configresolve/resolve_k8s_test.go:41
Function
TestResolveEffectiveParsesK8sWorkerMaxTTL
(t *testing.T)
configresolve/resolve_k8s_test.go:28
Function
TestResolveEffectiveQueryLogKafkaGroupID
(t *testing.T)
configresolve/resolve_querylog_test.go:9
Function
TestResolveEffectiveRejectsInvalidK8sWorkerDefaultTTL
(t *testing.T)
configresolve/resolve_k8s_test.go:54
Function
TestResolvePostgresConnection
(t *testing.T)
controlplane/configstore/store_test.go:258
Function
TestResolveRunTemplatesRejectsMissingEnvTemplate
(t *testing.T)
tests/scenario/runner_test.go:388
Function
TestResolveRuntimeContractFailsForMissingRequestedVersion
(t *testing.T)
tests/perf/datasets/runtime_test.go:23
Function
TestResolveRuntimeContractNoVersionConfigured
(t *testing.T)
tests/perf/datasets/runtime_test.go:10
Function
TestResolveRuntimeContractWithDefaultManifestPath
(t *testing.T)
tests/perf/datasets/runtime_test.go:41
Function
TestResolveS3SecretTransport
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
Function
TestResolveSNIPrefix
(t *testing.T)
controlplane/configstore/store_test.go:207
Function
TestResolveSTSSessionDuration
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
Function
TestResolveSessionLimits_PreservesExplicitValues
(t *testing.T)
controlplane/session_mgr_test.go:451
Function
TestResolveSessionLimits_UsesRebalancerDefaultsWhenUnset
(t *testing.T)
controlplane/session_mgr_test.go:438
Function
TestResolveWorkerProfileOrgDefaults
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
Function
TestResolveWorkerProfileOrgDefaults_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
Function
TestResolveWorkerProfileOrgDefaults_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
Function
TestResolveWorkerProfileSizedNoTTLUsesWorkerDefaultTTL
(t *testing.T)
controlplane/worker_profile_test.go:371
Function
TestResolveWorkerProfileSizing
(t *testing.T)
controlplane/worker_profile_test.go:28
Function
TestResolveWorkerProfileSizing_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
Function
TestResolveWorkerProfileSizing_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
Function
TestResolveWorkerProfileSizing_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
Function
TestRestoreLeavesEmbeddedPlaceholder
TestRestoreLeavesEmbeddedPlaceholder verifies boundary-aware restoration: a placeholder embedded inside a larger identifier (as the writable-CTE trans
transpiler/longident_test.go:168
Function
TestRetireDrainingWorkerRejectsStaleSameCPLeasePostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:2500
Function
TestRetireFromSnapshotRejectsNonTerminalTarget
(t *testing.T)
controlplane/worker_lifecycle_test.go:222
Function
TestRetireFromSnapshotSkipsCleanupOnCASMiss
(t *testing.T)
controlplane/worker_lifecycle_test.go:179
Function
TestRetireFromSnapshotSucceedsAndSchedulesCleanup
(t *testing.T)
controlplane/worker_lifecycle_test.go:155
Function
TestRetireFromSnapshotTargetingLostSchedulesCleanup
(t *testing.T)
controlplane/worker_lifecycle_test.go:197
Function
TestRetireHotIdleWorkerNoOpOnNonHotIdleSnapshotPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:2456
Function
TestRetireHotIdleWorkerRejectsStaleListSnapshotAfterReclaimPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:2343
Function
TestRetireHotIdleWorkerRejectsStaleListSnapshotAfterTouchPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:2406
Function
TestRetireIdleVariantSkipsWhenSnapshotNotEligible
(t *testing.T)
controlplane/worker_lifecycle_test.go:260
Function
TestRetireOneMismatchedVersionWorker_LeavesSameVersionWorkersAlone
(t *testing.T)
controlplane/k8s_pool_test.go:3674
Function
TestRetireOneMismatchedVersionWorker_NoopWhenCPIDHasNoHashSuffix
(t *testing.T)
controlplane/k8s_pool_test.go:3750
← previous
next →
5,201–5,300 of 5,901, ranked by callers