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
↓ 2 callers
Function
mustCreate
mustCreate is a small helper for the deadlock test's seeding — keeps the test body focused on the race itself rather than boilerplate response parsing
internal/server/handlers_items_open_children_guard_test.go:1275
↓ 2 callers
Function
mustDecode
(s string)
internal/store/bug3124_content_bearing_test.go:23
↓ 2 callers
Function
mustETag
(t *testing.T, a *Store, spec store.FenceSpec, item *models.Item)
internal/appstore/items_test.go:397
↓ 2 callers
Method
mustInsert
(t *testing.T, id, body string, parent any)
internal/store/task3391_comments_rebuild_test.go:40
↓ 2 callers
Function
mustJSON
(v []string)
internal/store/schedules.go:409
↓ 2 callers
Function
mustJSON
(t *testing.T, v any)
cmd/pad/mcp_wire_golden_test.go:153
↓ 2 callers
Function
mustJSONRequest
(t *testing.T, method, path string, body any)
internal/mcp/dispatch_http_test.go:954
↓ 2 callers
Function
mustRead
(path string, v any)
scripts/decision-eval/conventions/main.go:332
↓ 2 callers
Function
mustVersions
(t *testing.T, f *recoveryFixture, itemID string)
internal/server/materialize_recovery_test.go:890
↓ 2 callers
Method
naivePin
naivePin is the per-item pin a cascade must NOT use: each item through pinScheduleTx (item, workspace, schedule), the root first.
internal/store/commitment_links_pg_test.go:106
↓ 2 callers
Function
namedWorkspaceGroupView
(g models.WorkspaceGroup, admitted []models.Workspace)
internal/server/handlers_workspace_groups.go:183
↓ 2 callers
Function
names
(slug: string)
web/src/lib/collections/parentFilter.test.ts:4
↓ 2 callers
Function
nav
(path: string | null, shallow = false)
web/src/lib/components/chat/ChatHost.svelte.test.ts:512
↓ 2 callers
Function
navGuardState
(page: Page)
web/e2e/attachment-viewer-owners.spec.ts:174
↓ 2 callers
Function
navigate
An in-app navigation, as a link click is: the workspace layout stays * mounted, so what follows is the PAGE's requests, not a full reload's.
web/e2e/task-2231-tag-starred-from-index.spec.ts:37
↓ 2 callers
Method
needsCommentIDsAt
needsCommentIDsAt lists the other comments created at exactly `at`.
internal/store/needs_snooze.go:57
↓ 2 callers
Function
needsDismissHolds
needsDismissHolds compares a dismissal's marker with the item's current state. A comment deleted since the marker leaves the newest second earlier, wh
internal/store/needs_snooze.go:223
↓ 2 callers
Method
needsItemStates
needsItemStates is needsItemState for many items: the newest other comment's second, the other comments at the second the snooze's marker names (the o
internal/store/needs_read.go:335
↓ 2 callers
Function
nestedDocumentDecodesNUL
nestedDocumentDecodesNUL walks a JSON document carried as a string — an item's `fields` blob, a collection's `schema` — for a string containing a NUL.
internal/server/middleware_request_text.go:823
↓ 2 callers
Function
never
()
web/src/routes/(console)/needs/needsPage.svelte.test.ts:422
↓ 2 callers
Method
neverFires
neverFires says an HOURLY or MINUTELY rule, stepped from start, provably never lands on its BYHOUR and BYMINUTE values (TASK-4100). The library steps
internal/schedule/rule.go:344
↓ 2 callers
Function
newAccessKicker
()
internal/server/access_kick.go:50
↓ 2 callers
Function
newAliasFixture
newAliasFixture builds a workspace whose collections include `specs` — a name the client-side alias map has never heard of — and returns a dispatcher
internal/mcp/dispatch_http_collection_alias_test.go:30
↓ 2 callers
Function
newBUG2772World
(t *testing.T)
internal/mcp/bug2772_remote_agent_identity_test.go:48
↓ 2 callers
Function
newBUG3244Fixture
(t *testing.T)
internal/server/bug3244_schema_rebuild_set_aside_test.go:35
↓ 2 callers
Function
newCappedResponseWriter
newCappedResponseWriter wires the writer's body buffer into a cappedWriter bounded at limit. Must be used (not a bare struct literal) so `capped` is n
internal/mcp/resources_http.go:404
↓ 2 callers
Function
newChatConversation
(c models.Conversation, agentKey string)
internal/server/handlers_chat_dto.go:74
↓ 2 callers
Function
newChatDetail
(c models.ConversationSummary)
internal/server/handlers_chat_dto.go:77
↓ 2 callers
Function
newChatDisarmCmd
()
cmd/pad/cmd_chat_direction.go:38
↓ 2 callers
Function
newChatMsg
(actor models.ConversationActor, m models.ConversationMessage)
internal/server/handlers_chat_dto.go:87
↓ 2 callers
Function
newClientFromURL
(baseURL string)
internal/cli/client.go:93
↓ 2 callers
Function
newClientWriteMarks
()
internal/server/client_write_marks.go:68
↓ 2 callers
Function
newCommentFixture
(t *testing.T)
internal/store/task3391_comments_rebuild_test.go:23
↓ 2 callers
Function
newCommentFixture
(t *testing.T, driver store.DriverType)
internal/server/handlers_comments_atomic_test.go:44
↓ 2 callers
Function
newCopyRelationFixtureNonStringDefault
newCopyRelationFixtureNonStringDefault gives the DESTINATION's relation field a numeric default, which no valid schema would declare and which nothing
internal/server/handlers_items_copy_relation_test.go:733
↓ 2 callers
Method
newCopyRequest
newCopyRequest builds the POST for either copy endpoint. mutating is DR-13 mechanism 2. net/http will REPLAY a request whose connection died before a
internal/cli/client_items_copy.go:532
↓ 2 callers
Function
newFetcher
newFetcher builds the client with the private entries use selects.
internal/appfetch/appfetch.go:77
↓ 2 callers
Function
newFromTemplate
newFromTemplate builds (once) and copies the template DB, then opens the copy via store.New. Shared by NewSQLite and NewSQLiteUnmanaged; the only diff
internal/store/storetest/storetest.go:76
↓ 2 callers
Function
newHTTPServer
newHTTPServer builds the HTTP server Prepare serves, without listening, so a test can read the timeouts the request path actually runs under (TASK-427
internal/server/server.go:2882
↓ 2 callers
Method
newID
()
internal/materialize/supervisor.go:765
↓ 2 callers
Function
newImportOutcomeRegistry
()
internal/server/import_outcomes.go:69
↓ 2 callers
Function
newInstallClientSecret
()
internal/store/install_clients.go:184
↓ 2 callers
Function
newInvitationSecrets
newInvitationSecrets generates an invitation's join code and its mailbox-only proof, each a random 128-bit secret, with the hashes stored in their pla
internal/store/workspace_members.go:1175
↓ 2 callers
Function
newItemCopyDeps
newItemCopyDeps binds itemCopyDeps to a real client. Its own function so a test can check the binding, not just runItemCopy (CONVE-19, TASK-4131).
cmd/pad/cmd_item.go:2075
↓ 2 callers
Function
newLinkServer
(t *testing.T, slug string)
cmd/pad/task3612_link_repoint_test.go:32
↓ 2 callers
Function
newMCPStreamWriter
(stream *sseStream)
internal/server/mcp_stream_keepalive.go:67
↓ 2 callers
Function
newMaterializeRecovery
(s *Server, m Materializer, cfg materializeRecoveryConfig)
internal/server/materialize_recovery.go:160
↓ 2 callers
Function
newMaterializerFromEnv
newMaterializerFromEnv builds the op-log recovery worker's Materializer (TASK-2198 U4): a materialize.Supervisor configured from PAD_MATERIALIZE_TIMEO
cmd/pad/cmd_materialize.go:45
↓ 2 callers
Function
newMetricsTestServer
newMetricsTestServer builds a Server with metrics enabled and the given static token, via storetest.NewSQLite (IDEA-1914) — see testServer in server_t
internal/server/metrics_auth_test.go:15
↓ 2 callers
Method
newNeedsMemo
(wsID string)
internal/server/needs_scorers.go:126
↓ 2 callers
Function
newObservedRoomManager
newObservedRoomManager builds the collab room manager with its metrics observer attached (TASK-3501). Extracted for the same reason as newObservedEven
cmd/pad/cmd_server.go:1458
↓ 2 callers
Function
newOpKey
()
web/src/lib/opKey.ts:10
↓ 2 callers
Function
newPostgres
(t *testing.T, limits store.RuntimeLimits)
internal/store/storetest/postgres.go:84
↓ 2 callers
Function
newProjectionFixture
(t *testing.T)
cmd/pad/chatgpt_projection_test.go:39
↓ 2 callers
Function
newPublishFailingRedisBus
(t *testing.T)
internal/events/redis_unpublished_id_test.go:109
↓ 2 callers
Function
newQuotaFixture
--- Quota (DR-16) ---------------------------------------------------------- quotaFixture wires a free-tier owner with an items_per_workspace override
internal/store/items_cross_workspace_copy_test.go:920
↓ 2 callers
Function
newRawServer
newRawServer is for the cases needing control of the raw response — here, a Content-Length that lies — which the shared fake cannot express.
internal/decision/review_test.go:401
↓ 2 callers
Function
newRelationTargetsFixture
(t *testing.T)
internal/mcp/dispatch_http_relation_targets_test.go:37
↓ 2 callers
Function
newRemindCmd
(alias bool)
cmd/pad/cmd_reminder.go:30
↓ 2 callers
Function
newRenameCascadeTooLargeError
(newTitle string, retained int64)
internal/store/documents.go:822
↓ 2 callers
Method
newRule
newRule builds the library's rule generator alone, budgeted at steps (TASK-4100). The elapsed path fast-forwards it to base so the distance from Start
internal/schedule/engine.go:122
↓ 2 callers
Function
newScopeFixture
(t *testing.T, s *store.Store)
internal/store/bug2631_scope_collection_test.go:23
↓ 2 callers
Function
newStatusError
(code int, kind, message string)
internal/server/handlers_collab.go:545
↓ 2 callers
Function
newStorageInfoCache
(ttl time.Duration)
internal/server/handlers_storage.go:44
↓ 2 callers
Function
newSubscribeProxy
newSubscribeProxy is the constructor behind both proxies. Every field the forward goroutine reads is set BEFORE the accept loop starts: a gate assigne
internal/events/redis_subscribe_confirm_test.go:60
↓ 2 callers
Function
newTCPCutter
(t *testing.T, backend string)
internal/events/redis_reconnect_test.go:31
↓ 2 callers
Function
newTestWorkspace
newTestWorkspace creates a workspace bound to the test store with the given slug. Helper for store-level tests that don't already use the larger setup
internal/store/agent_roles_test.go:51
↓ 2 callers
Function
newestItemVersion
newestVersion is the newest item version row's stored form.
internal/store/bug3839_invalid_utf8_version_test.go:47
↓ 2 callers
Method
nextAfterResolve
nextAfterResolve is the occurrence a done or skip advances to, and the anchor_wall to store. A calendar schedule takes the first instance after both n
internal/store/schedule_resolve.go:948
↓ 2 callers
Function
nextDashboardCall
(from: number)
web/src/routes/[username]/[workspace]/dashboardIdentityFence.svelte.test.ts:183
↓ 2 callers
Function
nextDay
(day string)
internal/server/handlers_calendar.go:436
↓ 2 callers
Function
nextGrid
nextGrid is the first n instants after q on a grid of d seconds anchored at the epoch: the independent answer for a rule that fires on every grid poin
internal/schedule/bounds_test.go:17
↓ 2 callers
Function
nextMe
* Spin the microtask/effect loop until a `/me` beyond `from` has been ISSUED, * and return its index. * * Indices are captured rather than assumed:
web/src/routes/workspaceDashboardOwnerDenial.svelte.test.ts:115
↓ 2 callers
Function
nextOccurrence
nextOccurrence is the first occurrence strictly after nowT-1s, so one that is due this very second still counts. A floating schedule is read in view.
internal/store/schedules.go:355
↓ 2 callers
Function
nextTick
nextTick returns the deadline for the pass after one that was scheduled for prev, given the configured interval and the current time. SEPARATED OUT S
internal/events/redis_heartbeat.go:697
↓ 2 callers
Function
nextViewerResourceGen
(key: string, lastKey: string, gen: number)
web/src/lib/attachments/viewerResource.ts:45
↓ 2 callers
Function
nextWatchTick
nextWatchTick returns the deadline for the pass after one scheduled for prev. Separated out so the arithmetic is testable without a clock — the only w
internal/watchevents/heartbeat.go:205
↓ 2 callers
Function
noChanges
(over: Record<string, unknown> = {})
web/src/mcp-app/Board.svelte.test.ts:36
↓ 2 callers
Function
noWorkspaceDispatcher
(t *testing.T, h http.Handler)
internal/mcp/dispatch_http_no_workspace_test.go:26
↓ 2 callers
Function
nodeForResult
* Build the node that should replace a placeholder for a given upload * result. Image MIMEs become `attachmentImage`; everything else becomes * `att
web/src/lib/components/editor/attachment-upload.ts:281
↓ 2 callers
Function
none
()
web/src/lib/components/share/shareView.test.ts:176
↓ 2 callers
Function
normalizeArtifact
normalizeArtifact is the artifact importer's preprocess, shared by the human import (handleImportArtifact) and the app installer's preview and provisi
internal/server/artifact_normalize.go:37
↓ 2 callers
Function
normalizeBaseURL
(raw string)
cmd/pad/configure.go:335
↓ 2 callers
Function
normalizeCollectionSlug
normalizeCollectionSlug maps common singular/short forms to actual collection slugs. Thin wrapper around the shared collections.NormalizeSlug so the C
cmd/pad/cmd_collection.go:623
↓ 2 callers
Function
normalizeDispatcherBlockLines
normalizeDispatcherBlockLines returns the command lines of one fenced bash block body with trailing `#` comments removed, whitespace trimmed, and blan
cmd/pad/agent_dispatcher_commands_test.go:111
↓ 2 callers
Function
normalizeEmptyRelationLists
(fields map[string]any, schema models.CollectionSchema, partial bool)
internal/items/validate.go:275
↓ 2 callers
Function
normalizeGitRemoteSlug
(raw string)
internal/cli/workspace_context_detect.go:156
↓ 2 callers
Function
normalizeRecoveryCode
normalizeRecoveryCode prepares a user-entered recovery code for hashed comparison against stored codes: strip ASCII whitespace and dashes, then upperc
internal/server/handlers_2fa.go:519
↓ 2 callers
Function
normalizeTokenScopes
(w http.ResponseWriter, raw json.RawMessage)
internal/server/handlers_tokens.go:414
↓ 2 callers
Function
normalizeTokenScopesInput
normalizeTokenScopesInput checks a create request's scopes and rewrites them to their compact JSON form, writing a 400 validation_error and returning
internal/server/handlers_tokens.go:408
↓ 2 callers
Function
normalizeTriggerSQL
normalizeTriggerSQL makes two spellings of the same trigger comparable. SQLite stores the statement text as written, minus the trailing semicolon, an
internal/store/nulcolumns.go:1051
↓ 2 callers
Method
normalized
()
internal/server/handlers_commitment_links.go:107
↓ 2 callers
Method
normalized
()
internal/schedule/links.go:640
↓ 2 callers
Function
notFound
()
web/src/lib/components/common/QuickActionsMenu.svelte.test.ts:96
↓ 2 callers
Function
notUniqueSummary
notUniqueSummary joins not_unique drops into the one line an activity row carries (BUG-2367). Always the holder-free sentence: the row is read by ever
internal/server/handlers_items.go:3643
↓ 2 callers
Method
noteSeedBoundary
noteSeedBoundary records the write's seq in the collab manager's in-memory fence, which Join reads before the durable column. Called inside PruneAndAp
internal/server/handlers_items_content_route.go:397
↓ 2 callers
Function
noteServerDate
(dateHeader: string | null | undefined, receivedAt = performance.now())
web/src/lib/api/serverClock.ts:37
↓ 2 callers
Function
noteViewerZone
A zone this machine's tzdata cannot load renders in UTC, and the notice names it.
cmd/pad/userzone.go:69
↓ 2 callers
Function
notesJSON
(entries ...string)
internal/server/bug2788_entry_id_stability_test.go:36
↓ 2 callers
Function
notificationExcerpt
notificationExcerpt collapses runs of whitespace and keeps the first notificationExcerptRunes runes.
internal/server/handlers_notifications.go:130
← previous
next →
7,801–7,900 of 28,840, ranked by callers