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
TestLoadOrCreateAccountKey
(t *testing.T)
server/tlscert/acme_dns_test.go:9
Function
TestLoadOrCreateAccountKey_InvalidExistingKeyReturnsError
(t *testing.T)
server/tlscert/acme_dns_test.go:69
Function
TestLoadScenarioForRunResolvesScenarioRelativeFiles
(t *testing.T)
tests/scenario/runner_test.go:264
Function
TestLocalConfigStoreSeedSQL
(t *testing.T)
tests/configstore/seed_sql_test.go:14
Function
TestLockingTransform_CTE
(t *testing.T)
transpiler/transform/wiring_ops_test.go:137
Function
TestLockingTransform_ExistsSublink
(t *testing.T)
transpiler/transform/wiring_ops_test.go:145
Function
TestLockingTransform_SetOpArms
(t *testing.T)
transpiler/transform/wiring_ops_test.go:153
Function
TestLockingTransform_Subquery
(t *testing.T)
transpiler/transform/wiring_ops_test.go:129
Function
TestLockingTransform_TopLevel
Regression tests for LockingTransform: FOR UPDATE/FOR SHARE must be stripped at any depth, not just on the top-level statement, or DuckDB fails with "
transpiler/transform/wiring_ops_test.go:121
Function
TestLogQueryCopiesProfilingSummaryToQueryLogEntry
(t *testing.T)
server/querylog_test.go:663
Function
TestLogQueryErrorCapturesPlainQuery
A non-secret query is stored verbatim (redaction is a no-op) so triage keeps full fidelity for ordinary errors.
server/recent_errors_test.go:82
Function
TestLogQueryErrorCapturesRedactedSecret
The load-bearing invariant: a failed CREATE SECRET must NOT leak its credential into the Errors-page ring — neither via the stored query nor the error
server/recent_errors_test.go:47
Function
TestLogQueryErrorClassifiesUserError
(t *testing.T)
server/conn_analytics_test.go:80
Function
TestLogQueryErrorEmitsQueryFailed
(t *testing.T)
server/conn_analytics_test.go:55
Function
TestLogQueryErrorRoutesInfraCancelToErrorLevel
TestLogQueryErrorRoutesInfraCancelToErrorLevel locks in the alerting invariant: a worker-death cancellation (gRPC Canceled bubbling up while c.ctx is
server/transient_test.go:628
Function
TestLogQueryStartedEmitsQueryInitiated
(t *testing.T)
server/conn_analytics_test.go:34
Function
TestLoginCookieIsHttpOnlyStrict
(t *testing.T)
controlplane/admin/dashboard_test.go:80
Function
TestLoginWithFallbackTokenWorksEndToEnd
A dashboard login with a fallback secret must succeed and mint a working cookie: a rotation must not lock out an operator holding the old value until
controlplane/admin/dashboard_test.go:222
Function
TestMain
The tests re-execute the test binary with CRASHHANDLER_TEST_MODE set; TestMain dispatches to a crash trigger that must never return. The parent assert
internal/crashhandler/crashhandler_test.go:15
Function
TestMain
TestMain sets up and tears down the test environment
tests/integration/setup_test.go:257
Function
TestMain
(m *testing.M)
tests/integration/clients/clients_test.go:25
Function
TestMain
(m *testing.M)
tests/controlplane/controlplane_test.go:32
Function
TestMakeControlPlaneInstanceID_StaysKubernetesSafe
(t *testing.T)
controlplane/multitenant_cp_instance_id_test.go:7
Function
TestManagedHostnameHint
(t *testing.T)
controlplane/sni_kubernetes_test.go:61
Function
TestManagedWarehouseConfigStorePostgres
(t *testing.T)
tests/configstore/managed_warehouse_postgres_test.go:11
Function
TestManagedWarehouseUpsertColumnsExcludeCreatedAt
(t *testing.T)
controlplane/admin/api_test.go:1195
Function
TestManagedWorkerClaimSessionLocked
TestManagedWorkerClaimSessionLocked pins the shared session-claim bookkeeping used identically by FlightWorkerPool.AcquireWorker and K8sWorkerPool.Acq
controlplane/worker_mgr_test.go:107
Function
TestManagedWorkerOwnerEpochAccessorsRaceFree
TestManagedWorkerOwnerEpochAccessorsRaceFree exercises concurrent readers and writers under -race to catch any path that mutates ownerEpoch without go
controlplane/worker_mgr_test.go:83
Function
TestManagedWorkerRefreshOwnerEpochAtomicLeavesEpochOnErr
TestManagedWorkerRefreshOwnerEpochAtomicLeavesEpochOnErr verifies the documented contract: if the callback returns an error, the in-memory epoch stays
controlplane/worker_mgr_test.go:63
Function
TestManagedWorkerRefreshOwnerEpochAtomicSerializesWithReaders
TestManagedWorkerRefreshOwnerEpochAtomicSerializesWithReaders pins the contract that closes the BumpWorkerEpoch ↔ ShutdownAll race: a concurrent reade
controlplane/worker_mgr_test.go:18
Function
TestManagedWorkerSetSharedStateClonesAssignment
(t *testing.T)
controlplane/worker_mgr_process_test.go:1190
Function
TestManagedWorkerSharedStateNormalizesZeroValue
(t *testing.T)
controlplane/worker_mgr_process_test.go:1178
Function
TestManifestTestsRunInUnitRecipe
(t *testing.T)
tests/manifests/manifests_test.go:235
Function
TestMapDuckDBType
(t *testing.T)
server/types_test.go:33
Function
TestMapDuckDBTypeTypmod
(t *testing.T)
server/types_test.go:117
Function
TestMarkCredentialsRefreshedFailsOnEpochMismatch
TestMarkCredentialsRefreshedFailsOnEpochMismatch: another CP took over the worker (bumped owner_epoch), and our just-minted creds are stale — the cond
tests/configstore/runtime_store_postgres_test.go:1646
Function
TestMarkCredentialsRefreshedFailsOnOwnerMismatch
TestMarkCredentialsRefreshedFailsOnOwnerMismatch: another CP took ownership entirely. Same conditional-update protection.
tests/configstore/runtime_store_postgres_test.go:1684
Function
TestMarkCredentialsRefreshedSucceeds
TestMarkCredentialsRefreshedSucceeds: happy path — same owner, same epoch, write goes through and returns true.
tests/configstore/runtime_store_postgres_test.go:1607
Function
TestMarkLostFromLeaseDoesNotScheduleCleanup
(t *testing.T)
controlplane/worker_lifecycle_test.go:340
Function
TestMarkWorkerDrainingRejectsStaleSameCPLeasePostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:2476
Function
TestMarkWorkerLostIfCurrentLeasePostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:2044
Function
TestMarkWorkerRetiredLocked_TransitionsHotWorkerToRetired
(t *testing.T)
controlplane/pool_metrics_test.go:31
Function
TestMarkWorkerRetiredLocked_TransitionsToRetired
(t *testing.T)
controlplane/pool_metrics_test.go:15
Function
TestMatchPgCursorsQuery
(t *testing.T)
server/conn_test.go:3445
Function
TestMatchPgStatActivityQuery
(t *testing.T)
server/conn_test.go:3777
Function
TestMemoryLimit
(t *testing.T)
controlplane/memory_rebalancer_test.go:18
Function
TestMemoryLimitFloor
(t *testing.T)
controlplane/memory_rebalancer_test.go:40
Function
TestMemoryProfileOnlyMapsPublicToMain
(t *testing.T)
transpiler/backend/profile_test.go:21
Function
TestMessageLoopIdleTimeoutClosesConnection
TestMessageLoopIdleTimeoutClosesConnection proves the mechanism the control-plane idle default relies on: with IdleTimeout configured, a connection th
server/conn_idle_test.go:19
Function
TestMessageRoundTrip
(t *testing.T)
server/protocol_test.go:435
Function
TestMetabaseQueries
TestMetabaseQueries tests queries commonly issued by Metabase
tests/integration/clients/clients_test.go:92
Function
TestMigrationNeeded_FalseWhenError
(t *testing.T)
server/ducklake/migration_test.go:446
Function
TestMockOrgRouterSatisfiesInterface
(t *testing.T)
controlplane/migration_lock_test.go:202
Function
TestMockOrgRouterSatisfiesInterface
(t *testing.T)
controlplane/org_router_shared_test.go:7
Function
TestModelDescriptorsRedaction
TestModelDescriptorsRedaction is the no-DB guard for the load-bearing security invariant of the models explorer: secret-bearing columns must never app
controlplane/admin/models_api_test.go:23
Function
TestModelsAPIPostgres
TestModelsAPIPostgres exercises the real query path against the config store: sidebar counts, a config-schema listing, a runtime-schema listing (schem
controlplane/admin/models_api_test.go:80
Function
TestMultiStatementBehavior
TestMultiStatementBehavior tests that a single query string containing multiple semicolon-separated statements is handled correctly. This is distinct
tests/integration/edge_cases_test.go:939
Function
TestMutateManagedWarehouseSerializesConcurrentWriters
(t *testing.T)
controlplane/admin/api_postgres_test.go:164
Function
TestNamespaceManifestIncludesDucklingsNamespace
(t *testing.T)
tests/manifests/manifests_test.go:58
Function
TestNeedsCredentialRefresh
(t *testing.T)
server/server_test.go:172
Function
TestNestedBeginDetection
(t *testing.T)
server/conn_test.go:555
Function
TestNestedTypesRoundTrip
TestNestedTypesRoundTrip exercises DuckDB driver → Scan → RowsToRecord → Arrow IPC round-trip for STRUCT, MAP, and nested combinations. Each subtest c
duckdbservice/arrow_helpers_test.go:459
Function
TestNetworkPolicyAllowsControlPlaneToReachWorkerGRPC
(t *testing.T)
tests/manifests/manifests_test.go:70
Function
TestNetworkPolicyAllowsQueryLogKafkaTraffic
(t *testing.T)
tests/manifests/manifests_test.go:178
Function
TestNetworkPolicyManifestRestrictsWorkerIngressAndEgressAndProtectsControlPlane
(t *testing.T)
k8s_manifest_test.go:64
Function
TestNewACMEManagerCreatesCache
(t *testing.T)
server/tlscert/acme_test.go:9
Function
TestNewACMEManagerDefaultCacheDir
(t *testing.T)
server/tlscert/acme_test.go:30
Function
TestNewCipherRejectsBadKeys
(t *testing.T)
server/usersecrets/classify_test.go:236
Function
TestNewControlPlaneFlightSQLHandlerReturnsError
(t *testing.T)
server/flightsqlingress/ingress_test.go:1707
Function
TestNewFailsWhenBundledExtensionBootstrapFails
(t *testing.T)
server/server_test.go:134
Function
TestNewFlightIngressAdapterValidation
(t *testing.T)
controlplane/flight_ingress_adapter_test.go:11
Function
TestNewMemoryRebalancerDefaults
(t *testing.T)
controlplane/memory_rebalancer_test.go:69
Function
TestNewQueryLogSinkDefaultsToDuckLake
(t *testing.T)
server/querylog_kafka_test.go:259
Function
TestNewQueryLogSinkRejectsKafkaWithoutTopic
(t *testing.T)
server/querylog_kafka_test.go:275
Function
TestNewRejectsACMEDNSProviderWithoutDomain
(t *testing.T)
server/server_test.go:529
Function
TestNewRejectsUnsupportedACMEDNSProvider
(t *testing.T)
server/server_test.go:515
Function
TestNewTestSnapshotPreservesFields
Quick smoke: snapshot fields survive ObserveWorker-equivalent round-trip. We construct via the test-only escape hatch since this test file lives outsi
controlplane/worker_lifecycle_test.go:396
Function
TestNewWorkerLeaseAllowsLegacyCallersWithoutImage
(t *testing.T)
controlplane/worker_lifecycle_test.go:323
Function
TestNormalizeIdleTimeout
(t *testing.T)
server/server_test.go:16
Function
TestNormalizeQueryHash
(t *testing.T)
server/querylog_test.go:53
Function
TestObjectStoreParentPrefix
(t *testing.T)
server/ducklake/migration_test.go:414
Function
TestObserveConnectionDurationRecordsPerOrgSample
ObserveConnectionDuration must record exactly one sample per call and add the observed seconds to the per-org sum — _sum is the load-bearing series fo
server/observe/metrics_test.go:26
Function
TestObserveDrainTotalDuration
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:172
Function
TestObserveHealthCheck
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:188
Function
TestObserveLifecycleTransitionDuration_EmptyOperationIsDropped
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:97
Function
TestObserveLifecycleTransitionDuration_NegativeDurationCoercedToZero
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:85
Function
TestObserveLifecycleTransitionDuration_RecordsSample
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:73
Function
TestObserveLifecycleTransition_EmptyOperationIsDropped
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:61
Function
TestObserveLifecycleTransition_EmptyOutcomeFallsBackToStoreError
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:44
Function
TestObserveLifecycleTransition_NormalizesEmptyOriginAndImage
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:28
Function
TestObserveLifecycleTransition_RecordsLabels
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:10
Function
TestObserveQueryOutcomeIncrementsCanonicalCounter
(t *testing.T)
server/query_metrics_test.go:45
Function
TestObserveSpawnFailure
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:146
Function
TestObserveStrandedPodReconciled
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:106
Function
TestObserveStrandedSecretReconciled
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:130
Function
TestObserveWorkerLifecycleStatsSeedsZerosAndDeletesStaleImages
(t *testing.T)
controlplane/pool_metrics_test.go:225
Function
TestOnConflictTransform_DataTypes
(t *testing.T)
transpiler/transform/onconflict_test.go:645
Function
TestOnConflictTransform_DuckLakeMode_DoNothing
(t *testing.T)
transpiler/transform/onconflict_test.go:188
Function
TestOnConflictTransform_DuckLakeMode_DoUpdate
(t *testing.T)
transpiler/transform/onconflict_test.go:61
Function
TestOnConflictTransform_ExcludedAlias
(t *testing.T)
transpiler/transform/onconflict_test.go:586
← previous
next →
4,701–4,800 of 5,901, ranked by callers