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
TestClaimHotIdleWorkerSerializesOrgCapPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:694
Function
TestClassifierCovers_FuncAliasMappings
(t *testing.T)
transpiler/transpiler_test.go:4695
Function
TestClassifierCovers_FunctionMappings
--- Classifier Coverage Safety Net --- These tests verify that Classify() detects all function/macro names registered in the transform package. If a n
transpiler/transpiler_test.go:4674
Function
TestClassifierCovers_PgCatalogFunctions
(t *testing.T)
transpiler/transpiler_test.go:4710
Function
TestClassifierCovers_PgCatalogViews
(t *testing.T)
transpiler/transpiler_test.go:4993
Function
TestClassifierCovers_SpecialFunctions
(t *testing.T)
transpiler/transpiler_test.go:4726
Function
TestClassify
(t *testing.T)
server/usersecrets/classify_test.go:5
Function
TestClassifyErrorCode
(t *testing.T)
server/transient_test.go:303
Function
TestClassifyErrorCodeAgainstRealDuckDB
TestClassifyErrorCodeAgainstRealDuckDB drives queries that reliably produce each error prefix the classifier branches on, against a real in-memory Duc
server/transient_test.go:444
Function
TestClassifyQuery
(t *testing.T)
server/querylog_test.go:11
Function
TestClassifySnapshotMissUsesGenericSnapshotOutcome
(t *testing.T)
controlplane/worker_lifecycle_test.go:333
Function
TestClassifyWiring_BooleanPredicateParens
Fix 22: the boolean-predicate gate must match parenthesized literals, including interleaved parens and spaces.
transpiler/classify_wiring_test.go:332
Function
TestClassifyWiring_BraceLiteralCastSpelling
Fix 11: CAST('{1,2,3}' AS int[]) must trigger the array-literal rewrite like the '{1,2,3}'::int[] spelling does.
transpiler/classify_wiring_test.go:157
Function
TestClassifyWiring_ByteaHexLiteralSpellings
Fix 2: E-string and dollar-quoted bytea hex literals must set FlagLiterals — the old `'\X` signature only matched the plain-quoted spelling, silently
transpiler/classify_wiring_test.go:92
Function
TestClassifyWiring_CurrentCatalogSchemaKeyword
Fix 23: keyword (paren-less) CURRENT_CATALOG / CURRENT_SCHEMA must be flagged so the deparse pass lowercases them (PG-compatible result column names).
transpiler/classify_wiring_test.go:313
Function
TestClassifyWiring_GeometricRangeTypeTokens
Fix 10: geometric/range/multirange/timestampntz/rowversion types mapped in types.go need Classify tokens so they ever reach TypeMappingTransform.
transpiler/classify_wiring_test.go:112
Function
TestClassifyWiring_OnConflictWhitespace
Fix 20: ON\nCONFLICT must flag FlagOnConflict (bare CONFLICT token).
transpiler/classify_wiring_test.go:268
Function
TestClassifyWiring_PrefixWordBoundary
Fix 13: SET/SHOW/RESET/DISCARD/BEGIN/START prefix detection must use word boundaries, not a literal trailing space.
transpiler/classify_wiring_test.go:216
Function
TestClassifyWiring_RegCastSpellings
Fix 1: CAST(x AS regtype/regclass/...) and ::regoper/::regconfig/::regdictionary must reach TypeCastTransform, not just the ::regtype-style spellings.
transpiler/classify_wiring_test.go:47
Function
TestClassifyWiring_SpaceBeforeParen
Fix 21: whitespace between a function name and '(' must not defeat paren-suffixed tokens (Tier-0 escape; regexp_matches silently diverges).
transpiler/classify_wiring_test.go:289
Function
TestClassifyWiring_WhitespaceNormalizedTokens
Fix 12: multi-word and trailing-space tokens must match newline/tab/multi-space spellings via whitespace normalization, per token (an unrelated flag r
transpiler/classify_wiring_test.go:181
Function
TestClassifyWiring_WritableCTEBareTokens
Fix 18: writable-CTE gate tokens must be bare keywords — DELETE\nFROM inside a CTE and minified WITH"d"AS(...) have no space after the keyword.
transpiler/classify_wiring_test.go:245
Function
TestClassify_Direct
--- Three-Tier Intercept Tests ---
transpiler/transpiler_test.go:4372
Function
TestClassify_DuckLakeMode
(t *testing.T)
transpiler/transpiler_test.go:4521
Function
TestClassify_LogicalCatalogMapping_DuckLakeMode
(t *testing.T)
transpiler/transpiler_test.go:4509
Function
TestClassify_NeedsTransform
(t *testing.T)
transpiler/transpiler_test.go:4440
Function
TestCleanDeadWorkersLocked
(t *testing.T)
controlplane/worker_mgr_process_test.go:655
Function
TestCleanupOrphanedWorkerPods_DeletesPodWhenDBRecordMissing
(t *testing.T)
controlplane/k8s_pool_test.go:3879
Function
TestCleanupOrphanedWorkerPods_DeletesPodWhenDBStateLost
(t *testing.T)
controlplane/k8s_pool_test.go:3859
Function
TestCleanupOrphanedWorkerPods_DeletesPodWhenDBStateRetired
(t *testing.T)
controlplane/k8s_pool_test.go:3827
Function
TestCleanupOrphanedWorkerPods_IgnoresNonWorkerPods
(t *testing.T)
controlplane/k8s_pool_test.go:3973
Function
TestCleanupOrphanedWorkerPods_LeavesLivePodAlone
(t *testing.T)
controlplane/k8s_pool_test.go:3905
Function
TestCleanupOrphanedWorkerPods_SkipsYoungPod
(t *testing.T)
controlplane/k8s_pool_test.go:3926
Function
TestCleanupOrphanedWorkerPods_TreatsNotFoundAsSuccess
(t *testing.T)
controlplane/k8s_pool_test.go:3942
Function
TestCleanupOrphanedWorkerSecrets_DeletesSecretsWithoutPods
(t *testing.T)
controlplane/k8s_pool_test.go:4000
Function
TestCleanupOrphanedWorkerSecrets_KeepsSecretsForLivePods
(t *testing.T)
controlplane/k8s_pool_test.go:4037
Function
TestCleanupOrphanedWorkerSecrets_OnlyReapsOwnControlPlane
(t *testing.T)
controlplane/k8s_pool_test.go:4110
Function
TestCleanupOrphanedWorkerSecrets_RespectsMinAge
(t *testing.T)
controlplane/k8s_pool_test.go:4141
Function
TestCleanupOrphanedWorkerSecrets_SkipsEmptyPodLabel
(t *testing.T)
controlplane/k8s_pool_test.go:4078
Function
TestCleanupSessionState
(t *testing.T)
duckdbservice/service_test.go:281
Function
TestClickHouseMacros
(t *testing.T)
server/chsql_test.go:11
Function
TestClickHouseMacros_GenerateUUIDv4
(t *testing.T)
server/chsql_test.go:89
Function
TestClickHouseMacros_SplitByChar
(t *testing.T)
server/chsql_test.go:70
Function
TestClientClassifiesHTTPFailuresAndRedactsBody
(t *testing.T)
tests/scenario/provision/client_test.go:241
Function
TestClientDeprovisionSendsExpectedRequest
(t *testing.T)
tests/scenario/provision/client_test.go:207
Function
TestClientProvisionSendsExpectedRequestAndPreservesPassword
(t *testing.T)
tests/scenario/provision/client_test.go:14
Function
TestClientWaitPreservesContextCancellation
(t *testing.T)
tests/scenario/provision/client_test.go:275
Function
TestClientWaitWarehouseDeletedReportsTimeout
(t *testing.T)
tests/scenario/provision/client_test.go:303
Function
TestClientWaitWarehouseReadyFailsFastOnFailed
(t *testing.T)
tests/scenario/provision/client_test.go:174
Function
TestClientWaitWarehouseReadyPollsUntilReady
(t *testing.T)
tests/scenario/provision/client_test.go:112
Function
TestCloseAllPreboundClosesListeners
(t *testing.T)
controlplane/worker_mgr_process_test.go:948
Function
TestCloseAllWaitsForAcceptedConnectionWorkBeforeClose
(t *testing.T)
duckdbservice/service_test.go:1066
Function
TestCloseAllWaitsForActiveConnectionWorkBeforeClose
(t *testing.T)
duckdbservice/service_test.go:1020
Function
TestCloseClosesClient
(t *testing.T)
internal/analytics/analytics_test.go:67
Function
TestCloseConnectionMetricsReturnsLifetime
CloseConnectionMetrics must return the elapsed connection lifetime measured from backendStart so the control plane can log duration_ms. The histogram
server/conn_duration_test.go:12
Function
TestCloseCursorsAtTxEnd
closeCursorsAtTxEnd must release open cursors BEFORE a COMMIT/ROLLBACK executes: an open cursor rowset holds the session's only DuckDB connection (ope
server/conn_cursor_test.go:11
Function
TestCloseFlightSessionRecordIfReconnectTargetUnchangedPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:1973
Function
TestCloseSessionDoesNotReissueSessionTokenMetadata
(t *testing.T)
server/flightsqlingress/ingress_test.go:1663
Function
TestCloseSessionMissingTokenDoesNotBootstrap
(t *testing.T)
server/flightsqlingress/ingress_test.go:1589
Function
TestCloseSessionRevokesTokenAndDestroysWorker
(t *testing.T)
server/flightsqlingress/ingress_test.go:1535
Function
TestCloseSessionTokenOnlyRevokesTokenAndDoesNotBootstrap
(t *testing.T)
server/flightsqlingress/ingress_test.go:1616
Function
TestClusterEventsProjection
(t *testing.T)
controlplane/admin/cluster_test.go:172
Function
TestClusterNodepoolsAbsentDegradesToEmpty
TestClusterNodepoolsAbsentDegradesToEmpty asserts the karpenter passthrough returns an empty list (not a 500) when the CRD isn't installed — the fake
controlplane/admin/cluster_test.go:287
Function
TestClusterNodesForbiddenDegradesToEmpty
TestClusterNodesForbiddenDegradesToEmpty asserts an RBAC Forbidden from the API server yields a 200 empty list (not a 500) — the view shows nothing ra
controlplane/admin/cluster_test.go:204
Function
TestClusterNodesProjection
(t *testing.T)
controlplane/admin/cluster_test.go:48
Function
TestClusterPodsProjection
(t *testing.T)
controlplane/admin/cluster_test.go:109
Function
TestClusterSummary
TestClusterSummary asserts the aggregated nav totals: worker vs placeholder pods are counted separately with their CPU/mem request sums, control-plane
controlplane/admin/cluster_test.go:222
Function
TestCnpgShardFromEndpoint
TestCnpgShardFromEndpoint pins the shard-name extraction: the first DNS label minus the CloudNativePG service-role suffix, degrading to the bare label
controlplane/admin/ducklings_metadata_test.go:19
Function
TestCompatMacros_BatchA
(t *testing.T)
server/pg_compat_macros_test.go:49
Function
TestCompatMacros_BatchB
(t *testing.T)
server/pg_compat_macros_test.go:131
Function
TestCompatMacros_BatchC
(t *testing.T)
server/pg_compat_macros_test.go:177
Function
TestCompatTableMacros_BatchD
Batch D — set-returning table macros, exercised in FROM position and reduced to a single scalar so they reuse runMacroCases.
server/pg_compat_macros_test.go:201
Function
TestCompatTransforms_ArrayPositionStart
(t *testing.T)
server/pg_compat_transforms2_test.go:107
Function
TestCompatTransforms_BatchE
(t *testing.T)
server/pg_compat_transforms_test.go:58
Function
TestCompatTransforms_FormatUnsupportedSpecErrors
Unsupported format() specs must hard-error, not silently return the template unsubstituted (DuckDB's native format behavior — the corruption mode the
server/pg_compat_transforms_test.go:109
Function
TestCompatTransforms_JSONExtractPathVariadic
These tests cover the wiring-gap fixes for functions.go / catalog.go: variadic json_extract_path*, regexp_match(es) flags, precision-form SQLValueFunc
server/pg_compat_transforms2_test.go:18
Function
TestCompatTransforms_JSONTypeofVocabulary
(t *testing.T)
server/pg_compat_transforms2_test.go:160
Function
TestCompatTransforms_PrecisionSQLValueFunctions
Precision forms LOCALTIME(p)/LOCALTIMESTAMP(p)/CURRENT_TIME(p)/CURRENT_TIMESTAMP(p) parse as SQLValueFunction nodes; they must be rewritten to the bar
server/pg_compat_transforms2_test.go:54
Function
TestCompatTransforms_RegexpMatchFlags
(t *testing.T)
server/pg_compat_transforms2_test.go:32
Function
TestCompatTransforms_StringToArrayNullStr
(t *testing.T)
server/pg_compat_transforms2_test.go:96
Function
TestCompatTransforms_Timeofday
timeofday() must return PG-shaped text like "Tue Jun 09 13:17:57.627882 2026 America/Los_Angeles" — the old mapping to a nonexistent scalar "current_t
server/pg_compat_transforms2_test.go:124
Function
TestComputeConnectionUsage
(t *testing.T)
controlplane/compute_meter_test.go:12
Function
TestComputeMeterFlush
(t *testing.T)
controlplane/compute_meter_test.go:156
Function
TestComputeMeterFlushErrorIsBestEffort
(t *testing.T)
controlplane/compute_meter_test.go:192
Function
TestComputeMeterRecordNeverPanicsOnNilOrDisabled
(t *testing.T)
controlplane/compute_meter_test.go:200
Function
TestComputeMeterRunFinalFlushOnCancel
(t *testing.T)
controlplane/compute_meter_test.go:217
Function
TestComputeMeterUnknownTeamTolerated
(t *testing.T)
controlplane/compute_meter_test.go:178
Function
TestComputeUsageCounterBucketing
(t *testing.T)
controlplane/compute_meter_test.go:64
Function
TestComputeUsageCounterRemainderCarry
(t *testing.T)
controlplane/compute_meter_test.go:110
Function
TestComputeUsageGCRunsAndStops
(t *testing.T)
controlplane/compute_billing_api_test.go:269
Function
TestConcurrentActivateTenantSamePayloadBothSucceed
TestConcurrentActivateTenantSamePayloadBothSucceed reproduces the rollout-race seen on dev 2026-05-05: a single CP can issue two ActivateTenant RPCs c
duckdbservice/activation_test.go:593
Function
TestConcurrentConnections
TestConcurrentConnections tests multiple connections operating simultaneously.
tests/integration/edge_cases_test.go:12
Function
TestConcurrentFirstConnections
TestConcurrentFirstConnections verifies that multiple connections arriving simultaneously at a freshly-started control plane all succeed. This is a re
tests/controlplane/controlplane_test.go:776
Function
TestConcurrentTakeReturn
(t *testing.T)
controlplane/worker_mgr_process_test.go:1062
Function
TestConfigStoreRunsVersionedSQLMigrations
(t *testing.T)
tests/configstore/migrations_postgres_test.go:18
Function
TestConfigStoreSQLMigrationsMatchGORMModelMetadata
(t *testing.T)
tests/configstore/migrations_postgres_test.go:324
Function
TestConfigStoreSQLMigrationsUpgradeLegacyOrgUsersUsernamePK
(t *testing.T)
tests/configstore/migrations_postgres_test.go:242
Function
TestConfigStoreSQLMigrationsUpgradeOldOrgSchema
(t *testing.T)
tests/configstore/migrations_postgres_test.go:180
Function
TestConfigStoreSQLMigrationsUpgradeVersion8Schema
(t *testing.T)
tests/configstore/migrations_postgres_test.go:102
Function
TestConfigureDuckLakeMetadataPoolRunsExpectedStatement
(t *testing.T)
server/server_test.go:359
← previous
next →
3,901–4,000 of 5,901, ranked by callers