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
TestQuerySourceMixedBatchWithNormalStatement
TestQuerySourceMixedBatchWithNormalStatement asserts a batch mixing the custom GUC with a normal statement (`SET duckgres.query_source='endpoints'; SE
server/query_source_test.go:183
Function
TestQuerySourceStartupOption
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
Function
TestQuoteIdent
(t *testing.T)
server/ducklake/migration_test.go:264
Function
TestQuotedIdentifiers
TestQuotedIdentifiers tests case-sensitive and reserved-word identifiers.
tests/integration/edge_cases_test.go:682
Function
TestRBACIncludesQueryLogWriterAccess
(t *testing.T)
tests/manifests/manifests_test.go:155
Function
TestRPCDurationMetricRecordsOnError
(t *testing.T)
server/flightsqlingress/ingress_test.go:1770
Function
TestRateLimiter_BasicOperations
(t *testing.T)
server/auth/ratelimit_test.go:61
Function
TestRateLimiter_ConnectionLimit
(t *testing.T)
server/auth/ratelimit_test.go:97
Function
TestRateLimiter_DifferentIPs
(t *testing.T)
server/auth/ratelimit_test.go:226
Function
TestRateLimiter_FailedAuth
(t *testing.T)
server/auth/ratelimit_test.go:140
Function
TestRateLimiter_GlobalConnectionLimit
(t *testing.T)
server/auth/ratelimit_test.go:319
Function
TestRateLimiter_NilAddr
(t *testing.T)
server/auth/ratelimit_test.go:257
Function
TestRateLimiter_SuccessfulAuth
(t *testing.T)
server/auth/ratelimit_test.go:194
Function
TestRateLimiter_UnlimitedConnections
(t *testing.T)
server/auth/ratelimit_test.go:298
Function
TestRawSQLTransactionKeepsDrainOpenAfterFailedCommit
(t *testing.T)
duckdbservice/flight_handler_test.go:980
Function
TestRawSQLTransactionKeepsDrainOpenUntilCommit
(t *testing.T)
duckdbservice/flight_handler_test.go:932
Function
TestReadMessage
(t *testing.T)
server/protocol_test.go:115
Function
TestReadMessageEmptyBody
(t *testing.T)
server/wire/protocol_test.go:144
Function
TestReadMessageInvalidLength
Regression test for #715 (hardening half): malformed regular-message lengths must return an error, not panic in make().
server/wire/protocol_test.go:160
Function
TestReadMessageValid
(t *testing.T)
server/wire/protocol_test.go:130
Function
TestReadStartupFromRaw_CancelRequest
(t *testing.T)
controlplane/control_test.go:153
Function
TestReadStartupFromRaw_EOF
(t *testing.T)
controlplane/control_test.go:199
Function
TestReadStartupFromRaw_EOFNotTimeout
Verify that io.EOF from a closed connection is not misidentified as a timeout.
controlplane/control_test.go:256
Function
TestReadStartupFromRaw_GSSENCRequest
(t *testing.T)
controlplane/control_test.go:117
Function
TestReadStartupFromRaw_SSLRequest
(t *testing.T)
controlplane/control_test.go:55
Function
TestReadStartupFromRaw_StartupTimeout
(t *testing.T)
controlplane/control_test.go:213
Function
TestReadStartupFromRaw_UnknownProtocol
(t *testing.T)
controlplane/control_test.go:181
Function
TestReadStartupMessage
(t *testing.T)
server/protocol_test.go:12
Function
TestReadStartupMessageInvalidLength
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
Function
TestReadStartupMessageMaxLengthAccepted
(t *testing.T)
server/wire/protocol_test.go:97
Function
TestReadStartupMessageSSLRequest
(t *testing.T)
server/wire/protocol_test.go:52
Function
TestReadStartupMessageUnterminatedValue
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
Function
TestReadStartupMessageValid
(t *testing.T)
server/wire/protocol_test.go:38
Function
TestReadStartupWithGSSFallback
(t *testing.T)
controlplane/control_startup_test.go:18
Function
TestReapAbandonedQueryHandleReleasesOperation
(t *testing.T)
duckdbservice/service_test.go:130
Function
TestReapIdleRawSQLRollbackUsesBoundedContext
(t *testing.T)
duckdbservice/service_test.go:18
Function
TestReapIdleRawSQLTransactionKeepsDrainWorkWhenConnWorkActive
(t *testing.T)
duckdbservice/service_test.go:721
Function
TestReapIdleRawSQLTransactionKeepsDrainWorkWhenRollbackCannotRun
(t *testing.T)
duckdbservice/service_test.go:769
Function
TestReapIdleRawSQLTransactionReleasesDrainWork
(t *testing.T)
duckdbservice/service_test.go:667
Function
TestReapIdleReleasesAbandonedHandleDrains
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
Function
TestReapIdleTransactionsKeepsDrainWorkWhenTransactionActive
(t *testing.T)
duckdbservice/service_test.go:629
Function
TestReapIdleTransactionsReleasesDrainWork
(t *testing.T)
duckdbservice/service_test.go:601
Function
TestReapIdleWorkersPreservesIdleFloor
(t *testing.T)
controlplane/worker_mgr_process_test.go:1148
Function
TestReapIdleWorkersReapsAllAboveMin
(t *testing.T)
controlplane/worker_mgr_process_test.go:1122
Function
TestReapIdleWorkersRespectsMinWorkers
(t *testing.T)
controlplane/worker_mgr_process_test.go:1096
Function
TestReapStuckActivatingWorkers
(t *testing.T)
controlplane/pool_metrics_test.go:173
Function
TestReapStuckActivatingWorkers_RecentlyReservedNotReaped
(t *testing.T)
controlplane/pool_metrics_test.go:204
Function
TestRecentErrorRingNewestFirstAndEviction
(t *testing.T)
server/recent_errors_test.go:11
Function
TestRecentErrorRingNilSafe
(t *testing.T)
server/recent_errors_test.go:31
Function
TestReconcileDeletingDeletesCR
(t *testing.T)
controlplane/provisioner/controller_test.go:594
Function
TestReconcileDeletingFailureEmitsEvent
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
Function
TestReconcileDeletingRetriesOnNonNotFoundError
(t *testing.T)
controlplane/provisioner/controller_test.go:636
Function
TestReconcileDeletingSuccessEmitsEvent
TestReconcileDeletingSuccessEmitsEvent asserts that a completed teardown emits exactly one warehouse_deprovision_success and no failure event.
controlplane/provisioner/controller_analytics_test.go:223
Function
TestReconcileHeadroomCapBoundsSpawnStorm
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
Function
TestReconcileHeadroomCapFloorAllowsSmallFleetBurst
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
Function
TestReconcileHeadroomDisabledDeletesPlaceholders
No placeholder PriorityClass configured = headroom disabled: existing placeholders converge to zero immediately (there is no other delete path).
controlplane/headroom_test.go:326
Function
TestReconcileHeadroomFollowsSpawnBurst
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
Function
TestReconcileHeadroomFreshClusterFallsBackToDefaultShape
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
Function
TestReconcileHeadroomIdleFloorsAtOne
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
Function
TestReconcileHeadroomReplacesShapeDriftedPlaceholders
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
Function
TestReconcileHeadroomScaleDownIsLazy
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
Function
TestReconcileHeadroomStatsErrorSkipsTick
A transient spawn-stats error skips the tick without touching pods.
controlplane/headroom_test.go:343
Function
TestReconcilePendingCreatesCR
(t *testing.T)
controlplane/provisioner/controller_test.go:116
Function
TestReconcilePendingCreatesCnpgShardCR
--- cnpg-shard metadata store --- TestReconcilePendingCreatesCnpgShardCR verifies that a warehouse whose metadata-store kind is cnpg-shard produces a
controlplane/provisioner/controller_test.go:766
Function
TestReconcilePendingCreatesDuckLakeExternalCR
--- external metadata store (ducklake+external) --- TestReconcilePendingCreatesDuckLakeExternalCR verifies a warehouse with an external metadata store
controlplane/provisioner/controller_test.go:911
Function
TestReconcilePendingEmitsPgBouncerBlock
(t *testing.T)
controlplane/provisioner/controller_test.go:178
Function
TestReconcileProvisioningAllReady
(t *testing.T)
controlplane/provisioner/controller_test.go:356
Function
TestReconcileProvisioningCnpgShardReadiness
TestReconcileProvisioningCnpgShardReadiness verifies a cnpg-shard warehouse flips to Ready once the Duckling infra is ready. (Readiness previously als
controlplane/provisioner/controller_test.go:844
Function
TestReconcileProvisioningCrossplaneFailureEmitsFailure
TestReconcileProvisioningCrossplaneFailureEmitsFailure asserts that a persistent Crossplane sync failure (>10 min) emits warehouse_provision_failed wi
controlplane/provisioner/controller_analytics_test.go:179
Function
TestReconcileProvisioningProbeFailsKeepsProvisioning
TestReconcileProvisioningProbeFailsKeepsProvisioning verifies the controller stays in the Provisioning state when the metadata-store probe fails — the
controlplane/provisioner/controller_test.go:442
Function
TestReconcileProvisioningProbesPgBouncerWhenEnabled
TestReconcileProvisioningProbesPgBouncerWhenEnabled asserts that warehouses with pgbouncer.enabled=true have their end-to-end probe directed at the pg
controlplane/provisioner/controller_test.go:532
Function
TestReconcileProvisioningSuccessEmitsEvent
TestReconcileProvisioningSuccessEmitsEvent asserts that the warehouse reaching Ready emits a single warehouse_provision_success carrying the warehouse
controlplane/provisioner/controller_analytics_test.go:77
Function
TestReconcileProvisioningTimeoutEmitsFailure
TestReconcileProvisioningTimeoutEmitsFailure asserts the 30-minute timeout path emits warehouse_provision_failed with reason=provisioning_timeout.
controlplane/provisioner/controller_analytics_test.go:146
Function
TestReconcileReadyNoDriftDoesNotPatch
(t *testing.T)
controlplane/provisioner/controller_test.go:315
Function
TestReconcileReadyPatchesCRWhenPgBouncerFlippedOff
(t *testing.T)
controlplane/provisioner/controller_test.go:269
Function
TestReconcileReadyPatchesCRWhenPgBouncerFlippedOn
(t *testing.T)
controlplane/provisioner/controller_test.go:213
Function
TestReconcileUsesStoredDucklingName
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
Function
TestReconnectFlightSessionStaleOwnerEpochReleasesAdmittedVCPU
(t *testing.T)
controlplane/org_reserved_pool_reconnect_test.go:196
Function
TestReconnectFlightWorkerClaimsSession
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
Function
TestReconnectFlightWorkerUsesPersistedProfile
(t *testing.T)
controlplane/org_reserved_pool_reconnect_test.go:122
Function
TestRecordFailedAuthAttemptIncrementsMetricAndBans
(t *testing.T)
server/auth/policy_test.go:49
Function
TestRecordSpawnForHeadroom
The spawn path logs each pod's shape best-effort for the headroom sizing.
controlplane/headroom_test.go:420
Function
TestRecoverAbortedTransactionRetriesAfterRollbackInAutocommit
(t *testing.T)
server/transient_test.go:206
Function
TestRecoverAbortedTransactionRetriesAfterRollbackInAutocommit
(t *testing.T)
duckdbservice/transient_test.go:213
Function
TestRecoverAbortedTransactionReturnsRollbackFailure
(t *testing.T)
server/transient_test.go:272
Function
TestRecoverAbortedTransactionReturnsRollbackFailure
(t *testing.T)
duckdbservice/transient_test.go:279
Function
TestRecoverAbortedTransactionSkipsRecoveryInsideUserTransaction
(t *testing.T)
server/transient_test.go:240
Function
TestRecoverAbortedTransactionSkipsRecoveryInsideUserTransaction
(t *testing.T)
duckdbservice/transient_test.go:247
Function
TestRecoverWorkerPanic_NilPointer
(t *testing.T)
controlplane/session_mgr_test.go:336
Function
TestRecoverWorkerPanic_NonNilPointerRePanics
(t *testing.T)
controlplane/session_mgr_test.go:353
Function
TestRecoverWorkerPanic_RuntimeErrorRePanics
(t *testing.T)
controlplane/session_mgr_test.go:374
Function
TestRedactConnectionString
(t *testing.T)
server/conn_test.go:437
Function
TestRedactErrorForLog
(t *testing.T)
server/usersecrets/redact_test.go:97
Function
TestRedactForArtifactRemovesPasswordsAndSecrets
(t *testing.T)
tests/scenario/provision/client_test.go:76
Function
TestRedactForLog
(t *testing.T)
server/usersecrets/classify_test.go:139
Function
TestRedactForLogNonLeadingSecretDDL
(t *testing.T)
server/usersecrets/redact_test.go:12
Function
TestRedactQueryLogWriterErrorScrubsAttachAndSecretMaterial
(t *testing.T)
server/querylog_kafka_writer_test.go:283
Function
TestRedactingHandler
(t *testing.T)
internal/cliboot/logging_test.go:64
Function
TestRefreshLeasePropagatesEpochMismatch
(t *testing.T)
controlplane/worker_lifecycle_test.go:382
Function
TestRefreshLeaseReturnsBumpedLease
(t *testing.T)
controlplane/worker_lifecycle_test.go:362
← previous
next →
5,101–5,200 of 5,901, ranked by callers