MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestMapKeysKeepTheirStringMethodAndInterfaceKeysAreCut
(t *testing.T)
internal/logging/redaction_followups_test.go:1325
FunctionTestMapKeysOfEveryKindAreBoundedBeforeTheyAreCopied
(t *testing.T)
internal/logging/redaction_followups_test.go:1428
FunctionTestMapKeysThatChooseHowTheyPrintAreNeverRawValues
(t *testing.T)
internal/logging/redaction_followups_test.go:1605
FunctionTestMapPflagType_CoversCommonTypes
(t *testing.T)
internal/cmdhelp/json_test.go:647
FunctionTestMapRoleCreate_BuildsCanonicalBody
--- Roles ---
internal/mcp/dispatch_http_routes_extras_test.go:373
FunctionTestMapRoleCreate_OmitsEmptyOptionalFields
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:407
FunctionTestMapRoleCreate_RequiresName
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:541
FunctionTestMapRoleUpdate_BuildsPatchBody
--- Role update (TASK-1512 / PLAN-1496) ---
internal/mcp/dispatch_http_routes_extras_test.go:431
FunctionTestMapRoleUpdate_EmptyStringClearsField
TestMapRoleUpdate_EmptyStringClearsField mirrors the same behavior the collection-update mapper has: explicit empty strings round-trip to the store so
internal/mcp/dispatch_http_routes_extras_test.go:506
FunctionTestMapRoleUpdate_NewSlugMapsToBodySlug
TestMapRoleUpdate_NewSlugMapsToBodySlug confirms the disambiguation: MCP input `slug` identifies the role in the path; MCP input `new_slug` becomes th
internal/mcp/dispatch_http_routes_extras_test.go:481
FunctionTestMapRoleUpdate_RequiresWorkspaceAndSlug
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:532
FunctionTestMapWebhookCreate_NormalizesCommaSeparatedEventsToJSONArray
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:594
FunctionTestMapWebhookCreate_OmitsEventsWhenMissing
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:679
FunctionTestMapWebhookCreate_RequiresURL
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:700
FunctionTestMapWorkspaceAuditLog_DoesNotForwardSessionWorkspace
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:796
FunctionTestMapWorkspaceAuditLog_OmitsEmptyFilters
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:750
FunctionTestMapWorkspaceAuditLog_PassesFiltersThrough
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:765
FunctionTestMapWorkspaceInvite_BuildsCanonicalBody
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:819
FunctionTestMapWorkspaceInvite_RequiresEmail
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:862
FunctionTestMapWorkspaceInvite_RoleOmittedWhenMissing
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:843
FunctionTestMarkFirstConnect_OncePerSessionAcrossToggles
TestMarkFirstConnect_OncePerSessionAcrossToggles: the first-connect flag is true on the first connect only, and survives arm/disarm toggles so a recon
internal/cli/session_arm_tristate_test.go:155
FunctionTestMarkNotificationsSkipped_RecordsReason
(t *testing.T)
internal/store/task3939_push_dispatch_test.go:280
FunctionTestMarkNotifications_StaleClaimerIsNoOp
Kills: dropping `claim_token = ?` from the settle (a stale claimer stamps the new holder's row); dropping `push_state = 'pending'` (sent -> skipped).
internal/store/task3939_push_dispatch_test.go:209
FunctionTestMarkdownCitationsAreNotLineNumbers
TestMarkdownCitationsAreNotLineNumbers keeps the fix from eroding. Converting the citations is worth nothing if the next comment reaches for a line n
internal/links/markdown_citation_test.go:145
FunctionTestMarkdownCitationsNameLiveSymbols
TestMarkdownCitationsNameLiveSymbols is the mechanical check line numbers could never have.
internal/links/markdown_citation_test.go:79
FunctionTestMarkdownRoutingAcrossSurfaces
(t *testing.T)
cmd/pad/format_markdown_surfaces_test.go:131
FunctionTestMarkingDisarmsTheChildsArmedReminder
The mark disarms the child's managed reminder, in the same transaction; a reminder that already fired is left alone, and so is everything under the de
internal/store/commitment_cancel_test.go:436
FunctionTestMarkingDoesNotRecordAMissTheEvaluatorAlreadyRecorded
A miss the evaluator already recorded is not recorded again.
internal/store/commitment_cancel_test.go:399
FunctionTestMarkingLeavesAReminderThatAlreadyFired
(t *testing.T)
internal/store/commitment_cancel_test.go:461
FunctionTestMarkingRecordsAnUnrecordedDueMissFirstExactlyOnce
A child whose deadline passed before the parent was skipped, and before any tick, has a miss that already happened: marking the occurrence records it
internal/store/commitment_cancel_test.go:374
FunctionTestMarkingRecordsNoMissForAFinishedChild
Only an open child records a miss: a finished one is left alone entirely.
internal/store/commitment_cancel_test.go:418
FunctionTestMaskAPIKey
TestMaskAPIKey pins the single source of truth for the sensitive-value mask (BUG-1890). GET /admin/settings emits this form and the update handler com
internal/server/handlers_admin_settings_test.go:100
FunctionTestMatchModeAlias
(t *testing.T)
cmd/pad/configure_test.go:106
FunctionTestMatchesEvent
(t *testing.T)
internal/webhooks/dispatcher_test.go:345
FunctionTestMaterializeExhaustionLogsOncePerExhaustion
An item that uses up its budget leaves exactly ONE line naming it, its failure count and the last error kind; a budget reset (op-log growth) and a sec
internal/server/materialize_recovery_test.go:610
FunctionTestMaterializeFailureBudgetStopsAfterKAndResumesOnNewRows
---------------------------------------------------------------- budget
internal/server/materialize_recovery_test.go:321
FunctionTestMaterializeFlushAbortsWhenNothingIsPending
(t *testing.T)
internal/store/materialize_flush_test.go:166
FunctionTestMaterializeFlushAbortsWhenTheCursorMoved
(t *testing.T)
internal/store/materialize_flush_test.go:139
FunctionTestMaterializeFlushAppliesWhenCaughtUpAndPending
(t *testing.T)
internal/store/materialize_flush_test.go:52
FunctionTestMaterializeFlushLeavesSetAsideRowsAlone
(t *testing.T)
internal/store/materialize_flush_test.go:185
FunctionTestMaterializeFlushRefusesBlankOverAStoredBody
BUG-3316: a recovery that renders BLANK never replaces a stored body. A tab's lazy seed (TASK-1261) seeds from items.content when its replayed documen
internal/store/materialize_flush_test.go:364
FunctionTestMaterializeFlushStampsWhenTheBodyAlreadyMatches
A document that serializes to the stored body moves the watermark only: no seq bump, no version row.
internal/store/materialize_flush_test.go:213
FunctionTestMaterializeFlushWatermarkIsTheCursorNotMax
TASK-2198 U4: the recovery write's watermark is its CURSOR, never MAX at UPDATE time. On Postgres (READ COMMITTED) a row another connection commits af
internal/store/materialize_flush_internal_test.go:17
FunctionTestMaterializeGiveUpCounter
BUG-3523: every give-up counts once in pad_materialize_giveup_total, by the last failure's kind, beside its one WARN line; a reset budget that gives u
internal/server/materialize_recovery_test.go:1020
FunctionTestMaterializeLinkIndexContributesNoTitle
LEG (i). The STOP condition: no index-sourced TITLE may appear in a recovered body. Each form markdownToWikiLinks can emit is covered: [[REF]]
internal/server/materialize_recovery_links_test.go:114
FunctionTestMaterializeLinkIndexOrderAndScope
The index is every live item, ordered as localIndex.getAll orders a tab's: updated_at DESC, then id ASC.
internal/server/materialize_recovery_links_test.go:253
FunctionTestMaterializeLinkToRestrictedItemSurvives
LEG (ii). A link to an item a restricted viewer cannot see survives the recovery as the same [[REF|text]] a full member's tab would store, because the
internal/server/materialize_recovery_links_test.go:161
FunctionTestMaterializeNoMemoryCapCountsSilently
ErrNoMemoryCap (U3: no cap could be established, so the supervisor refused the job and warned once itself) counts against the budget like any failure,
internal/server/materialize_recovery_test.go:574
FunctionTestMaterializeRecoveryDisabledInstallsNothing
---------------------------------------------------------------- disabled With no Materializer (PAD_MATERIALIZE=off leaves it nil) nothing is installe
internal/server/materialize_recovery_test.go:392
FunctionTestMaterializeRecoveryEndToEnd
TestMaterializeRecoveryEndToEnd: real y-protocols op-logs from the U2 corpus (recorded from two live Editor.svelte mounts) are inserted as items' op-l
internal/server/materialize_recovery_test.go:450
FunctionTestMaterializeRecoveryRefusesAnEmptyDocument
BUG-3316, through the recovery worker: an op-log that replays to an empty document never blanks the stored body. The item is refused as terminal, is n
internal/server/materialize_recovery_test.go:846
FunctionTestMaterializeRecoverySecondPassIsHarmless
The double pass, pinned (main's red at cb99879d). dequeue clears an item's queued mark before its pass runs, so a sweep during a slow pass re-enqueues
internal/server/materialize_recovery_test.go:798
FunctionTestMaterializeRecoveryStripsFollowsTitleMarker
BUG-3315 U2: a tab since #1688 loads a link that follows its target's title with the follows-title marker, and the marker lives in the Y.Doc. Recovery
internal/server/materialize_recovery_links_test.go:205
FunctionTestMaterializeRecoveryVersionOnTheWire
The version history shows the recovery as the system's, on the wire.
internal/server/materialize_recovery_test.go:534
FunctionTestMaterializeRoomIdleEnqueuesOnlyWithPendingRows
---------------------------------------------------------------- T3 T3's decision, unit level: a reclaimed room queues its item only when the item sti
internal/server/materialize_recovery_test.go:206
FunctionTestMaterializeRoomIdleRecoversThroughTheHook
T3 end to end: a real collab room is reclaimed at the end of its grace TTL, the hook installed by StartMaterializeRecovery fires, and the pending item
internal/server/materialize_recovery_test.go:234
FunctionTestMaterializeSetAsideSkipsAreCountedNotLogged
Items skipped for set-aside rows are counted, reported on the sweep's one summary line, and never logged per item.
internal/server/materialize_recovery_test.go:675
FunctionTestMaterializeSkipsForeignSchemaVersion
Rows written under another editor schema are skipped, not materialized.
internal/server/materialize_recovery_test.go:373
FunctionTestMaterializeSweepExhaustedCountIsStableAcrossPages
The exhausted population is counted over the budget map, not per sweep page: with more candidates than one page, a stable population must not read as
internal/server/materialize_recovery_test.go:985
FunctionTestMaterializeSweepQueuesDormantPendingItemsWithoutARoom
---------------------------------------------------------------- T1
internal/server/materialize_recovery_test.go:274
FunctionTestMaterializeSweepReachesEveryCandidate
STARVATION: the sweep reads a bounded page, and the room check and the failure budget filter it afterwards. With materializeSweepLimit+1 dormant pendi
internal/server/materialize_recovery_test.go:725
FunctionTestMaterializeSweepSkipsExhaustedItems
BUG-3325: an item whose failure budget is spent for its current op-log was still a sweep candidate. The sweep queued it on every tick, the worker refu
internal/server/materialize_recovery_test.go:905
FunctionTestMaterializeWorkerCmdHiddenAndOffCmdhelp
The materializer worker (TASK-2198) is an internal process entry point: it must be registered, hidden, and absent from the cmdhelp document every MCP
cmd/pad/cmd_materialize_test.go:19
FunctionTestMaterializerDisabledBuildsNothing
PAD_MATERIALIZE=off (TASK-2198 U4) must leave the server with no Materializer at all: the Supervisor is never built, so no worker process can be spawn
cmd/pad/cmd_materialize_test.go:41
FunctionTestMatroskaDocTypeBeyondTheWindowIsWebM
TestMatroskaDocTypeBeyondTheWindowIsWebM records a LIMITATION, not a defect (BUG-2963; accepted as not blocking for PR A). A Void element is legal an
internal/attachments/mime_magic_test.go:143
FunctionTestMaxNotificationClaimIsGatewayBatch
A pin, not a behaviour test: the claim cap must stay the gateway's batch size, so one claim always fits one Send.
internal/store/task3939_push_dispatch_test.go:845
FunctionTestMaybeInjectWorkspace_CallerWins_OverSingleWorkspace
(t *testing.T)
internal/mcp/dispatch_http_workspace_default_test.go:46
FunctionTestMaybeInjectWorkspace_CopyOnWrite
(t *testing.T)
internal/mcp/dispatch_http_workspace_default_test.go:104
FunctionTestMaybeInjectWorkspace_ListerError_NoInject
(t *testing.T)
internal/mcp/dispatch_http_workspace_default_test.go:90
FunctionTestMaybeInjectWorkspace_MultipleWorkspaces_NoInject
(t *testing.T)
internal/mcp/dispatch_http_workspace_default_test.go:56
FunctionTestMaybeInjectWorkspace_NilLister_NoInject
(t *testing.T)
internal/mcp/dispatch_http_workspace_default_test.go:76
FunctionTestMaybeInjectWorkspace_SingleWorkspace_Injects
(t *testing.T)
internal/mcp/dispatch_http_workspace_default_test.go:36
FunctionTestMaybeInjectWorkspace_ZeroWorkspaces_NoInject
(t *testing.T)
internal/mcp/dispatch_http_workspace_default_test.go:66
FunctionTestMeAgendaBoundsAcrossTenWorkspaces
(t *testing.T)
internal/server/handlers_me_agenda_test.go:244
FunctionTestMeAgendaBudgetIsRequestWide
(t *testing.T)
internal/server/handlers_me_agenda_caps_test.go:10
FunctionTestMeAgendaCountsCap
(t *testing.T)
internal/server/handlers_me_agenda_counts_test.go:201
FunctionTestMeAgendaCountsHiddenAndGuest
A hidden item in a readable workspace moves no count, and a guest sees only what an item grant opens in a restricted collection.
internal/server/handlers_me_agenda_counts_test.go:62
FunctionTestMeAgendaCountsLocalDay
23:30 local on the 10th lands on the 10th, not the 11th UTC.
internal/server/handlers_me_agenda_counts_test.go:113
FunctionTestMeAgendaCountsRevokedWorkspaceDrops
(t *testing.T)
internal/server/handlers_me_agenda_counts_test.go:89
FunctionTestMeAgendaCountsSeries
(t *testing.T)
internal/server/handlers_me_agenda_counts_test.go:49
FunctionTestMeAgendaCreatedCompleted
(t *testing.T)
internal/server/handlers_me_agenda_test.go:313
FunctionTestMeAgendaCreatedCompletedSQLCaps
(t *testing.T)
internal/server/handlers_me_agenda_caps_test.go:33
FunctionTestMeAgendaEntriesCarryOwnerUsername
(t *testing.T)
internal/server/handlers_me_agenda_test.go:227
FunctionTestMeAgendaEventsDoNotCutDatedWindow
(t *testing.T)
internal/server/handlers_me_agenda_events_test.go:11
FunctionTestMeAgendaExactWorkBudgetWithEmptyWorkspace
(t *testing.T)
internal/server/agenda_work_budget_test.go:10
FunctionTestMeAgendaExcludedEventsAreNotRead
(t *testing.T)
internal/server/handlers_me_agenda_events_test.go:73
FunctionTestMeAgendaGroupParameter
(t *testing.T)
internal/server/handlers_me_agenda_counts_test.go:129
FunctionTestMeAgendaGroupPinnedToken
A pinned token never names a group: the refusal is the same whether the id is its own, unknown or built in. With no group it stays inside its workspac
internal/server/handlers_me_agenda_counts_test.go:171
FunctionTestMeAgendaGroupsBelongToCaller
(t *testing.T)
internal/server/agenda_roundtrip_regression_test.go:201
FunctionTestMeAgendaGuestRestrictedCollection
(t *testing.T)
internal/server/handlers_me_agenda_test.go:150
FunctionTestMeAgendaHiddenItemNotCounted
(t *testing.T)
internal/server/handlers_me_agenda_test.go:164
FunctionTestMeAgendaInclude
(t *testing.T)
internal/server/handlers_me_agenda_events_test.go:43
FunctionTestMeAgendaLostAccessDropsSilently
(t *testing.T)
internal/server/handlers_me_agenda_test.go:182
FunctionTestMeAgendaMergesWorkspacesDeterministically
(t *testing.T)
internal/server/handlers_me_agenda_test.go:203
FunctionTestMeAgendaNoAdmissionIsEmpty
(t *testing.T)
internal/server/handlers_me_agenda_test.go:398
FunctionTestMeAgendaPriorityListCarriesForecast
(t *testing.T)
internal/server/handlers_agenda_forecast_test.go:80
FunctionTestMeAgendaRefusesApp
(t *testing.T)
internal/server/handlers_me_agenda_test.go:71
FunctionTestMeAgendaRequiresAuth
(t *testing.T)
internal/server/handlers_me_agenda_test.go:82
FunctionTestMeAgendaScanCapIsRequestWide
(t *testing.T)
internal/server/handlers_me_agenda_scan_test.go:5
FunctionTestMeAgendaTokenAllowlist
(t *testing.T)
internal/server/handlers_me_agenda_test.go:102
← previousnext →21,301–21,400 of 28,840, ranked by callers