Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
28,840 in github.com/PerpetualSoftware/pad
⨍
Functions
28,840
◇
Types & classes
3,245
↓ 10 callers
Method
buildChildrenDoneExpr
buildChildrenDoneExpr compiles a set of per-collection done filters into a single SQL boolean expression plus ordered args. `itemAlias` is the item-ta
internal/store/items.go:5366
↓ 10 callers
Function
buildHTMLShell
buildHTMLShell wraps body HTML in the standard transactional-email chrome — header (Pad wordmark) + body + footer note + (Cloud only) marketing footer
internal/email/shell.go:29
↓ 10 callers
Method
cal
(t *testing.T, u *models.User, coll, query string)
internal/server/handlers_calendar_test.go:22
↓ 10 callers
Function
calleeText
(src: AstSource, n: Node)
web/src/lib/components/items/childIdentityFencePopulation.test.ts:325
↓ 10 callers
Function
chatGPTMountServer
(t *testing.T, enabled bool)
internal/server/task3321_u2b_mount_test.go:27
↓ 10 callers
Function
chatSeenOwner
TASK-4071: the chat-seen log a plugin tails to show chat to the human.
internal/cli/chat_seen_test.go:16
↓ 10 callers
Function
coerceSchema
The schema every case below is coerced against.
internal/items/coerce_test.go:11
↓ 10 callers
Function
commitmentSnapshot
The snapshot includes the complete row, journal and managed reminder, so a refusal cannot hide a partial roles, timing or reminder write.
internal/server/handlers_commitments_timing_test.go:15
↓ 10 callers
Function
configureBootstrapToken
configureBootstrapToken seeds a known token on the server so tests don't depend on the random generator. The on-disk file is created in a temp dir so
internal/server/handlers_auth_bootstrap_token_test.go:34
↓ 10 callers
Function
connectArmedWatchStream
connectArmedWatchStream is connectWatchStream with the PLAN-2613 S1 `armed=true` query param set — the shape a consenting client uses. Push delivery i
internal/server/handlers_watch_events_test.go:47
↓ 10 callers
Function
connectWatchStreamWithHeadersAndQuery
connectWatchStreamWithHeadersAndQuery is the common seam beneath every connect helper above — added for PLAN-2613 S1's `armed` query param, which (unl
internal/server/handlers_watch_events_test.go:65
↓ 10 callers
Function
createCmd
--- create ---
cmd/pad/cmd_item.go:191
↓ 10 callers
Function
createWorkspaceAs
createWorkspaceAs drives the real create door through the router, so these legs exercise the handler rather than the helper in isolation.
internal/server/workspace_owner_compensation_test.go:59
↓ 10 callers
Function
deferNext
(fn: (...args: never[]) => unknown)
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:254
↓ 10 callers
Function
deleteWorkspace
( fixture: SuiteFixture, request: APIRequestContext, slug: string )
web/e2e/lib/attachment-viewer.ts:561
↓ 10 callers
Function
deliveredCount
deliveredCount reads pushResponse.DeliveredSessions, failing the test if it is NULL. Null is not zero on this field — it means "published, but the pr
internal/server/handlers_push_test.go:608
↓ 10 callers
Function
dialWSBracket
dialWSBracket joins as a bracket-capable participant (`?applier_bracket=1`) so the conn can be durably confirmed by a restore's finalization (BUG-2276
internal/collab/manager_test.go:470
↓ 10 callers
Function
dropf
(field, code string)
internal/store/schedule_carry.go:78
↓ 10 callers
Method
encode
()
internal/server/handlers_changes.go:47
↓ 10 callers
Function
eq
(t *testing.T, what string, got []string, want ...string)
internal/server/handlers_calendar_test.go:70
↓ 10 callers
Function
expectEditorMounted
(page: Page)
web/e2e/lib/collab-helpers.ts:99
↓ 10 callers
Method
featureCountOn
featureCountOn returns the current count for a workspace-scoped feature, parameterized over the query surface so the same COUNTs serve both CheckLimit
internal/store/limits.go:410
↓ 10 callers
Function
goodOverride
()
internal/store/schedule_link_import_test.go:294
↓ 10 callers
Function
goto
(_url: string | URL, _opts?: unknown)
web/src/test/mocks/app-navigation.ts:15
↓ 10 callers
Function
gzipTar
(t *testing.T, entries []bundleEntry)
internal/server/bug3354_import_bundle_bomb_test.go:25
↓ 10 callers
Function
isEpochReactive
(read: () => number, bump: () => void)
web/src/test/identityEpochMock.svelte.ts:88
↓ 10 callers
Function
isRelationType
(type: string | undefined | null)
web/src/lib/items/relationFieldTypes.ts:37
↓ 10 callers
Function
item
(id: string, status: string)
web/src/mcp-app/board.test.ts:4
↓ 10 callers
Function
itemCopyLine
itemCopyLine makes a server-supplied string safe to drop into a table row. Schema keys, labels, option values, link types and validator messages are a
cmd/pad/cmd_item.go:2980
↓ 10 callers
Function
itemsIn
itemsIn returns the titles of the items the given collection holds, resolved by EXACT slug so the assertion cannot be satisfied by the very fallback u
internal/server/collection_resolve_test.go:51
↓ 10 callers
Method
kill
(reason string)
internal/materialize/supervisor.go:468
↓ 10 callers
Method
kinds
(t *testing.T, userID string)
internal/store/notifications_test.go:11
↓ 10 callers
Method
lastReferencedAt
(t *testing.T, id string)
internal/store/attachments_gc_claim_test.go:66
↓ 10 callers
Function
leaseFixture
Tests for the item execution lease (#1221): an atomic claim/checkout so two pollers that both read "unclaimed" cannot both proceed. The conditional UP
internal/store/item_lease_test.go:15
↓ 10 callers
Function
libraryUpdateCmd
libraryUpdateCmd: pad library update <ref> (TASK-3462 U3c).
cmd/pad/cmd_library.go:637
↓ 10 callers
Function
linkEdge
(p, c string)
internal/schedule/links_test.go:22
↓ 10 callers
Function
linkRole
(name string)
internal/store/commitment_links.go:115
↓ 10 callers
Function
linkState
(edges []Edge, at time.Time)
internal/schedule/links_test.go:36
↓ 10 callers
Method
logActivity
logActivity is a helper that logs activity, ignoring errors (best-effort).
internal/server/handlers_documents.go:416
↓ 10 callers
Function
mapCollectionUpdate
mapCollectionUpdate dispatches `pad collection update <slug> [--name ...] [--icon ...] [--description ...] [--prefix ...] [--schema ...] [--fields ...
internal/mcp/dispatch_http_routes.go:1040
↓ 10 callers
Method
mint
mint mints as the viewer; returns the status, the URL and its code.
internal/server/task3414_item_actions_test.go:61
↓ 10 callers
Function
mount
(factor: 'password' | 'totp' | 'email' | 'unavailable')
web/src/lib/components/auth/StepUpPrompt.svelte.test.ts:15
↓ 10 callers
Function
mount
(extra: Record<string, unknown> = {})
web/src/lib/components/items/itemDetailAddDate.svelte.test.ts:132
↓ 10 callers
Method
mustExist
(t *testing.T, name string)
internal/server/handlers_workspace_create_consent_test.go:187
↓ 10 callers
Function
newBackfillTestStore
BackfillOAuthConnections tests (PLAN-1519 / TASK-1522 / IDEA-1517 §2). What's covered: - Pre-TASK-952 session (no key) → all_current=1, no
internal/store/oauth_connections_backfill_test.go:29
↓ 10 callers
Function
newBoardFixture
(t *testing.T)
internal/mcp/board_test.go:28
↓ 10 callers
Function
newFlippedRedisBus
(t *testing.T)
internal/events/redis_idspace_test.go:50
↓ 10 callers
Function
newLegacyFixture
(t *testing.T)
internal/server/bug3353_legacy_token_test.go:28
↓ 10 callers
Method
newLinkBudget
()
internal/store/commitment_cascade.go:47
↓ 10 callers
Function
newOAuthConnTestStore
OAuth connection store tests (PLAN-1519 / TASK-1520 — Phase A foundation). What's covered: - CreateOAuthConnection + GetOAuthConnection round-trip w
internal/store/oauth_connections_test.go:35
↓ 10 callers
Function
newRestoreCollabFixture
(t *testing.T, name string)
internal/server/handlers_items_collab_versions_test.go:575
↓ 10 callers
Function
newStub
newStub starts a test HTTP server and returns a CloudClient pointed at it. Callers supply the handler to control the response.
internal/billing/cloud_client_test.go:16
↓ 10 callers
Function
newTestFSStore
(t *testing.T)
internal/attachments/fs_store_test.go:22
↓ 10 callers
Function
newTestSender
(ts *httptest.Server)
internal/email/sender_test.go:12
↓ 10 callers
Function
open
* Open the workspace's IDB database for the given user, creating * object stores on first run. Cached so subsequent calls reuse the * connection. Re
web/src/lib/stores/localIndexPersistence.ts:351
↓ 10 callers
Method
parkedCount
()
internal/server/task4032_push_record_failure_test.go:40
↓ 10 callers
Method
pendingRows
(t *testing.T)
internal/server/handlers_apps_install_test.go:157
↓ 10 callers
Function
pgCount
pgCount counts rows with a raw $1-style query on the Postgres database.
internal/store/runtime_pool_test.go:63
↓ 10 callers
Function
pidAnswersAt
(port int)
internal/buildtools/install_refresh_test.go:1225
↓ 10 callers
Function
planSourceServer
(t *testing.T)
internal/server/handlers_plan_source_test.go:27
↓ 10 callers
Method
publishActivityEvent
publishActivityEvent is the ONE place a server producer hands an event to the activity bus, and the one place its Publish error is discarded (BUG-2732
internal/server/events_publish.go:27
↓ 10 callers
Method
publishWatchNotification
publishWatchNotification is the BEST-EFFORT publish path, and the one rule behind every non-push producer (BUG-2699). Bus.Publish reports acceptance
internal/server/handlers_watch_notify.go:156
↓ 10 callers
Function
putDevice
(srv *Server, bearer, conn, body string)
internal/server/handlers_push_devices_test.go:107
↓ 10 callers
Function
raised
raised reports whether a gap signal is pending, without blocking. Reading it CONSUMES the signal, which is what a real consumer's select does.
internal/watchevents/gap_signal_test.go:7
↓ 10 callers
Function
readPIDRecord
readPIDRecord parses the PID file. It accepts the LEGACY bare-integer form as well, because a server started by an older binary is exactly the case t
internal/cli/pidfile.go:51
↓ 10 callers
Function
readRawSSEFrames
readRawSSEFrames reads whole SSE frames verbatim, unlike connectSSE which keeps only the event type and data. The `id:` line is the subject here, so i
internal/server/handlers_events_resume_test.go:20
↓ 10 callers
Function
redeem
(srv *Server, body string)
internal/server/handlers_apps_provision_test.go:77
↓ 10 callers
Function
renderMD
renderMD is a small test helper that builds + renders the synthetic tree with a fixed clock and returns the markdown output as a string.
internal/cmdhelp/md_test.go:18
↓ 10 callers
Method
resolveForReopenTest
(t *testing.T, item *models.Item, in ResolveInput, now string)
internal/store/schedule_reopen_test.go:673
↓ 10 callers
Method
rowCount
()
internal/collab/manager_test.go:359
↓ 10 callers
Function
run
(args []string, stdout, stderr io.Writer)
cmd/depages/main.go:75
↓ 10 callers
Function
runSessionCmd
(t *testing.T, args ...string)
cmd/pad/cmd_session_registry_test.go:43
↓ 10 callers
Function
scanCount
(t *testing.T, s *Store, query string, args ...any)
internal/store/items_create_tx_test.go:52
↓ 10 callers
Method
scheduleViewZone
scheduleViewZone is the zone a schedule's walls are read in: its own, or for a floating one the recipient's.
internal/store/commitment.go:96
↓ 10 callers
Function
seedConnectedAppForMutations
seedConnectedAppForMutations creates a user + workspace + an oauth_connections row directly so the mutation handlers have something to mutate. Returns
internal/server/handlers_connected_apps_mutations_test.go:64
↓ 10 callers
Method
seen
seen reports whether id was recorded within the window, and records it when it was not.
cmd/pad/cmd_watch.go:119
↓ 10 callers
Function
send
(call: () => Promise<WorkspaceTabsResponse>)
web/src/lib/stores/tabs.svelte.ts:124
↓ 10 callers
Function
seriesRequest
()
internal/store/commitment_renegotiate_test.go:55
↓ 10 callers
Function
sessionRegistryTestEnv
sessionRegistryTestEnv: fresh HOME (empty registry), a temp cwd with NO .pad.toml (so ResolveAgentName falls to PAD_AGENT / runtime detection), every
cmd/pad/cmd_session_registry_test.go:20
↓ 10 callers
Function
setupTokenEnv
(t *testing.T)
cmd/pad/cmd_token_test.go:134
↓ 10 callers
Function
sha256Hex
(b []byte)
internal/attachments/fs_store_test.go:17
↓ 10 callers
Function
str
* Read a string param. Absent (undefined/null) returns undefined — not an * error, matching strArray's absent-vs-malformed line. A present value of a
web/src/lib/webmcp/dispatch.ts:50
↓ 10 callers
Function
str
(x: unknown)
web/src/mcp-app/boardModel.ts:95
↓ 10 callers
Method
task
(t *testing.T, title string)
internal/decision/conventions_test.go:80
↓ 10 callers
Function
task3389Fixture
(t *testing.T)
internal/store/task3389_app_projection_test.go:54
↓ 10 callers
Function
task3389Pending
(t *testing.T, s *Store)
internal/store/task3389_app_projection_test.go:28
↓ 10 callers
Function
task3462GetState
TASK-3462 U2: the state endpoint, the listing, and the opt-in update. The compiled-in library cannot change inside a test, so "the library changed si
internal/server/task3462_builtin_update_test.go:23
↓ 10 callers
Function
task3867EnableTOTP
(t *testing.T, e *tokenAuthEnv)
internal/server/task3867_token_access_test.go:60
↓ 10 callers
Function
task3867Scopes
(t *testing.T, e *tokenAuthEnv, scopes string)
internal/server/task3867_token_access_test.go:38
↓ 10 callers
Function
titles
(rows []*needs.Row)
internal/server/handlers_me_needs_test.go:160
↓ 10 callers
Function
tzCLI
(t *testing.T, handler http.HandlerFunc)
cmd/pad/task4101_timezone_test.go:24
↓ 10 callers
Function
validatePasswordStrength
validatePasswordStrength enforces length + strength. It rejects weak passwords at registration / rotation / reset so top-of-breach-list entries like "
internal/server/password_strength.go:34
↓ 10 callers
Method
variant
variant creates a derived thumbnail row for parent, in ws.
internal/store/attachments_copy_plan_test.go:63
↓ 10 callers
Function
view
(extra: Partial<ItemCommitmentView> = {})
web/src/lib/test/commitmentFixtures.ts:11
↓ 10 callers
Function
waitForSubscribers
waitForSubscribers polls until the channel has (or provably lacks) subscribers. CALL IT AFTER Subscribe AND BEFORE THE FIRST Publish, on any test tha
internal/events/redis_namespace_test.go:203
↓ 10 callers
Function
wallOf
wallOf is the wall reading of an instant already in its zone.
internal/store/schedule_completion.go:131
↓ 10 callers
Function
wantKinds
(t *testing.T, what string, got []string, want ...string)
internal/store/notifications_test.go:29
↓ 10 callers
Function
workspaceListed
(t *testing.T, srv *Server, name string)
internal/server/bug3354_import_bundle_bomb_test.go:66
↓ 10 callers
Method
writeGraphError
(w http.ResponseWriter, r *http.Request, err error)
internal/server/handlers_commitment_links.go:197
↓ 10 callers
Function
writeRateLimitResponse
writeRateLimitResponse sends a 429 response with Retry-After and X-RateLimit-* headers.
internal/server/middleware_ratelimit.go:1167
← previous
next →
1,501–1,600 of 28,840, ranked by callers