MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestResolveItemCollectionSlug_ListAcceptsTheSingular
Listing resolves the same way creation does — they are the two halves of the same complaint (`pad item create spec` / `pad item list spec`).
internal/server/collection_resolve_test.go:105
FunctionTestResolveItemCollectionSlug_MoveAcceptsTheSingular
`pad item move <ref> <target-collection>` takes a user-typed collection name too, and the bug's own body names move alongside create and list.
internal/server/collection_resolve_test.go:232
FunctionTestResolveItemCollectionSlug_PluralOfASingularCollection
The reverse direction: a workspace whose collection is genuinely singular still answers to the plural a user might type out of habit.
internal/server/collection_resolve_test.go:202
FunctionTestResolveItemCollectionSlug_SingularOfANonDefaultCollection
The reported case: a collection the hardcoded client map has never heard of gets a working singular form.
internal/server/collection_resolve_test.go:80
FunctionTestResolveItemCollectionSlug_UnknownStillNotFound
A name that matches nothing must still 404. The fallbacks widen what resolves; they must not make everything resolve.
internal/server/collection_resolve_test.go:219
FunctionTestResolveItem_RefBeforeSlugPrecedence
Current refs win over colliding slugs (BUG-2943). Ref-shaped misses with any uppercase rune are terminal, preserving canonical-ref safety (BUG-4119 r1
internal/store/prefix_doors_test.go:325
FunctionTestResolveLastOccurrenceDoneFilter
(t *testing.T)
internal/store/schedule_end_no_done_field_test.go:68
FunctionTestResolveLastOccurrenceEndScheduleRecordsConsent
(t *testing.T)
internal/store/schedule_end_guard_test.go:109
FunctionTestResolveLastOccurrenceOpenItemRefused
(t *testing.T)
internal/store/schedule_end_guard_test.go:83
FunctionTestResolveLastOccurrenceSelectWithoutOptions
(t *testing.T)
internal/store/schedule_end_no_done_field_test.go:29
FunctionTestResolveLastOccurrenceTerminalItemUnguarded
(t *testing.T)
internal/store/schedule_end_guard_test.go:146
FunctionTestResolveLastOccurrenceWithoutDoneField
(t *testing.T)
internal/store/schedule_end_no_done_field_test.go:13
FunctionTestResolveMCPEndpoints
PLAN-2310 DR-3: MCP addressing comes from configuration only, never from a request, and an unusable value is reported, never fatal.
internal/config/mcp_test.go:10
FunctionTestResolveMCPEndpoints_OverrideSpellingUnchanged
Issued OAuth tokens are bound to the audience cmd_server.go has always built: strings.TrimRight(PAD_MCP_PUBLIC_URL, "/"). PLAN-2310 U2 builds it from
internal/config/mcp_test.go:158
FunctionTestResolveMissedSingleFireAndPartition
Passed-over instances become `missed` rows, the outstanding one is not among them, and the partition at now-1s has no gap and no overlap. A tick fires
internal/store/schedule_resolve_test.go:157
FunctionTestResolveMode
TASK-3577: the billing mode and the sidecar's offer.
internal/billing/offer_test.go:15
FunctionTestResolveMonotonic
TestResolveMonotonic walks every minute of the 48 hours around each transition. Outside a gap a later wall reading never resolves to an earlier instan
internal/schedule/resolve_test.go:73
FunctionTestResolveNeverWalksBeforeAnchor
The walk starts at the anchor, never at a dtstart years back: RED if resolve computes from dtstart (cap_scan) or ignores the floor. A floating variant
internal/store/schedule_resolve_test.go:569
FunctionTestResolveOccurrenceAckConcurrentWriters
(t *testing.T)
internal/store/schedule_ack_test.go:131
FunctionTestResolveOccurrenceAckFloatingIdentity
(t *testing.T)
internal/store/schedule_ack_test.go:105
FunctionTestResolveOccurrenceAckKeepsOneShotOutstanding
(t *testing.T)
internal/store/schedule_ack_test.go:31
FunctionTestResolveOccurrenceAckTransitions
(t *testing.T)
internal/store/schedule_ack_test.go:54
FunctionTestResolveOutboundSecret
(t *testing.T)
internal/billing/cloud_client_test.go:310
FunctionTestResolvePastDeadlineConfirmation
(t *testing.T)
internal/store/commitment_past_deadline_test.go:22
FunctionTestResolvePlaybookIgnoresInvisibleCollections
TestResolvePlaybookIgnoresInvisibleCollections locks the shadowing fix from Before traits this was structurally impossible: resolution named one coll
internal/server/handlers_collection_traits_test.go:237
FunctionTestResolvePrecedence
(t *testing.T)
internal/decision/config_test.go:88
FunctionTestResolvePushGatewaySecret
(t *testing.T)
cmd/pad/push_secret_test.go:9
FunctionTestResolveRelationReferents_AcceptsIDAndRefAndCanonicalises
(t *testing.T)
internal/store/relation_referents_test.go:51
FunctionTestResolveRelationReferents_IsDeterministicAndBatched
(t *testing.T)
internal/store/relation_referents_test.go:225
FunctionTestResolveRelationReferents_LeavesNonWritesAlone
(t *testing.T)
internal/store/relation_referents_test.go:142
FunctionTestResolveRelationReferents_OverflowingRefDoesNotResolve
A ref whose number overflows must not resolve to a different item (TASK-2878). `parseItemRef` accumulated into a machine int with no bound, so "COLO-
internal/store/relation_referents_test.go:402
FunctionTestResolveRelationReferents_RefDoesNotFallBackAcrossALivePrefix
BUG-4119: neither a live prefix miss nor a prefix-only rename proves that a relation ref names this item. Only durable collection moves permit the sha
internal/store/relation_referents_test.go:854
FunctionTestResolveRelationReferents_RejectsUnresolvableValues
(t *testing.T)
internal/store/relation_referents_test.go:74
FunctionTestResolveRelationReferents_SoftDeletedTargetDoesNotResolve
(t *testing.T)
internal/store/relation_referents_test.go:172
FunctionTestResolveRelationReferents_TargetCollectionProblems
(t *testing.T)
internal/store/relation_referents_test.go:195
FunctionTestResolveRoleSlug_404SurfacesAsClearError
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:684
FunctionTestResolveRoleSlug_ExplicitIDWins
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:663
FunctionTestResolveRoleSlug_PassesThroughWhenMissing
--- Slug-based --role resolution ---
internal/mcp/dispatch_http_links_test.go:624
FunctionTestResolveRoleSlug_ResolvesByExactSlug
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:640
FunctionTestResolveShareLink_AggregateCap
TestResolveShareLink_AggregateCap pins the anti-botnet layer of TASK-2055: a distributed attacker rotating source IPs gets a fresh per-IP burst from e
internal/server/handlers_share_links_bruteforce_test.go:136
FunctionTestResolveShareLink_PasswordBruteForceLimiter
TestResolveShareLink_PasswordBruteForceLimiter pins TASK-2055: password verification on a share link must be throttled per-share so a password-protect
internal/server/handlers_share_links_bruteforce_test.go:31
FunctionTestResolveSnoozeAndMove
snooze re-fires the same occurrence at until; move changes its due instant; a later done overwrites the `moved` row; done after a snooze clears the ov
internal/store/schedule_resolve_test.go:486
FunctionTestResolveSoftDeadlineMoveReasonOptional
A soft deadline accepts an optional reason; a hard deadline refuses a move.
internal/store/schedule_resolve_test.go:342
FunctionTestResolveStale
Stale: a wrong instant, an already-resolved instant, an ended schedule and a floating schedule whose recipient zone moved after the read each answer E
internal/store/schedule_resolve_test.go:430
FunctionTestResolveTool
(t *testing.T)
internal/cli/agents_test.go:10
FunctionTestResolveUserPermission_GrantsDoNotCrossWorkspaces
TestResolveUserPermission_GrantsDoNotCrossWorkspaces pins PLAN-2391 DR-5. A guest holds grants in workspace B only. Resolving with workspace A's ID w
internal/store/grants_test.go:20
FunctionTestResolveWaitsOnTheScheduleBeforeTheReminder
Postgres: resolve enters through the same pin as a fire, so a writer holding the schedule makes it wait in the pin before it touches the comment table
internal/store/schedule_resolve_test.go:763
FunctionTestResolveWouldEndRacesItemClose
The guard reads the item under the pin: a close or reopen that commits before the resolve takes it decides the outcome, including one that commits whi
internal/store/schedule_end_guard_test.go:175
FunctionTestResolve_ActualWithinTheCurrentSecondIsNotFuture
(t *testing.T)
internal/store/commitment_journal_test.go:490
FunctionTestResolve_AllDayDoneActualMatchesImmutableWall
(t *testing.T)
internal/store/commitment_journal_test.go:478
FunctionTestResolve_DoneRecordsRecordedNowAndRejectsFutureActual
(t *testing.T)
internal/store/commitment_journal_test.go:252
FunctionTestResolve_LateReportedDoneAdvancesFromActual
(t *testing.T)
internal/store/commitment_journal_test.go:219
FunctionTestResolve_MentionedRowIsPerPerson
A mentioned person's row is computed from their own mentions only; another person's mention must not reach it.
internal/needs/resolve_test.go:94
FunctionTestResolve_Order
(t *testing.T)
internal/needs/resolve_test.go:13
FunctionTestResolve_RepeatTargetMovesThenDoneRetainsEveryMove
(t *testing.T)
internal/store/commitment_journal_test.go:175
FunctionTestResolver_Apply_CachesPerSource
(t *testing.T)
internal/cmdhelp/dynamic_test.go:130
FunctionTestResolver_Apply_GlobalFlags
(t *testing.T)
internal/cmdhelp/dynamic_test.go:320
FunctionTestResolver_Apply_GracefulOnError
(t *testing.T)
internal/cmdhelp/dynamic_test.go:149
FunctionTestResolver_Apply_NilIsNoOp
(t *testing.T)
internal/cmdhelp/dynamic_test.go:180
FunctionTestResolver_Apply_PerCommandArgBindings
(t *testing.T)
internal/cmdhelp/dynamic_test.go:292
FunctionTestResolver_Apply_PerCommandBindingScoped
(t *testing.T)
internal/cmdhelp/dynamic_test.go:222
FunctionTestResolver_Apply_PerCommandWinsOverWildcard
(t *testing.T)
internal/cmdhelp/dynamic_test.go:259
FunctionTestResolver_Apply_PopulatesContext
(t *testing.T)
internal/cmdhelp/dynamic_test.go:115
FunctionTestResolver_Apply_PopulatesEnumOnArgs
(t *testing.T)
internal/cmdhelp/dynamic_test.go:71
FunctionTestResolver_Apply_PopulatesEnumOnFlags
(t *testing.T)
internal/cmdhelp/dynamic_test.go:94
FunctionTestResolver_Apply_PreservesExistingEnum
(t *testing.T)
internal/cmdhelp/dynamic_test.go:196
FunctionTestResolver_Apply_UnaffectedCommandsUnchanged
(t *testing.T)
internal/cmdhelp/dynamic_test.go:338
FunctionTestRestartCursorIsRefusedBecauseTheIDSpacesAreDisjoint
(t *testing.T)
internal/events/idspace_test.go:50
FunctionTestRestartCursorIsRefusedBecauseTheIDSpacesAreDisjoint
(t *testing.T)
internal/watchevents/idspace_test.go:29
FunctionTestRestoreBoundaryMonotonic
TestRestoreBoundaryMonotonic covers the per-item restore boundary the collab-snapshot PATCH handler consults to reject stale pre-restore flushes (BUG-
internal/collab/manager_test.go:595
FunctionTestRestoreCollection_TASK2189_BesideANewerSameNamedCollection
A newer collection with the archived one's name took `x-2`, so a restore brings the old one back beside it, both reachable.
internal/server/task2189_collection_restore_test.go:113
FunctionTestRestoreCollection_TASK2189_RestrictedOwnerVisibility
A restricted owner can neither list nor restore an archived collection they could not see live; the visible one works.
internal/server/task2189_collection_restore_test.go:138
FunctionTestRestoreCollection_TASK2189_RoundTripWithItems
(t *testing.T)
internal/server/task2189_collection_restore_test.go:53
FunctionTestRestoreCommitForceClosesThenFallsBack
TestRestoreCommitForceClosesThenFallsBack: an in-flight (unpersisted) applier finalized by a COMMITTING restore re-elects against the force-closed roo
internal/collab/restore_coord_test.go:297
FunctionTestRestoreDocument_ReStampsAttachmentRefs
(t *testing.T)
internal/store/attachments_restore_stamp_test.go:39
FunctionTestRestoreFinalizesPersistedApplierAsSuccess_DelayedAck
TestRestoreFinalizesPersistedApplierAsSuccess_DelayedAck is the durable-correlation replacement for the old timing-grace sub-case (A) test. An in-flig
internal/collab/restore_coord_test.go:113
FunctionTestRestoreFinalizesUnpersistedApplierAsRetry
TestRestoreFinalizesUnpersistedApplierAsRetry is sub-case (B): an in-flight applier that opened its bracket but whose setContent did NOT persist (no f
internal/collab/restore_coord_test.go:210
FunctionTestRestoreForceRefreshesStaleSeedOnJoin
TestRestoreForceRefreshesStaleSeedOnJoin is the BUG-2264 stale-SEED guard: after a restore, a client that connects with a Y.Doc seeded from PRE-restor
internal/server/handlers_items_collab_versions_test.go:822
FunctionTestRestoreItemLimit_AtCap_OptionAndLiveItem
At the cap: without the option the restore is unlimited; with it, a live item is still not-found (never a plan refusal) and an archived one refuses.
internal/store/restore_plan_limit_test.go:113
FunctionTestRestoreItemLimit_WaitsForCompetitor_ThenRefuses
(t *testing.T)
internal/store/restore_plan_limit_test.go:101
FunctionTestRestoreItemLimit_WaitsForNonCountingHolder_ThenAdmits
(t *testing.T)
internal/store/restore_plan_limit_test.go:106
FunctionTestRestoreItemVersionEmitsItemUpdatedSSE
TestRestoreItemVersionEmitsItemUpdatedSSE proves the restore handler emits the item_updated SSE whenever it produces an updated item — the event path
internal/server/handlers_item_versions_test.go:261
FunctionTestRestoreItem_ReStampsAttachmentRefs
(t *testing.T)
internal/store/attachments_restore_stamp_test.go:81
FunctionTestRestoreItem_ReStampsFieldsRefs
TestRestoreItem_ReStampsFieldsRefs covers the item fields JSON channel — an attachment referenced only from a field value (e.g. a cover image) must be
internal/store/attachments_restore_stamp_test.go:126
FunctionTestRestoreLegacyPersistedIsAmbiguousNoReapply
TestRestoreLegacyPersistedIsAmbiguousNoReapply is a mixed-deploy guard: a LEGACY (non-bracket-capable) applier persists its setContent before a restor
internal/collab/restore_coord_test.go:726
FunctionTestRestoreLiveRoomPrunesAndReseeds
TestRestoreLiveRoomPrunesAndReseeds is the BUG-2264 prune+reseed happy path: a restore under a live collab room writes items.content=restored, prunes
internal/server/handlers_items_collab_versions_test.go:688
FunctionTestRestoreNoRoomStillPrunesAndWrites
TestRestoreNoRoomStillPrunesAndWrites: with collab configured but no live room, the restore still writes items.content=restored and prunes any stale o
internal/server/handlers_items_collab_versions_test.go:762
FunctionTestRestoreOverrideDiscardsPendingEdits
The override is today's restore: the pending rows are pruned, the content is restored, and the undo point brackets the saved body.
internal/server/handlers_item_versions_bug3031_test.go:132
FunctionTestRestorePlanLimit_Bulk_RoomForBoth_Admitted
(t *testing.T)
internal/server/handlers_restore_plan_limit_test.go:198
FunctionTestRestorePlanLimit_Bulk_RoomForOne_SecondRefused
(t *testing.T)
internal/server/handlers_restore_plan_limit_test.go:165
FunctionTestRestorePlanLimit_SelfHosted_NotEnforced
--- self-hosted: no cap applies ---
internal/server/handlers_restore_plan_limit_test.go:220
FunctionTestRestorePlanLimit_Single_AtCap_Refused
--- single door ---
internal/server/handlers_restore_plan_limit_test.go:78
FunctionTestRestorePlanLimit_Single_CompetingCreateInWindow_Refused
The store refusal on its own, with the handler pre-check admitting: a row that fills the cap lands between the pre-check and the restore.
internal/server/handlers_restore_plan_limit_test.go:107
FunctionTestRestorePlanLimit_Single_LiveItemAtCap_NotFound
An item that is not archived still answers not-found, at the cap or not: the limit must not turn "nothing to restore" into a plan refusal.
internal/server/handlers_restore_plan_limit_test.go:133
FunctionTestRestorePlanLimit_Single_UnderCap_Admitted
(t *testing.T)
internal/server/handlers_restore_plan_limit_test.go:89
FunctionTestRestoreProceedsAfterInitiatorFlush
Condition (1): the web initiator drains its own editor through a collab-snapshot flush before it restores (BUG-2271). That flush advances the watermar
internal/server/handlers_item_versions_bug3031_test.go:181
FunctionTestRestorePrunesStalePeerOpAndFencesStaleCursor
TestRestorePrunesStalePeerOpAndFencesStaleCursor is the BUG-2264 P1b guard: after the prune the op-log is empty, and an in-flight stale collab-snapsho
internal/server/handlers_items_collab_versions_test.go:720
FunctionTestRestoreRefusalOnPostgresLeavesPeersConnected
BUG-3031 on Postgres. A refused restore returns an error from its commit, and on Postgres ForceRefreshRoom hands every commit error to the reconcile r
internal/server/handlers_item_versions_bug3031_pg_test.go:24
FunctionTestRestoreRefusesOverPendingEdits_LiveRoom
With a live room, a refusal must also leave the peers alone: no force_refresh (which would discard their document) and no stuck freeze (which would dr
internal/server/handlers_item_versions_bug3031_test.go:108
FunctionTestRestoreRefusesOverPendingEdits_NoRoom
(t *testing.T)
internal/server/handlers_item_versions_bug3031_test.go:95
← previousnext →23,701–23,800 of 28,840, ranked by callers