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
TestCopyPreflight_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
Function
TestCopyPreflight_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
Function
TestCopyPreflight_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
Function
TestCopyPreflight_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
Function
TestCopyPreflight_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
Function
TestCopyPreflight_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
Function
TestCopyPreflight_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
Function
TestCopyPreflight_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
Function
TestCopyPreflight_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
Function
TestCopyPreflight_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
Function
TestCopyPreflight_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
Function
TestCopyPreflight_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
Function
TestCopyPreflight_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
Function
TestCopyPreflight_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
Function
TestCopyPreflight_WarningsAllReported
--- warnings ---------------------------------------------------------- TestCopyPreflight_WarningsAllReported asserts every DR-15 warning with a non-z
internal/server/handlers_items_copy_preflight_test.go:431
Function
TestCopyPreflight_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
Function
TestCopyReportsJournalRowsDropped
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
Function
TestCopyRollbackErrorClassification
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
Function
TestCopySkipsEndedSchedule
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
Function
TestCopySkipsUncompilableSchedule
A schedule whose rule does not compile is skipped with its reason; the item is still copied.
internal/store/schedule_copy_test.go:181
Function
TestCopyTransport_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
Function
TestCopyWithAnUnreadableSourceOccurrenceKeepsTodaysBehaviour
(t *testing.T)
internal/store/schedule_copy_r3_test.go:270
Function
TestCopy_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
Function
TestCopy_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
Function
TestCopy_UnauthorizedParentsAreAllUnresolvable
--- 3. the rest of the outcome set ------------------------------------ TestCopy_UnauthorizedParentsAreAllUnresolvable walks the outcomes resolveAttac
internal/server/handlers_items_copy_attachment_authz_test.go:286
Function
TestCopy_VisibleAttachmentsStillClone
--- 4. the control ---------------------------------------------------- TestCopy_VisibleAttachmentsStillClone is the assertion that keeps the fix hone
internal/server/handlers_items_copy_attachment_authz_test.go:397
Function
TestCorpusIsWellFormed
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
Function
TestCorpusParity
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
Function
TestCorrectionIsNotAResolution
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
Function
TestCorsAllowCredentials
(t *testing.T)
internal/server/middleware_security_test.go:76
Function
TestCountAttachmentRefsMatchesPlan
(t *testing.T)
internal/store/items_copy_attachment_limit_test.go:153
Function
TestCountBacklinks_ExcludesSourcesFromSoftDeletedCollections
(t *testing.T)
internal/store/bug3344_backlinks_deleted_collection_test.go:54
Function
TestCountBillingAggregates
(t *testing.T)
internal/store/users_test.go:214
Function
TestCountBillingAggregates_ExpiredProIsFree
The billing aggregates count by effective plan: an expired pro is free.
internal/store/bug3356_plan_revision_test.go:185
Function
TestCountClaimableDecisionJobs
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
Function
TestCountLiveOAuthConnections
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
Function
TestCountLiveOAuthConnections_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
Function
TestCountMCPUsablePATs
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
Function
TestCountNamesKeepNumbersAndSingularCredentialNamesRedact
(t *testing.T)
internal/logging/redaction_followups_test.go:1276
Function
TestCountNotificationsSentSince
Kills: dropping the `sent` predicate; dropping `user_id`; dropping `>=`.
internal/store/task3939_push_dispatch_test.go:358
Function
TestCountNotificationsSentSince_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
Function
TestCountPendingContentRowsTx
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
Function
TestCountStarredItems
(t *testing.T)
internal/store/item_stars_test.go:243
Function
TestCountWorkspaceContents_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
Function
TestCounterBackwardsSignalsEverySubscriber
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
Function
TestCoverageDropSignalsOnlyThatWorkspace
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
Function
TestCoverageDropWithNoBufferStillSignals
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
Function
TestCoverageIsReestablishedByTheNextNotification
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
Function
TestCreateAPITokenExpiryOverride
(t *testing.T)
internal/store/api_tokens_test.go:73
Function
TestCreateAPITokenMaxLifetimeEnforced
(t *testing.T)
internal/store/api_tokens_test.go:93
Function
TestCreateAPITokenNoExpiry
(t *testing.T)
internal/store/api_tokens_test.go:113
Function
TestCreateAPITokenUserScoped
TestCreateAPITokenUserScoped covers the account-settings path (handleCreateUserToken), which creates a workspace-agnostic token with no WorkspaceID se
internal/store/api_tokens_test.go:15
Function
TestCreateAPITokenWithExpiry
(t *testing.T)
internal/store/api_tokens_test.go:45
Function
TestCreateActivityDebounced_AgentMetaPreserved
(t *testing.T)
internal/store/activities_test.go:326
Function
TestCreateActivityDebounced_CoalescesUpdates
(t *testing.T)
internal/store/activities_test.go:48
Function
TestCreateActivityDebounced_ConcurrentBurstInsertsOneRow
(t *testing.T)
internal/store/activities_debounce_miss_race_test.go:145
Function
TestCreateActivityDebounced_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
Function
TestCreateActivityDebounced_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
Function
TestCreateActivityDebounced_ContentionPastTheBoundKeepsTheChange
TestCreateActivityDebounced_ContentionPastTheBoundKeepsTheChange pins the give-up path. A competitor that wins EVERY attempt exhausts debounceMergeAtt
internal/store/activities_debounce_race_test.go:152
Function
TestCreateActivityDebounced_DifferentDocsDontCoalesce
(t *testing.T)
internal/store/activities_test.go:198
Function
TestCreateActivityDebounced_DifferentUsersDontCoalesce
(t *testing.T)
internal/store/activities_test.go:150
Function
TestCreateActivityDebounced_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
Function
TestCreateActivityDebounced_LockedMissSerializes
(t *testing.T)
internal/store/activities_debounce_miss_race_test.go:72
Function
TestCreateActivityDebounced_MetadataMerge
(t *testing.T)
internal/store/activities_test.go:281
Function
TestCreateActivityDebounced_MultipleRapidSaves
(t *testing.T)
internal/store/activities_test.go:374
Function
TestCreateActivityDebounced_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
Function
TestCreateActivityDebounced_NoUserID
(t *testing.T)
internal/store/activities_test.go:400
Function
TestCreateActivityDebounced_NonUpdateActions
(t *testing.T)
internal/store/activities_test.go:13
Function
TestCreateActivityDebounced_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
Function
TestCreateActivityDebounced_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
Function
TestCreateActivityDebounced_TimestampBumped
(t *testing.T)
internal/store/activities_test.go:235
Function
TestCreateActivityDebounced_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
Function
TestCreateActivityDebounced_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
Function
TestCreateAndApplyPatch
(t *testing.T)
internal/diff/diff_test.go:8
Function
TestCreateAttachmentForLiveItem_ArchivedParentRefuses
(t *testing.T)
internal/store/attachments_live_item_test.go:62
Function
TestCreateAttachmentForLiveItem_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
Function
TestCreateAttachmentForLiveItem_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
Function
TestCreateAttachmentForLiveItem_LiveParentInserts
(t *testing.T)
internal/store/attachments_live_item_test.go:46
Function
TestCreateAttachmentForLiveItem_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
Function
TestCreateAttachmentForLiveItem_OrphanInserts
An orphan row has no parent to pin and takes the plain insert path.
internal/store/attachments_live_item_test.go:117
Function
TestCreateCollectionWaitsForAnUncommittedRename
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
Function
TestCreateCollection_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
Function
TestCreateCollection_FlexibleSettingsShape
TestCreateCollection_FlexibleSettingsShape covers the CollectionCreate.UnmarshalJSON path on POST.
internal/server/handlers_views_collections_jsonb_test.go:255
Function
TestCreateCollection_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
Function
TestCreateCollection_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
Function
TestCreateComment_FailedCommentLeavesNoActivity_Postgres
(t *testing.T)
internal/server/handlers_comments_atomic_test.go:103
Function
TestCreateComment_FailedCommentLeavesNoActivity_SQLite
--- site 1: handleCreateComment -------------------------------------------
internal/server/handlers_comments_atomic_test.go:99
Function
TestCreateComment_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
Function
TestCreateCommitmentScheduleWritesNative
(t *testing.T)
internal/store/commitment_c1_test.go:196
Function
TestCreateDocument_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
Function
TestCreateInvitation_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
Function
TestCreateInvitation_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
Function
TestCreateInvitation_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
Function
TestCreateItemCheckedMapsStoreTitleRefusalTo400
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
Function
TestCreateItemGrant_RestrictedOwner_HiddenCollection404
─── handleCreateItemGrant / handleListItemGrants ────────────────────── TestCreateItemGrant_RestrictedOwner_HiddenCollection404 pins BUG-1920 for item
internal/server/handlers_grant_visibility_test.go:226
Function
TestCreateItemLinkAcceptsCanonicalLineageTypes
(t *testing.T)
internal/server/handlers_item_links_test.go:10
Function
TestCreateItemLinkNormalizesLineageTypes
(t *testing.T)
internal/store/item_links_lineage_test.go:9
Function
TestCreateItemLinkRejectsDuplicatesAndSelfLinks
(t *testing.T)
internal/server/handlers_item_links_test.go:72
Function
TestCreateItemLinkRejectsInvalidLineageType
(t *testing.T)
internal/store/item_links_lineage_test.go:30
Function
TestCreateItemLinkRejectsInvalidLineageTypes
(t *testing.T)
internal/server/handlers_item_links_test.go:44
← previous
next →
18,801–18,900 of 28,840, ranked by callers