MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestCopyPreflight_RelationDroppedCarriedKeyDoesNotExemptTheDefault
A carried key the RELATION pass dropped must stop counting as carried when the destination default that replaces it is visibility-checked. The prefli
internal/server/handlers_items_copy_relation_test.go:842
FunctionTestCopyPreflight_RelationNeedsValueReportsADeletedTarget
IDEA-2899. TASK-2869 made a needs_value relation row COLLECTABLE as soon as it names a target collection. Naming one is not having one: the slug can n
internal/server/handlers_items_copy_relation_test.go:1221
FunctionTestCopyPreflight_RelationNeedsValueReportsAnUnreadableTarget
The other half of the same defect, and the half the client provably cannot compute: the collection EXISTS and this caller cannot read it.
internal/server/handlers_items_copy_relation_test.go:1261
FunctionTestCopyPreflight_RelationshipCountersAreACLFiltered
TestCopyPreflight_RelationshipCountersAreACLFiltered — the warning counters must not become a wider window onto the source workspace than children and
internal/server/handlers_items_copy_preflight_test.go:1163
FunctionTestCopyPreflight_RepeatedCallsAreByteIdentical
TestCopyPreflight_RepeatedCallsAreByteIdentical — DR-15 requires the preflight to be safe to call repeatedly, which is only true if the answer is stab
internal/server/handlers_items_copy_preflight_test.go:1051
FunctionTestCopyPreflight_ReportsReferentialMetadataAsNotPortable
BUG-2674. github_pr is REFERENTIAL system metadata: it names a repository belonging to the source workspace's context. It carries on an intra-workspac
internal/server/handlers_items_copy_preflight_test.go:2090
FunctionTestCopyPreflight_ReportsReservedMetadataAsCarried
BUG-2674. MigrateFields now carries reserved system metadata across a collection or workspace change instead of dropping it. The preflight builds `car
internal/server/handlers_items_copy_preflight_test.go:2022
FunctionTestCopyPreflight_RequiredRelationNeedsValueCarriesItsCollection
A required RELATION in the destination reaches the dialog with its target collection, so the picker can be scoped to it (TASK-2869 / U2b). `ItemCopyP
internal/server/handlers_items_copy_relation_test.go:1150
FunctionTestCopyPreflight_RouteIsWiredAndEchoesArchiveSource
TestCopyPreflight_RouteIsWiredAndEchoesArchiveSource goes through the REAL router rather than calling the handler directly, so the route registration
internal/server/handlers_items_copy_preflight_test.go:1419
FunctionTestCopyPreflight_SourceCheckRunsBeforeDestination
TestCopyPreflight_SourceCheckRunsBeforeDestination pins the ORDERING, not just the set. A caller who fails BOTH checks must get the SOURCE's verdict —
internal/server/handlers_items_copy_preflight_test.go:787
FunctionTestCopyPreflight_SourceEditDenied
TestCopyPreflight_SourceEditDenied — visible but read-only in A. The copy is a read out of A, but DR-10b requires EDIT on the source, and the refusal
internal/server/handlers_items_copy_preflight_test.go:710
FunctionTestCopyPreflight_SourceIsItemScopedNotCollectionScoped
TestCopyPreflight_SourceIsItemScopedNotCollectionScoped pins WHICH scope the source check uses. An item scope and a collection scope both look plausib
internal/server/handlers_items_copy_preflight_test.go:1123
FunctionTestCopyPreflight_SourceItemNotVisible
TestCopyPreflight_SourceItemNotVisible is DR-10b's headline regression: a restricted editor who cannot see the SOURCE collection gets a bare 404 and l
internal/server/handlers_items_copy_preflight_test.go:690
FunctionTestCopyPreflight_TokenAllowListEnforcedOnDestination
TestCopyPreflight_TokenAllowListEnforcedOnDestination — the consent allow-list is applied automatically only for the workspace in the URL, so the dest
internal/server/handlers_items_copy_preflight_test.go:810
FunctionTestCopyPreflight_WarningsAllReported
--- warnings ---------------------------------------------------------- TestCopyPreflight_WarningsAllReported asserts every DR-15 warning with a non-z
internal/server/handlers_items_copy_preflight_test.go:431
FunctionTestCopyPreflight_WritesNothing
TestCopyPreflight_WritesNothing is DR-15's non-mutation clause, asserted term by term: no item, no attachment row, no provenance row, no activity, no
internal/server/handlers_items_copy_preflight_test.go:905
FunctionTestCopyReportsJournalRowsDropped
A copy carries no journal row, so every row is reported dropped, and the preflight reports the same number.
internal/store/schedule_copy_test.go:1283
FunctionTestCopyRollbackErrorClassification
TestCopyRollbackErrorClassification pins the distinction between a genuine deadlock and SQLite writer contention. These two must never collapse into
internal/store/items_cross_workspace_copy_test.go:1426
FunctionTestCopySkipsEndedSchedule
An ended source schedule is skipped as "ended", and a move still ends nothing that is not live.
internal/store/schedule_copy_test.go:202
FunctionTestCopySkipsUncompilableSchedule
A schedule whose rule does not compile is skipped with its reason; the item is still copied.
internal/store/schedule_copy_test.go:181
FunctionTestCopyTransport_ClonesAPlainTransportButNotAWrapper
copyTransport must preserve a plain *http.Transport's configuration — dropping proxy/TLS settings would turn DR-13 compliance into a connection bug.
internal/cli/client_items_copy_test.go:273
FunctionTestCopyWithAnUnreadableSourceOccurrenceKeepsTodaysBehaviour
(t *testing.T)
internal/store/schedule_copy_r3_test.go:270
FunctionTestCopy_HiddenAttachmentIsNotCloned
--- 1. the mutation-verified core ------------------------------------- TestCopy_HiddenAttachmentIsNotCloned is BUG-2407's headline regression. MUTAT
internal/server/handlers_items_copy_attachment_authz_test.go:197
FunctionTestCopy_OrphanCopiesForAnUnrestrictedCaller
TestCopy_OrphanCopiesForAnUnrestrictedCaller is the counterweight to the orphan case above: the rule is about RESTRICTED callers, not about orphans, a
internal/server/handlers_items_copy_attachment_authz_test.go:374
FunctionTestCopy_UnauthorizedParentsAreAllUnresolvable
--- 3. the rest of the outcome set ------------------------------------ TestCopy_UnauthorizedParentsAreAllUnresolvable walks the outcomes resolveAttac
internal/server/handlers_items_copy_attachment_authz_test.go:286
FunctionTestCopy_VisibleAttachmentsStillClone
--- 4. the control ---------------------------------------------------- TestCopy_VisibleAttachmentsStillClone is the assertion that keeps the fix hone
internal/server/handlers_items_copy_attachment_authz_test.go:397
FunctionTestCorpusIsWellFormed
TestCorpusIsWellFormed checks the corpus before anything is measured against it. A corpus with a duplicated case, a missing rationale, or a value that
internal/textguard/corpus_test.go:32
FunctionTestCorpusParity
TestCorpusParity: the embedded bundle, in goja, reproduces the live editor's flush output byte for byte. The corpus's `expected` values were produced
internal/materialize/materialize_test.go:80
FunctionTestCorrectionIsNotAResolution
Resolution reads the occurrence rows, never the journal: a correction row is not a resolution, and a forged one resolves nothing.
internal/store/commitment_c1_test.go:420
FunctionTestCorsAllowCredentials
(t *testing.T)
internal/server/middleware_security_test.go:76
FunctionTestCountAttachmentRefsMatchesPlan
(t *testing.T)
internal/store/items_copy_attachment_limit_test.go:153
FunctionTestCountBacklinks_ExcludesSourcesFromSoftDeletedCollections
(t *testing.T)
internal/store/bug3344_backlinks_deleted_collection_test.go:54
FunctionTestCountBillingAggregates
(t *testing.T)
internal/store/users_test.go:214
FunctionTestCountBillingAggregates_ExpiredProIsFree
The billing aggregates count by effective plan: an expired pro is free.
internal/store/bug3356_plan_revision_test.go:185
FunctionTestCountClaimableDecisionJobs
CountClaimableDecisionJobs counts what ClaimDecisionJobs could take now: not a claimed job, not a debounced one, not a retired one, nor another item's
internal/store/decisions_owe_test.go:90
FunctionTestCountLiveOAuthConnections
PLAN-2310 DR-7 resume counts. A connection is a grant chain (request_id) with an active access OR refresh row, the unit the Connected Apps page lists.
internal/store/mcp_resume_test.go:14
FunctionTestCountLiveOAuthConnections_OrphanChainMatchesPage
A live chain with no oauth_connections row is counted, and the Connected Apps page still lists it: ListUserOAuthConnections takes a defensive fallback
internal/store/mcp_resume_test.go:81
FunctionTestCountMCPUsablePATs
A PAT counts when /mcp would accept it: it has a user_id and has not expired. A legacy workspace token (no user) and an expired user token do not coun
internal/store/mcp_resume_test.go:47
FunctionTestCountNamesKeepNumbersAndSingularCredentialNamesRedact
(t *testing.T)
internal/logging/redaction_followups_test.go:1276
FunctionTestCountNotificationsSentSince
Kills: dropping the `sent` predicate; dropping `user_id`; dropping `>=`.
internal/store/task3939_push_dispatch_test.go:358
FunctionTestCountNotificationsSentSince_ExactBoundary
The window is closed at its start: a row sent exactly at since counts, one second earlier does not. Kills: `sent_at >= ?` weakened to `>`.
internal/store/task3939_push_dispatch_test.go:379
FunctionTestCountPendingContentRowsTx
BUG-3133: CountPendingContentRowsTx is the predicate the write-time refusal and the prune warning both trust. It must agree with content_state: only c
internal/store/bug3133_pending_count_test.go:8
FunctionTestCountStarredItems
(t *testing.T)
internal/store/item_stars_test.go:243
FunctionTestCountWorkspaceContents_MatchesTheExport
TestCountWorkspaceContents_MatchesTheExport pins the property the post-import check rests on (TASK-3612): each count equals the length of the array th
internal/store/workspace_counts_test.go:16
FunctionTestCounterBackwardsSignalsEverySubscriber
TestCounterBackwardsSignalsEverySubscriber is the arm for a shared counter that restarted inside one epoch — evicted under maxmemory, lost to a FLUSHD
internal/watchevents/gap_signal_test.go:183
FunctionTestCoverageDropSignalsOnlyThatWorkspace
TestCoverageDropSignalsOnlyThatWorkspace pins the per-INSTANCE scope on the activity bus. Ending a workspace's coverage makes its next RESUME honest a
internal/events/gap_signal_test.go:261
FunctionTestCoverageDropWithNoBufferStillSignals
TestCoverageDropWithNoBufferStillSignals covers this case. A subscriber that connected and then sat through a pub/sub outage before ANY event was rece
internal/events/gap_signal_test.go:335
FunctionTestCoverageIsReestablishedByTheNextNotification
THE RECOVERY CASE, WRITTEN FIRST AND DELIBERATELY (BUG-2739). dropCoverage resets three fields together, and the failure this test exists for is the
internal/watchevents/redis_reconnect_test.go:146
FunctionTestCreateAPITokenExpiryOverride
(t *testing.T)
internal/store/api_tokens_test.go:73
FunctionTestCreateAPITokenMaxLifetimeEnforced
(t *testing.T)
internal/store/api_tokens_test.go:93
FunctionTestCreateAPITokenNoExpiry
(t *testing.T)
internal/store/api_tokens_test.go:113
FunctionTestCreateAPITokenUserScoped
TestCreateAPITokenUserScoped covers the account-settings path (handleCreateUserToken), which creates a workspace-agnostic token with no WorkspaceID se
internal/store/api_tokens_test.go:15
FunctionTestCreateAPITokenWithExpiry
(t *testing.T)
internal/store/api_tokens_test.go:45
FunctionTestCreateActivityDebounced_AgentMetaPreserved
(t *testing.T)
internal/store/activities_test.go:326
FunctionTestCreateActivityDebounced_CoalescesUpdates
(t *testing.T)
internal/store/activities_test.go:48
FunctionTestCreateActivityDebounced_ConcurrentBurstInsertsOneRow
(t *testing.T)
internal/store/activities_debounce_miss_race_test.go:145
FunctionTestCreateActivityDebounced_ConcurrentMergeKeepsBothChanges
TestCreateActivityDebounced_ConcurrentMergeKeepsBothChanges is the regression test for the lost update itself. A competing writer merges into the chos
internal/store/activities_debounce_race_test.go:95
FunctionTestCreateActivityDebounced_ConcurrentMissInsertsOneRow
BUG-2777. CreateActivityDebounced coalesces a writer's "updated" rows by reading a recent candidate and merging into it; when the read finds NONE it i
internal/store/activities_debounce_miss_race_test.go:34
FunctionTestCreateActivityDebounced_ContentionPastTheBoundKeepsTheChange
TestCreateActivityDebounced_ContentionPastTheBoundKeepsTheChange pins the give-up path. A competitor that wins EVERY attempt exhausts debounceMergeAtt
internal/store/activities_debounce_race_test.go:152
FunctionTestCreateActivityDebounced_DifferentDocsDontCoalesce
(t *testing.T)
internal/store/activities_test.go:198
FunctionTestCreateActivityDebounced_DifferentUsersDontCoalesce
(t *testing.T)
internal/store/activities_test.go:150
FunctionTestCreateActivityDebounced_FrozenRowIsNotRetried
TestCreateActivityDebounced_FrozenRowIsNotRetried pins the OTHER half of the refusal classifier. A comment-linked row refuses the merge for a reason t
internal/store/activities_debounce_race_test.go:335
FunctionTestCreateActivityDebounced_LockedMissSerializes
(t *testing.T)
internal/store/activities_debounce_miss_race_test.go:72
FunctionTestCreateActivityDebounced_MetadataMerge
(t *testing.T)
internal/store/activities_test.go:281
FunctionTestCreateActivityDebounced_MultipleRapidSaves
(t *testing.T)
internal/store/activities_test.go:374
FunctionTestCreateActivityDebounced_NeverMergesIntoCommentLinkedRow
TASK-2760: an item update that carries a comment links the comment to its `updated` activity, and `updated` activities are debounced — a later update
internal/store/comments_agent_name_test.go:313
FunctionTestCreateActivityDebounced_NoUserID
(t *testing.T)
internal/store/activities_test.go:400
FunctionTestCreateActivityDebounced_NonUpdateActions
(t *testing.T)
internal/store/activities_test.go:13
FunctionTestCreateActivityDebounced_NullMetadataRowSurvives
TestCreateActivityDebounced_NullMetadataRowSurvives drives the same blob through the store, since a panic in mergeActivityMeta is only interesting bec
internal/store/activities_debounce_race_test.go:423
FunctionTestCreateActivityDebounced_RetryStampsTheRetryTime
TestCreateActivityDebounced_RetryStampsTheRetryTime pins that the merge's timestamp is taken per ATTEMPT. A retry that reused the instant captured bef
internal/store/activities_debounce_race_test.go:476
FunctionTestCreateActivityDebounced_TimestampBumped
(t *testing.T)
internal/store/activities_test.go:235
FunctionTestCreateActivityDebounced_WriterIdentitySplitsRuns
BUG-2763. The three writer-identity legs the debounce key was missing, all under ONE user account — which is the normal shape, since an agent authenti
internal/store/activities_test.go:667
FunctionTestCreateActivityDebounced_WriterRejoinsItsOwnRun
BUG-2763: with the identity guard added but the candidate query still taking only the newest row overall, a writer that returns inside the window land
internal/store/activities_test.go:847
FunctionTestCreateAndApplyPatch
(t *testing.T)
internal/diff/diff_test.go:8
FunctionTestCreateAttachmentForLiveItem_ArchivedParentRefuses
(t *testing.T)
internal/store/attachments_live_item_test.go:62
FunctionTestCreateAttachmentForLiveItem_BlocksOnArchivingWriter
TestCreateAttachmentForLiveItem_BlocksOnArchivingWriter is the Postgres-only half: it proves the FOR NO KEY UPDATE row lock is what closes the window,
internal/store/attachments_live_item_test.go:205
FunctionTestCreateAttachmentForLiveItem_ForeignWorkspaceParentRefuses
item_id carries no FK or same-workspace constraint, so a live item in ANOTHER workspace would pass a liveness-only re-check.
internal/store/attachments_live_item_test.go:98
FunctionTestCreateAttachmentForLiveItem_LiveParentInserts
(t *testing.T)
internal/store/attachments_live_item_test.go:46
FunctionTestCreateAttachmentForLiveItem_MalformedParentRefuses
A non-null item_id that names nothing at all is refused, not silently written as if it were an orphan.
internal/store/attachments_live_item_test.go:81
FunctionTestCreateAttachmentForLiveItem_OrphanInserts
An orphan row has no parent to pin and takes the plain insert path.
internal/store/attachments_live_item_test.go:117
FunctionTestCreateCollectionWaitsForAnUncommittedRename
BUG-2875: a create must queue behind an in-flight rename, not slip between its scan and its commit.
internal/store/collections_slug_race_pg_test.go:80
FunctionTestCreateCollection_ExplicitPrefixMustBeResolvable
BUG-2943, one test per door that can put a prefix on a collection. The bug was two implicit definitions of a valid prefix — the generator admitted any
internal/store/prefix_doors_test.go:21
FunctionTestCreateCollection_FlexibleSettingsShape
TestCreateCollection_FlexibleSettingsShape covers the CollectionCreate.UnmarshalJSON path on POST.
internal/server/handlers_views_collections_jsonb_test.go:255
FunctionTestCreateCollection_PublishesCollectionUpdated
BUG-3447: creating a collection published nothing, so a tab open on the workspace (the first-run launchpad while an agent onboards) learned of it only
internal/server/bug3447_collection_create_event_test.go:19
FunctionTestCreateCollection_RejectsReservedFieldKeys
TASK-1912 (IDEA-1746 stage 1): a collection schema field keyed exactly "parent" or "plan" makes schemaHasField (handlers_items.go:2190) return true fo
internal/server/handlers_collections_reserved_keys_test.go:21
FunctionTestCreateComment_FailedCommentLeavesNoActivity_Postgres
(t *testing.T)
internal/server/handlers_comments_atomic_test.go:103
FunctionTestCreateComment_FailedCommentLeavesNoActivity_SQLite
--- site 1: handleCreateComment -------------------------------------------
internal/server/handlers_comments_atomic_test.go:99
FunctionTestCreateComment_RefusesABlankBody
BUG-4265: a comment whose body is empty or only whitespace is refused with a 400 before anything is written, on the create route as on the edit and re
internal/server/bug4265_comment_blank_body_test.go:12
FunctionTestCreateCommitmentScheduleWritesNative
(t *testing.T)
internal/store/commitment_c1_test.go:196
FunctionTestCreateDocument_IsSearchableImmediately
TestCreateDocument_IsSearchableImmediately is the BUG-822 regression test: a freshly-created document must be findable via FTS without any manual rebu
internal/store/items_test.go:2022
FunctionTestCreateInvitation_ConcurrentReinvitesLeaveOnePending
BUG-2136: a re-invite replaces the pending invitation for its (workspace, address). Concurrent invites of one address must still leave exactly one liv
internal/store/bug2136_reinvite_concurrency_test.go:17
FunctionTestCreateInvitation_ReplacedRightAfterCommitStillReturnsItsOwn
BUG-3460: CreateInvitation re-read its own row AFTER committing, outside the transaction. A concurrent re-invite of the same address could replace tha
internal/store/bug2136_reinvite_concurrency_test.go:105
FunctionTestCreateInvitation_SetsExpiresAt
TestCreateInvitation_SetsExpiresAt verifies new invitations get an expires_at ~InvitationTTL in the future, round-tripped through store hydration.
internal/store/invitation_test.go:12
FunctionTestCreateItemCheckedMapsStoreTitleRefusalTo400
TestCreateItemCheckedMapsStoreTitleRefusalTo400 covers the create path's store-refusal arm directly, for the same reason as the update path's helper t
internal/server/handlers_items_title_test.go:227
FunctionTestCreateItemGrant_RestrictedOwner_HiddenCollection404
─── handleCreateItemGrant / handleListItemGrants ────────────────────── TestCreateItemGrant_RestrictedOwner_HiddenCollection404 pins BUG-1920 for item
internal/server/handlers_grant_visibility_test.go:226
FunctionTestCreateItemLinkAcceptsCanonicalLineageTypes
(t *testing.T)
internal/server/handlers_item_links_test.go:10
FunctionTestCreateItemLinkNormalizesLineageTypes
(t *testing.T)
internal/store/item_links_lineage_test.go:9
FunctionTestCreateItemLinkRejectsDuplicatesAndSelfLinks
(t *testing.T)
internal/server/handlers_item_links_test.go:72
FunctionTestCreateItemLinkRejectsInvalidLineageType
(t *testing.T)
internal/store/item_links_lineage_test.go:30
FunctionTestCreateItemLinkRejectsInvalidLineageTypes
(t *testing.T)
internal/server/handlers_item_links_test.go:44
← previousnext →18,801–18,900 of 28,840, ranked by callers