MCPcopy Create free account

hub / github.com/PostHog/duckgres / functions

Functions5,901 in github.com/PostHog/duckgres

FunctionTestQuerySourceMixedBatchWithNormalStatement
TestQuerySourceMixedBatchWithNormalStatement asserts a batch mixing the custom GUC with a normal statement (`SET duckgres.query_source='endpoints'; SE
server/query_source_test.go:183
FunctionTestQuerySourceStartupOption
TestQuerySourceStartupOption asserts a `-c duckgres.query_source=...` startup option is parsed into the map ParseStartupOptions returns (the value the
server/query_source_test.go:47
FunctionTestQuoteIdent
(t *testing.T)
server/ducklake/migration_test.go:264
FunctionTestQuotedIdentifiers
TestQuotedIdentifiers tests case-sensitive and reserved-word identifiers.
tests/integration/edge_cases_test.go:682
FunctionTestRBACIncludesQueryLogWriterAccess
(t *testing.T)
tests/manifests/manifests_test.go:155
FunctionTestRPCDurationMetricRecordsOnError
(t *testing.T)
server/flightsqlingress/ingress_test.go:1770
FunctionTestRateLimiter_BasicOperations
(t *testing.T)
server/auth/ratelimit_test.go:61
FunctionTestRateLimiter_ConnectionLimit
(t *testing.T)
server/auth/ratelimit_test.go:97
FunctionTestRateLimiter_DifferentIPs
(t *testing.T)
server/auth/ratelimit_test.go:226
FunctionTestRateLimiter_FailedAuth
(t *testing.T)
server/auth/ratelimit_test.go:140
FunctionTestRateLimiter_GlobalConnectionLimit
(t *testing.T)
server/auth/ratelimit_test.go:319
FunctionTestRateLimiter_NilAddr
(t *testing.T)
server/auth/ratelimit_test.go:257
FunctionTestRateLimiter_SuccessfulAuth
(t *testing.T)
server/auth/ratelimit_test.go:194
FunctionTestRateLimiter_UnlimitedConnections
(t *testing.T)
server/auth/ratelimit_test.go:298
FunctionTestRawSQLTransactionKeepsDrainOpenAfterFailedCommit
(t *testing.T)
duckdbservice/flight_handler_test.go:980
FunctionTestRawSQLTransactionKeepsDrainOpenUntilCommit
(t *testing.T)
duckdbservice/flight_handler_test.go:932
FunctionTestReadMessage
(t *testing.T)
server/protocol_test.go:115
FunctionTestReadMessageEmptyBody
(t *testing.T)
server/wire/protocol_test.go:144
FunctionTestReadMessageInvalidLength
Regression test for #715 (hardening half): malformed regular-message lengths must return an error, not panic in make().
server/wire/protocol_test.go:160
FunctionTestReadMessageValid
(t *testing.T)
server/wire/protocol_test.go:130
FunctionTestReadStartupFromRaw_CancelRequest
(t *testing.T)
controlplane/control_test.go:153
FunctionTestReadStartupFromRaw_EOF
(t *testing.T)
controlplane/control_test.go:199
FunctionTestReadStartupFromRaw_EOFNotTimeout
Verify that io.EOF from a closed connection is not misidentified as a timeout.
controlplane/control_test.go:256
FunctionTestReadStartupFromRaw_GSSENCRequest
(t *testing.T)
controlplane/control_test.go:117
FunctionTestReadStartupFromRaw_SSLRequest
(t *testing.T)
controlplane/control_test.go:55
FunctionTestReadStartupFromRaw_StartupTimeout
(t *testing.T)
controlplane/control_test.go:213
FunctionTestReadStartupFromRaw_UnknownProtocol
(t *testing.T)
controlplane/control_test.go:181
FunctionTestReadStartupMessage
(t *testing.T)
server/protocol_test.go:12
FunctionTestReadStartupMessageInvalidLength
Regression test for #715: malformed startup lengths must return an error, not panic with a negative/huge makeslice or an out-of-range slice. The start
server/wire/protocol_test.go:69
FunctionTestReadStartupMessageMaxLengthAccepted
(t *testing.T)
server/wire/protocol_test.go:97
FunctionTestReadStartupMessageSSLRequest
(t *testing.T)
server/wire/protocol_test.go:52
FunctionTestReadStartupMessageUnterminatedValue
Regression test: a startup parameter whose final value lacks a trailing NUL must NOT panic. The value-scan guard used `valEnd > len(data)`, so an unte
server/wire/protocol_test.go:114
FunctionTestReadStartupMessageValid
(t *testing.T)
server/wire/protocol_test.go:38
FunctionTestReadStartupWithGSSFallback
(t *testing.T)
controlplane/control_startup_test.go:18
FunctionTestReapAbandonedQueryHandleReleasesOperation
(t *testing.T)
duckdbservice/service_test.go:130
FunctionTestReapIdleRawSQLRollbackUsesBoundedContext
(t *testing.T)
duckdbservice/service_test.go:18
FunctionTestReapIdleRawSQLTransactionKeepsDrainWorkWhenConnWorkActive
(t *testing.T)
duckdbservice/service_test.go:721
FunctionTestReapIdleRawSQLTransactionKeepsDrainWorkWhenRollbackCannotRun
(t *testing.T)
duckdbservice/service_test.go:769
FunctionTestReapIdleRawSQLTransactionReleasesDrainWork
(t *testing.T)
duckdbservice/service_test.go:667
FunctionTestReapIdleReleasesAbandonedHandleDrains
A GetFlightInfo whose matching DoGet never arrives must not hold the drain open forever: the reaper releases drain tokens stranded on stale ad-hoc que
duckdbservice/service_test.go:1118
FunctionTestReapIdleTransactionsKeepsDrainWorkWhenTransactionActive
(t *testing.T)
duckdbservice/service_test.go:629
FunctionTestReapIdleTransactionsReleasesDrainWork
(t *testing.T)
duckdbservice/service_test.go:601
FunctionTestReapIdleWorkersPreservesIdleFloor
(t *testing.T)
controlplane/worker_mgr_process_test.go:1148
FunctionTestReapIdleWorkersReapsAllAboveMin
(t *testing.T)
controlplane/worker_mgr_process_test.go:1122
FunctionTestReapIdleWorkersRespectsMinWorkers
(t *testing.T)
controlplane/worker_mgr_process_test.go:1096
FunctionTestReapStuckActivatingWorkers
(t *testing.T)
controlplane/pool_metrics_test.go:173
FunctionTestReapStuckActivatingWorkers_RecentlyReservedNotReaped
(t *testing.T)
controlplane/pool_metrics_test.go:204
FunctionTestRecentErrorRingNewestFirstAndEviction
(t *testing.T)
server/recent_errors_test.go:11
FunctionTestRecentErrorRingNilSafe
(t *testing.T)
server/recent_errors_test.go:31
FunctionTestReconcileDeletingDeletesCR
(t *testing.T)
controlplane/provisioner/controller_test.go:594
FunctionTestReconcileDeletingFailureEmitsEvent
TestReconcileDeletingFailureEmitsEvent asserts that a non-NotFound error deleting the Duckling CR emits warehouse_deprovision_failed and leaves the wa
controlplane/provisioner/controller_analytics_test.go:259
FunctionTestReconcileDeletingRetriesOnNonNotFoundError
(t *testing.T)
controlplane/provisioner/controller_test.go:636
FunctionTestReconcileDeletingSuccessEmitsEvent
TestReconcileDeletingSuccessEmitsEvent asserts that a completed teardown emits exactly one warehouse_deprovision_success and no failure event.
controlplane/provisioner/controller_analytics_test.go:223
FunctionTestReconcileHeadroomCapBoundsSpawnStorm
The fleet-relative cap bounds a spawn storm: peak burst 50 with 20 live workers is capped at ceil(25% × 20) = 5 — fleet size is the CEILING, never the
controlplane/headroom_test.go:199
FunctionTestReconcileHeadroomCapFloorAllowsSmallFleetBurst
A small fleet still gets the cap floor, so a burst can raise slots to 4 even when 25% of the fleet would allow fewer.
controlplane/headroom_test.go:228
FunctionTestReconcileHeadroomDisabledDeletesPlaceholders
No placeholder PriorityClass configured = headroom disabled: existing placeholders converge to zero immediately (there is no other delete path).
controlplane/headroom_test.go:326
FunctionTestReconcileHeadroomFollowsSpawnBurst
The slot count follows the peak spawn burst and the slot size follows the largest recently spawned shape — the two dynamic signals.
controlplane/headroom_test.go:129
FunctionTestReconcileHeadroomFreshClusterFallsBackToDefaultShape
With no spawns AND no live workers (fresh cluster), the slot shape falls back to the pool's configured worker request.
controlplane/headroom_test.go:177
FunctionTestReconcileHeadroomIdleFloorsAtOne
An idle pool (no recent spawns) keeps exactly the floor: one warm slot, never zero while enabled, sized from the live fleet when the spawn window is e
controlplane/headroom_test.go:157
FunctionTestReconcileHeadroomReplacesShapeDriftedPlaceholders
Placeholders whose shape drifted beyond the tolerance are replaced with the new shape in the same tick (capacity refresh — no scale-down hysteresis).
controlplane/headroom_test.go:287
FunctionTestReconcileHeadroomScaleDownIsLazy
Scale-down is lazy: above-target placeholders are removed one per headroomScaleDownDelay, not all at once, and only after the target has stayed lower
controlplane/headroom_test.go:244
FunctionTestReconcileHeadroomStatsErrorSkipsTick
A transient spawn-stats error skips the tick without touching pods.
controlplane/headroom_test.go:343
FunctionTestReconcilePendingCreatesCR
(t *testing.T)
controlplane/provisioner/controller_test.go:116
FunctionTestReconcilePendingCreatesCnpgShardCR
--- cnpg-shard metadata store --- TestReconcilePendingCreatesCnpgShardCR verifies that a warehouse whose metadata-store kind is cnpg-shard produces a
controlplane/provisioner/controller_test.go:766
FunctionTestReconcilePendingCreatesDuckLakeExternalCR
--- external metadata store (ducklake+external) --- TestReconcilePendingCreatesDuckLakeExternalCR verifies a warehouse with an external metadata store
controlplane/provisioner/controller_test.go:911
FunctionTestReconcilePendingEmitsPgBouncerBlock
(t *testing.T)
controlplane/provisioner/controller_test.go:178
FunctionTestReconcileProvisioningAllReady
(t *testing.T)
controlplane/provisioner/controller_test.go:356
FunctionTestReconcileProvisioningCnpgShardReadiness
TestReconcileProvisioningCnpgShardReadiness verifies a cnpg-shard warehouse flips to Ready once the Duckling infra is ready. (Readiness previously als
controlplane/provisioner/controller_test.go:844
FunctionTestReconcileProvisioningCrossplaneFailureEmitsFailure
TestReconcileProvisioningCrossplaneFailureEmitsFailure asserts that a persistent Crossplane sync failure (>10 min) emits warehouse_provision_failed wi
controlplane/provisioner/controller_analytics_test.go:179
FunctionTestReconcileProvisioningProbeFailsKeepsProvisioning
TestReconcileProvisioningProbeFailsKeepsProvisioning verifies the controller stays in the Provisioning state when the metadata-store probe fails — the
controlplane/provisioner/controller_test.go:442
FunctionTestReconcileProvisioningProbesPgBouncerWhenEnabled
TestReconcileProvisioningProbesPgBouncerWhenEnabled asserts that warehouses with pgbouncer.enabled=true have their end-to-end probe directed at the pg
controlplane/provisioner/controller_test.go:532
FunctionTestReconcileProvisioningSuccessEmitsEvent
TestReconcileProvisioningSuccessEmitsEvent asserts that the warehouse reaching Ready emits a single warehouse_provision_success carrying the warehouse
controlplane/provisioner/controller_analytics_test.go:77
FunctionTestReconcileProvisioningTimeoutEmitsFailure
TestReconcileProvisioningTimeoutEmitsFailure asserts the 30-minute timeout path emits warehouse_provision_failed with reason=provisioning_timeout.
controlplane/provisioner/controller_analytics_test.go:146
FunctionTestReconcileReadyNoDriftDoesNotPatch
(t *testing.T)
controlplane/provisioner/controller_test.go:315
FunctionTestReconcileReadyPatchesCRWhenPgBouncerFlippedOff
(t *testing.T)
controlplane/provisioner/controller_test.go:269
FunctionTestReconcileReadyPatchesCRWhenPgBouncerFlippedOn
(t *testing.T)
controlplane/provisioner/controller_test.go:213
FunctionTestReconcileUsesStoredDucklingName
TestReconcileUsesStoredDucklingName verifies the controller addresses the Duckling CR by the warehouse row's stored duckling_name — not anything deriv
controlplane/provisioner/controller_test.go:1040
FunctionTestReconnectFlightSessionStaleOwnerEpochReleasesAdmittedVCPU
(t *testing.T)
controlplane/org_reserved_pool_reconnect_test.go:196
FunctionTestReconnectFlightWorkerClaimsSession
Audit H2 regression test. Every acquisition path pre-claims the session on the pool-side worker accounting (claimSessionLocked / activeSessions++) be
controlplane/org_reserved_pool_reconnect_test.go:51
FunctionTestReconnectFlightWorkerUsesPersistedProfile
(t *testing.T)
controlplane/org_reserved_pool_reconnect_test.go:122
FunctionTestRecordFailedAuthAttemptIncrementsMetricAndBans
(t *testing.T)
server/auth/policy_test.go:49
FunctionTestRecordSpawnForHeadroom
The spawn path logs each pod's shape best-effort for the headroom sizing.
controlplane/headroom_test.go:420
FunctionTestRecoverAbortedTransactionRetriesAfterRollbackInAutocommit
(t *testing.T)
server/transient_test.go:206
FunctionTestRecoverAbortedTransactionRetriesAfterRollbackInAutocommit
(t *testing.T)
duckdbservice/transient_test.go:213
FunctionTestRecoverAbortedTransactionReturnsRollbackFailure
(t *testing.T)
server/transient_test.go:272
FunctionTestRecoverAbortedTransactionReturnsRollbackFailure
(t *testing.T)
duckdbservice/transient_test.go:279
FunctionTestRecoverAbortedTransactionSkipsRecoveryInsideUserTransaction
(t *testing.T)
server/transient_test.go:240
FunctionTestRecoverAbortedTransactionSkipsRecoveryInsideUserTransaction
(t *testing.T)
duckdbservice/transient_test.go:247
FunctionTestRecoverWorkerPanic_NilPointer
(t *testing.T)
controlplane/session_mgr_test.go:336
FunctionTestRecoverWorkerPanic_NonNilPointerRePanics
(t *testing.T)
controlplane/session_mgr_test.go:353
FunctionTestRecoverWorkerPanic_RuntimeErrorRePanics
(t *testing.T)
controlplane/session_mgr_test.go:374
FunctionTestRedactConnectionString
(t *testing.T)
server/conn_test.go:437
FunctionTestRedactErrorForLog
(t *testing.T)
server/usersecrets/redact_test.go:97
FunctionTestRedactForArtifactRemovesPasswordsAndSecrets
(t *testing.T)
tests/scenario/provision/client_test.go:76
FunctionTestRedactForLog
(t *testing.T)
server/usersecrets/classify_test.go:139
FunctionTestRedactForLogNonLeadingSecretDDL
(t *testing.T)
server/usersecrets/redact_test.go:12
FunctionTestRedactQueryLogWriterErrorScrubsAttachAndSecretMaterial
(t *testing.T)
server/querylog_kafka_writer_test.go:283
FunctionTestRedactingHandler
(t *testing.T)
internal/cliboot/logging_test.go:64
FunctionTestRefreshLeasePropagatesEpochMismatch
(t *testing.T)
controlplane/worker_lifecycle_test.go:382
FunctionTestRefreshLeaseReturnsBumpedLease
(t *testing.T)
controlplane/worker_lifecycle_test.go:362
← previousnext →5,101–5,200 of 5,901, ranked by callers