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
Function
TestResolveItemCollectionSlug_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
Function
TestResolveItemCollectionSlug_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
Function
TestResolveItemCollectionSlug_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
Function
TestResolveItemCollectionSlug_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
Function
TestResolveItemCollectionSlug_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
Function
TestResolveItem_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
Function
TestResolveLastOccurrenceDoneFilter
(t *testing.T)
internal/store/schedule_end_no_done_field_test.go:68
Function
TestResolveLastOccurrenceEndScheduleRecordsConsent
(t *testing.T)
internal/store/schedule_end_guard_test.go:109
Function
TestResolveLastOccurrenceOpenItemRefused
(t *testing.T)
internal/store/schedule_end_guard_test.go:83
Function
TestResolveLastOccurrenceSelectWithoutOptions
(t *testing.T)
internal/store/schedule_end_no_done_field_test.go:29
Function
TestResolveLastOccurrenceTerminalItemUnguarded
(t *testing.T)
internal/store/schedule_end_guard_test.go:146
Function
TestResolveLastOccurrenceWithoutDoneField
(t *testing.T)
internal/store/schedule_end_no_done_field_test.go:13
Function
TestResolveMCPEndpoints
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
Function
TestResolveMCPEndpoints_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
Function
TestResolveMissedSingleFireAndPartition
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
Function
TestResolveMode
TASK-3577: the billing mode and the sidecar's offer.
internal/billing/offer_test.go:15
Function
TestResolveMonotonic
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
Function
TestResolveNeverWalksBeforeAnchor
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
Function
TestResolveOccurrenceAckConcurrentWriters
(t *testing.T)
internal/store/schedule_ack_test.go:131
Function
TestResolveOccurrenceAckFloatingIdentity
(t *testing.T)
internal/store/schedule_ack_test.go:105
Function
TestResolveOccurrenceAckKeepsOneShotOutstanding
(t *testing.T)
internal/store/schedule_ack_test.go:31
Function
TestResolveOccurrenceAckTransitions
(t *testing.T)
internal/store/schedule_ack_test.go:54
Function
TestResolveOutboundSecret
(t *testing.T)
internal/billing/cloud_client_test.go:310
Function
TestResolvePastDeadlineConfirmation
(t *testing.T)
internal/store/commitment_past_deadline_test.go:22
Function
TestResolvePlaybookIgnoresInvisibleCollections
TestResolvePlaybookIgnoresInvisibleCollections locks the shadowing fix from Before traits this was structurally impossible: resolution named one coll
internal/server/handlers_collection_traits_test.go:237
Function
TestResolvePrecedence
(t *testing.T)
internal/decision/config_test.go:88
Function
TestResolvePushGatewaySecret
(t *testing.T)
cmd/pad/push_secret_test.go:9
Function
TestResolveRelationReferents_AcceptsIDAndRefAndCanonicalises
(t *testing.T)
internal/store/relation_referents_test.go:51
Function
TestResolveRelationReferents_IsDeterministicAndBatched
(t *testing.T)
internal/store/relation_referents_test.go:225
Function
TestResolveRelationReferents_LeavesNonWritesAlone
(t *testing.T)
internal/store/relation_referents_test.go:142
Function
TestResolveRelationReferents_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
Function
TestResolveRelationReferents_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
Function
TestResolveRelationReferents_RejectsUnresolvableValues
(t *testing.T)
internal/store/relation_referents_test.go:74
Function
TestResolveRelationReferents_SoftDeletedTargetDoesNotResolve
(t *testing.T)
internal/store/relation_referents_test.go:172
Function
TestResolveRelationReferents_TargetCollectionProblems
(t *testing.T)
internal/store/relation_referents_test.go:195
Function
TestResolveRoleSlug_404SurfacesAsClearError
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:684
Function
TestResolveRoleSlug_ExplicitIDWins
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:663
Function
TestResolveRoleSlug_PassesThroughWhenMissing
--- Slug-based --role resolution ---
internal/mcp/dispatch_http_links_test.go:624
Function
TestResolveRoleSlug_ResolvesByExactSlug
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:640
Function
TestResolveShareLink_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
Function
TestResolveShareLink_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
Function
TestResolveSnoozeAndMove
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
Function
TestResolveSoftDeadlineMoveReasonOptional
A soft deadline accepts an optional reason; a hard deadline refuses a move.
internal/store/schedule_resolve_test.go:342
Function
TestResolveStale
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
Function
TestResolveTool
(t *testing.T)
internal/cli/agents_test.go:10
Function
TestResolveUserPermission_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
Function
TestResolveWaitsOnTheScheduleBeforeTheReminder
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
Function
TestResolveWouldEndRacesItemClose
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
Function
TestResolve_ActualWithinTheCurrentSecondIsNotFuture
(t *testing.T)
internal/store/commitment_journal_test.go:490
Function
TestResolve_AllDayDoneActualMatchesImmutableWall
(t *testing.T)
internal/store/commitment_journal_test.go:478
Function
TestResolve_DoneRecordsRecordedNowAndRejectsFutureActual
(t *testing.T)
internal/store/commitment_journal_test.go:252
Function
TestResolve_LateReportedDoneAdvancesFromActual
(t *testing.T)
internal/store/commitment_journal_test.go:219
Function
TestResolve_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
Function
TestResolve_Order
(t *testing.T)
internal/needs/resolve_test.go:13
Function
TestResolve_RepeatTargetMovesThenDoneRetainsEveryMove
(t *testing.T)
internal/store/commitment_journal_test.go:175
Function
TestResolver_Apply_CachesPerSource
(t *testing.T)
internal/cmdhelp/dynamic_test.go:130
Function
TestResolver_Apply_GlobalFlags
(t *testing.T)
internal/cmdhelp/dynamic_test.go:320
Function
TestResolver_Apply_GracefulOnError
(t *testing.T)
internal/cmdhelp/dynamic_test.go:149
Function
TestResolver_Apply_NilIsNoOp
(t *testing.T)
internal/cmdhelp/dynamic_test.go:180
Function
TestResolver_Apply_PerCommandArgBindings
(t *testing.T)
internal/cmdhelp/dynamic_test.go:292
Function
TestResolver_Apply_PerCommandBindingScoped
(t *testing.T)
internal/cmdhelp/dynamic_test.go:222
Function
TestResolver_Apply_PerCommandWinsOverWildcard
(t *testing.T)
internal/cmdhelp/dynamic_test.go:259
Function
TestResolver_Apply_PopulatesContext
(t *testing.T)
internal/cmdhelp/dynamic_test.go:115
Function
TestResolver_Apply_PopulatesEnumOnArgs
(t *testing.T)
internal/cmdhelp/dynamic_test.go:71
Function
TestResolver_Apply_PopulatesEnumOnFlags
(t *testing.T)
internal/cmdhelp/dynamic_test.go:94
Function
TestResolver_Apply_PreservesExistingEnum
(t *testing.T)
internal/cmdhelp/dynamic_test.go:196
Function
TestResolver_Apply_UnaffectedCommandsUnchanged
(t *testing.T)
internal/cmdhelp/dynamic_test.go:338
Function
TestRestartCursorIsRefusedBecauseTheIDSpacesAreDisjoint
(t *testing.T)
internal/events/idspace_test.go:50
Function
TestRestartCursorIsRefusedBecauseTheIDSpacesAreDisjoint
(t *testing.T)
internal/watchevents/idspace_test.go:29
Function
TestRestoreBoundaryMonotonic
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
Function
TestRestoreCollection_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
Function
TestRestoreCollection_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
Function
TestRestoreCollection_TASK2189_RoundTripWithItems
(t *testing.T)
internal/server/task2189_collection_restore_test.go:53
Function
TestRestoreCommitForceClosesThenFallsBack
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
Function
TestRestoreDocument_ReStampsAttachmentRefs
(t *testing.T)
internal/store/attachments_restore_stamp_test.go:39
Function
TestRestoreFinalizesPersistedApplierAsSuccess_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
Function
TestRestoreFinalizesUnpersistedApplierAsRetry
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
Function
TestRestoreForceRefreshesStaleSeedOnJoin
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
Function
TestRestoreItemLimit_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
Function
TestRestoreItemLimit_WaitsForCompetitor_ThenRefuses
(t *testing.T)
internal/store/restore_plan_limit_test.go:101
Function
TestRestoreItemLimit_WaitsForNonCountingHolder_ThenAdmits
(t *testing.T)
internal/store/restore_plan_limit_test.go:106
Function
TestRestoreItemVersionEmitsItemUpdatedSSE
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
Function
TestRestoreItem_ReStampsAttachmentRefs
(t *testing.T)
internal/store/attachments_restore_stamp_test.go:81
Function
TestRestoreItem_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
Function
TestRestoreLegacyPersistedIsAmbiguousNoReapply
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
Function
TestRestoreLiveRoomPrunesAndReseeds
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
Function
TestRestoreNoRoomStillPrunesAndWrites
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
Function
TestRestoreOverrideDiscardsPendingEdits
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
Function
TestRestorePlanLimit_Bulk_RoomForBoth_Admitted
(t *testing.T)
internal/server/handlers_restore_plan_limit_test.go:198
Function
TestRestorePlanLimit_Bulk_RoomForOne_SecondRefused
(t *testing.T)
internal/server/handlers_restore_plan_limit_test.go:165
Function
TestRestorePlanLimit_SelfHosted_NotEnforced
--- self-hosted: no cap applies ---
internal/server/handlers_restore_plan_limit_test.go:220
Function
TestRestorePlanLimit_Single_AtCap_Refused
--- single door ---
internal/server/handlers_restore_plan_limit_test.go:78
Function
TestRestorePlanLimit_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
Function
TestRestorePlanLimit_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
Function
TestRestorePlanLimit_Single_UnderCap_Admitted
(t *testing.T)
internal/server/handlers_restore_plan_limit_test.go:89
Function
TestRestoreProceedsAfterInitiatorFlush
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
Function
TestRestorePrunesStalePeerOpAndFencesStaleCursor
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
Function
TestRestoreRefusalOnPostgresLeavesPeersConnected
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
Function
TestRestoreRefusesOverPendingEdits_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
Function
TestRestoreRefusesOverPendingEdits_NoRoom
(t *testing.T)
internal/server/handlers_item_versions_bug3031_test.go:95
← previous
next →
23,701–23,800 of 28,840, ranked by callers