MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

FunctionTestLoadOrCreateAccountKey
(t *testing.T)
server/tlscert/acme_dns_test.go:9
FunctionTestLoadOrCreateAccountKey_InvalidExistingKeyReturnsError
(t *testing.T)
server/tlscert/acme_dns_test.go:69
FunctionTestLoadScenarioForRunResolvesScenarioRelativeFiles
(t *testing.T)
tests/scenario/runner_test.go:264
FunctionTestLocalConfigStoreSeedSQL
(t *testing.T)
tests/configstore/seed_sql_test.go:14
FunctionTestLockingTransform_CTE
(t *testing.T)
transpiler/transform/wiring_ops_test.go:137
FunctionTestLockingTransform_ExistsSublink
(t *testing.T)
transpiler/transform/wiring_ops_test.go:145
FunctionTestLockingTransform_SetOpArms
(t *testing.T)
transpiler/transform/wiring_ops_test.go:153
FunctionTestLockingTransform_Subquery
(t *testing.T)
transpiler/transform/wiring_ops_test.go:129
FunctionTestLockingTransform_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
FunctionTestLogQueryCopiesProfilingSummaryToQueryLogEntry
(t *testing.T)
server/querylog_test.go:663
FunctionTestLogQueryErrorCapturesPlainQuery
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
FunctionTestLogQueryErrorCapturesRedactedSecret
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
FunctionTestLogQueryErrorClassifiesUserError
(t *testing.T)
server/conn_analytics_test.go:80
FunctionTestLogQueryErrorEmitsQueryFailed
(t *testing.T)
server/conn_analytics_test.go:55
FunctionTestLogQueryErrorRoutesInfraCancelToErrorLevel
TestLogQueryErrorRoutesInfraCancelToErrorLevel locks in the alerting invariant: a worker-death cancellation (gRPC Canceled bubbling up while c.ctx is
server/transient_test.go:628
FunctionTestLogQueryStartedEmitsQueryInitiated
(t *testing.T)
server/conn_analytics_test.go:34
FunctionTestLoginCookieIsHttpOnlyStrict
(t *testing.T)
controlplane/admin/dashboard_test.go:80
FunctionTestLoginWithFallbackTokenWorksEndToEnd
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
FunctionTestMain
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
FunctionTestMain
TestMain sets up and tears down the test environment
tests/integration/setup_test.go:257
FunctionTestMain
(m *testing.M)
tests/integration/clients/clients_test.go:25
FunctionTestMain
(m *testing.M)
tests/controlplane/controlplane_test.go:32
FunctionTestMakeControlPlaneInstanceID_StaysKubernetesSafe
(t *testing.T)
controlplane/multitenant_cp_instance_id_test.go:7
FunctionTestManagedHostnameHint
(t *testing.T)
controlplane/sni_kubernetes_test.go:61
FunctionTestManagedWarehouseConfigStorePostgres
(t *testing.T)
tests/configstore/managed_warehouse_postgres_test.go:11
FunctionTestManagedWarehouseUpsertColumnsExcludeCreatedAt
(t *testing.T)
controlplane/admin/api_test.go:1195
FunctionTestManagedWorkerClaimSessionLocked
TestManagedWorkerClaimSessionLocked pins the shared session-claim bookkeeping used identically by FlightWorkerPool.AcquireWorker and K8sWorkerPool.Acq
controlplane/worker_mgr_test.go:107
FunctionTestManagedWorkerOwnerEpochAccessorsRaceFree
TestManagedWorkerOwnerEpochAccessorsRaceFree exercises concurrent readers and writers under -race to catch any path that mutates ownerEpoch without go
controlplane/worker_mgr_test.go:83
FunctionTestManagedWorkerRefreshOwnerEpochAtomicLeavesEpochOnErr
TestManagedWorkerRefreshOwnerEpochAtomicLeavesEpochOnErr verifies the documented contract: if the callback returns an error, the in-memory epoch stays
controlplane/worker_mgr_test.go:63
FunctionTestManagedWorkerRefreshOwnerEpochAtomicSerializesWithReaders
TestManagedWorkerRefreshOwnerEpochAtomicSerializesWithReaders pins the contract that closes the BumpWorkerEpoch ↔ ShutdownAll race: a concurrent reade
controlplane/worker_mgr_test.go:18
FunctionTestManagedWorkerSetSharedStateClonesAssignment
(t *testing.T)
controlplane/worker_mgr_process_test.go:1190
FunctionTestManagedWorkerSharedStateNormalizesZeroValue
(t *testing.T)
controlplane/worker_mgr_process_test.go:1178
FunctionTestManifestTestsRunInUnitRecipe
(t *testing.T)
tests/manifests/manifests_test.go:235
FunctionTestMapDuckDBType
(t *testing.T)
server/types_test.go:33
FunctionTestMapDuckDBTypeTypmod
(t *testing.T)
server/types_test.go:117
FunctionTestMarkCredentialsRefreshedFailsOnEpochMismatch
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
FunctionTestMarkCredentialsRefreshedFailsOnOwnerMismatch
TestMarkCredentialsRefreshedFailsOnOwnerMismatch: another CP took ownership entirely. Same conditional-update protection.
tests/configstore/runtime_store_postgres_test.go:1684
FunctionTestMarkCredentialsRefreshedSucceeds
TestMarkCredentialsRefreshedSucceeds: happy path — same owner, same epoch, write goes through and returns true.
tests/configstore/runtime_store_postgres_test.go:1607
FunctionTestMarkLostFromLeaseDoesNotScheduleCleanup
(t *testing.T)
controlplane/worker_lifecycle_test.go:340
FunctionTestMarkWorkerDrainingRejectsStaleSameCPLeasePostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:2476
FunctionTestMarkWorkerLostIfCurrentLeasePostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:2044
FunctionTestMarkWorkerRetiredLocked_TransitionsHotWorkerToRetired
(t *testing.T)
controlplane/pool_metrics_test.go:31
FunctionTestMarkWorkerRetiredLocked_TransitionsToRetired
(t *testing.T)
controlplane/pool_metrics_test.go:15
FunctionTestMatchPgCursorsQuery
(t *testing.T)
server/conn_test.go:3445
FunctionTestMatchPgStatActivityQuery
(t *testing.T)
server/conn_test.go:3777
FunctionTestMemoryLimit
(t *testing.T)
controlplane/memory_rebalancer_test.go:18
FunctionTestMemoryLimitFloor
(t *testing.T)
controlplane/memory_rebalancer_test.go:40
FunctionTestMemoryProfileOnlyMapsPublicToMain
(t *testing.T)
transpiler/backend/profile_test.go:21
FunctionTestMessageLoopIdleTimeoutClosesConnection
TestMessageLoopIdleTimeoutClosesConnection proves the mechanism the control-plane idle default relies on: with IdleTimeout configured, a connection th
server/conn_idle_test.go:19
FunctionTestMessageRoundTrip
(t *testing.T)
server/protocol_test.go:435
FunctionTestMetabaseQueries
TestMetabaseQueries tests queries commonly issued by Metabase
tests/integration/clients/clients_test.go:92
FunctionTestMigrationNeeded_FalseWhenError
(t *testing.T)
server/ducklake/migration_test.go:446
FunctionTestMockOrgRouterSatisfiesInterface
(t *testing.T)
controlplane/migration_lock_test.go:202
FunctionTestMockOrgRouterSatisfiesInterface
(t *testing.T)
controlplane/org_router_shared_test.go:7
FunctionTestModelDescriptorsRedaction
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
FunctionTestModelsAPIPostgres
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
FunctionTestMultiStatementBehavior
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
FunctionTestMutateManagedWarehouseSerializesConcurrentWriters
(t *testing.T)
controlplane/admin/api_postgres_test.go:164
FunctionTestNamespaceManifestIncludesDucklingsNamespace
(t *testing.T)
tests/manifests/manifests_test.go:58
FunctionTestNeedsCredentialRefresh
(t *testing.T)
server/server_test.go:172
FunctionTestNestedBeginDetection
(t *testing.T)
server/conn_test.go:555
FunctionTestNestedTypesRoundTrip
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
FunctionTestNetworkPolicyAllowsControlPlaneToReachWorkerGRPC
(t *testing.T)
tests/manifests/manifests_test.go:70
FunctionTestNetworkPolicyAllowsQueryLogKafkaTraffic
(t *testing.T)
tests/manifests/manifests_test.go:178
FunctionTestNetworkPolicyManifestRestrictsWorkerIngressAndEgressAndProtectsControlPlane
(t *testing.T)
k8s_manifest_test.go:64
FunctionTestNewACMEManagerCreatesCache
(t *testing.T)
server/tlscert/acme_test.go:9
FunctionTestNewACMEManagerDefaultCacheDir
(t *testing.T)
server/tlscert/acme_test.go:30
FunctionTestNewCipherRejectsBadKeys
(t *testing.T)
server/usersecrets/classify_test.go:236
FunctionTestNewControlPlaneFlightSQLHandlerReturnsError
(t *testing.T)
server/flightsqlingress/ingress_test.go:1707
FunctionTestNewFailsWhenBundledExtensionBootstrapFails
(t *testing.T)
server/server_test.go:134
FunctionTestNewFlightIngressAdapterValidation
(t *testing.T)
controlplane/flight_ingress_adapter_test.go:11
FunctionTestNewMemoryRebalancerDefaults
(t *testing.T)
controlplane/memory_rebalancer_test.go:69
FunctionTestNewQueryLogSinkDefaultsToDuckLake
(t *testing.T)
server/querylog_kafka_test.go:259
FunctionTestNewQueryLogSinkRejectsKafkaWithoutTopic
(t *testing.T)
server/querylog_kafka_test.go:275
FunctionTestNewRejectsACMEDNSProviderWithoutDomain
(t *testing.T)
server/server_test.go:529
FunctionTestNewRejectsUnsupportedACMEDNSProvider
(t *testing.T)
server/server_test.go:515
FunctionTestNewTestSnapshotPreservesFields
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
FunctionTestNewWorkerLeaseAllowsLegacyCallersWithoutImage
(t *testing.T)
controlplane/worker_lifecycle_test.go:323
FunctionTestNormalizeIdleTimeout
(t *testing.T)
server/server_test.go:16
FunctionTestNormalizeQueryHash
(t *testing.T)
server/querylog_test.go:53
FunctionTestObjectStoreParentPrefix
(t *testing.T)
server/ducklake/migration_test.go:414
FunctionTestObserveConnectionDurationRecordsPerOrgSample
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
FunctionTestObserveDrainTotalDuration
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:172
FunctionTestObserveHealthCheck
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:188
FunctionTestObserveLifecycleTransitionDuration_EmptyOperationIsDropped
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:97
FunctionTestObserveLifecycleTransitionDuration_NegativeDurationCoercedToZero
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:85
FunctionTestObserveLifecycleTransitionDuration_RecordsSample
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:73
FunctionTestObserveLifecycleTransition_EmptyOperationIsDropped
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:61
FunctionTestObserveLifecycleTransition_EmptyOutcomeFallsBackToStoreError
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:44
FunctionTestObserveLifecycleTransition_NormalizesEmptyOriginAndImage
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:28
FunctionTestObserveLifecycleTransition_RecordsLabels
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:10
FunctionTestObserveQueryOutcomeIncrementsCanonicalCounter
(t *testing.T)
server/query_metrics_test.go:45
FunctionTestObserveSpawnFailure
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:146
FunctionTestObserveStrandedPodReconciled
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:106
FunctionTestObserveStrandedSecretReconciled
(t *testing.T)
controlplane/worker_lifecycle_metrics_test.go:130
FunctionTestObserveWorkerLifecycleStatsSeedsZerosAndDeletesStaleImages
(t *testing.T)
controlplane/pool_metrics_test.go:225
FunctionTestOnConflictTransform_DataTypes
(t *testing.T)
transpiler/transform/onconflict_test.go:645
FunctionTestOnConflictTransform_DuckLakeMode_DoNothing
(t *testing.T)
transpiler/transform/onconflict_test.go:188
FunctionTestOnConflictTransform_DuckLakeMode_DoUpdate
(t *testing.T)
transpiler/transform/onconflict_test.go:61
FunctionTestOnConflictTransform_ExcludedAlias
(t *testing.T)
transpiler/transform/onconflict_test.go:586
← previousnext →4,701–4,800 of 5,901, ranked by callers