MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestDeleteAccountCtx_DeadlineRollsBack
(t *testing.T)
internal/store/task4278_ctx_test.go:170
FunctionTestDeleteAccountCtx_NoRetryOnceDone
TestDeleteAccountCtx_NoRetryOnceDone: a deadlock retry loop must not run another attempt, or sleep, once the context is done.
internal/store/task4278_ctx_test.go:216
FunctionTestDeleteAccountCtx_WaitsOutPurge
(t *testing.T)
internal/store/task4278_ctx_test.go:237
FunctionTestDeleteAccountDeadlineFromRequestArrival
The deadline is counted from the request's ARRIVAL, not from when the transaction begins: a request that arrived 51 s ago has no budget left, and the
internal/server/task4278_account_delete_budget_test.go:173
FunctionTestDeleteAccountRemovesConversations
(t *testing.T)
internal/store/conversations_test.go:1393
FunctionTestDeleteAccount_BUG3482_TOTPAttemptsAreLimited
(t *testing.T)
internal/server/bug3482_delete_totp_limit_test.go:30
FunctionTestDeleteAccount_BUG3482_TOTPCodeIsSingleUse
A code that already signed something in is spent: a replay within its window is refused, as at login (BUG-2054).
internal/server/bug3482_delete_totp_limit_test.go:61
FunctionTestDeleteAccount_OwnedWorkspaceWithoutMembershipIsDeleted
TestDeleteAccount_OwnedWorkspaceWithoutMembershipIsDeleted covers the second window the premise check found: the handler's list came from a MEMBERSHIP
internal/server/bug3099_account_delete_owned_test.go:101
FunctionTestDeleteAccount_WorkspaceMintedInTheWindowIsDeleted
TestDeleteAccount_WorkspaceMintedInTheWindowIsDeleted mints the workspace from inside the billing-cancel call, which the handler makes AFTER it used t
internal/server/bug3099_account_delete_owned_test.go:49
FunctionTestDeleteAlwaysTombstones
(t *testing.T)
internal/store/conversations_test.go:1126
FunctionTestDeleteAttachment_AfterParentSoftDeleted
TestDeleteAttachment_AfterParentSoftDeleted pins PR #303: when the parent item is soft-deleted, the attachment row remains in the storage list (so the
internal/server/handlers_storage_test.go:319
FunctionTestDeleteAttachment_DenialBodiesAreByteIdentical
TestDeleteAttachment_DenialBodiesAreByteIdentical pins the non-disclosure invariant on the DELETE path at the level it actually has to hold: the RESPO
internal/server/handlers_storage_delete_authz_test.go:299
FunctionTestDeleteAttachment_DerivedRefused
TestDeleteAttachment_DerivedRefused pins the carve-out for thumbnail rows: a direct delete of a derived attachment should return 400 rather than silen
internal/server/handlers_storage_test.go:382
FunctionTestDeleteAttachment_DerivedRowIsNotAnOracle
TestDeleteAttachment_DerivedRowIsNotAnOracle covers WHERE the derived-row refusal sits relative to authorization. Deleting a thumbnail directly is a
internal/server/handlers_storage_delete_authz_test.go:468
FunctionTestDeleteAttachment_ForeignItemGrantCannotReachAcrossWorkspaces
TestDeleteAttachment_ForeignItemGrantCannotReachAcrossWorkspaces pins a cross-workspace grant hole. attachments.item_id has no FK or same-workspace c
internal/server/handlers_storage_delete_authz_test.go:194
FunctionTestDeleteAttachment_GrantBasedEditorCanDelete
TestDeleteAttachment_GrantBasedEditorCanDelete is the core regression for TASK-2384: a user with NO workspace editor role but an item-level edit grant
internal/server/handlers_storage_delete_authz_test.go:126
FunctionTestDeleteAttachment_HappyPath
TestDeleteAttachment_HappyPath covers the soft-delete flow: a successful upload, a 204 from the delete handler, and a follow-up list call that no long
internal/server/handlers_storage_test.go:262
FunctionTestDeleteAttachment_InvisibleItemIs404Not403
TestDeleteAttachment_InvisibleItemIs404Not403 pins the ORDERING that PLAN-2382 requires: visibility is checked BEFORE edit permission, so an attachmen
internal/server/handlers_storage_delete_authz_test.go:166
FunctionTestDeleteAttachment_OrphanRefusedToRestrictedMember
TestDeleteAttachment_OrphanRefusedToRestrictedMember covers the ORDER of the orphan gate, which is load-bearing rather than cosmetic. attachmentCalle
internal/server/handlers_storage_delete_authz_test.go:408
FunctionTestDeleteAttachment_OrphanStillRequiresEditorRole
TestDeleteAttachment_OrphanStillRequiresEditorRole confirms the orphan branch kept the flat workspace editor-role gate. An orphan carries no item cont
internal/server/handlers_storage_delete_authz_test.go:246
FunctionTestDeleteAttachment_ViewGrantCannotDelete
TestDeleteAttachment_ViewGrantCannotDelete confirms the fix didn't widen access: a VIEW grant is not an EDIT grant. requireEditPermission rejects it w
internal/server/handlers_storage_delete_authz_test.go:145
FunctionTestDeleteAuthorization
(t *testing.T)
internal/store/conversations_test.go:1182
FunctionTestDeleteCollectionGrant_RestrictedOwner_HiddenCollection404
─── handleDeleteCollectionGrant / handleDeleteItemGrant (BUG-1923) ──── TestDeleteCollectionGrant_RestrictedOwner_HiddenCollection404 pins BUG-1923: u
internal/server/handlers_grant_visibility_test.go:417
FunctionTestDeleteCollectionGrant_SoftDeletedCollection_StillRevocable
─── Soft-deleted collection parent must not permanently strand collection-scoped grants/share-links (BUG-1923) ── TestDeleteCollectionGrant_SoftDelete
internal/server/handlers_grant_visibility_test.go:660
FunctionTestDeleteCollectionGrant_SoftDeletedCollection_UnrestrictedOwnerStillRevokes
TestDeleteCollectionGrant_SoftDeletedCollection_UnrestrictedOwnerStillRevokes pins the MAIN regression case: an UNRESTRICTED owner (member.CollectionA
internal/server/handlers_grant_visibility_test.go:703
FunctionTestDeleteCollection_OptimisticConcurrency
TestDeleteCollection_OptimisticConcurrency covers BUG-2265: the archive/delete accepts an expected_updated_at token so a concurrent rename that re-own
internal/server/handlers_collections_concurrency_test.go:172
FunctionTestDeleteCollection_RestrictedOwner_HiddenCollection404
─── handleDeleteCollection ───────────────────────────────────────────── TestDeleteCollection_RestrictedOwner_HiddenCollection404 pins BUG-1921 for DE
internal/server/handlers_collection_crud_visibility_test.go:55
FunctionTestDeleteCommentWithReplies_Remote
TestDeleteCommentWithReplies_Remote pins BUG-3252 on the remote door: delete-comment on a comment with replies succeeds and leaves a tombstone the rep
internal/mcp/task2695_comment_edit_delete_test.go:124
FunctionTestDeleteCommentWithReplies_Tombstones
TestDeleteCommentWithReplies_Tombstones pins BUG-3252 on both server routes: deleting a comment with replies answers 204 and leaves a tombstone (delet
internal/server/handlers_comments_item_scoped_test.go:138
FunctionTestDeleteCommitmentItemGoneBeforeLockIsArchived
The item can leave between the handler's read and the store's lock. Delete answers like every other schedule door (the archived answer), never a 500.
internal/server/handlers_commitments_test.go:728
FunctionTestDeleteCommitmentWithDeadlineNeedsAuthority
(t *testing.T)
internal/server/handlers_commitments_test.go:278
FunctionTestDeleteDefaultCollection_RefusalSurvivedTheTypeSwap
TestDeleteDefaultCollection_RefusalSurvivedTheTypeSwap pins the one door that already answered 400 — by matching the store's prose with strings.Contai
internal/server/handlers_collections_refusal_status_test.go:124
FunctionTestDeleteItemGrant_RestrictedOwner_HiddenCollection404
TestDeleteItemGrant_RestrictedOwner_HiddenCollection404 pins the item-grant twin of BUG-1923's delete-side fix.
internal/server/handlers_grant_visibility_test.go:453
FunctionTestDeleteItem_AdminBearer_RestrictedMemberBlockedOnHiddenCollection
TestDeleteItem_AdminBearer_RestrictedMemberBlockedOnHiddenCollection completes the write-path sweep for BUG-1918 (DELETE).
internal/server/handlers_items_test.go:2694
FunctionTestDeletePushDeviceByID
(t *testing.T)
internal/store/task3939_push_dispatch_test.go:526
FunctionTestDeleteRejectsNonPositiveSeq
(t *testing.T)
internal/store/conversations_test.go:435
FunctionTestDeleteScheduleCheckedLeavesOtherSchedulesAlone
(t *testing.T)
internal/store/commitment_c1_test.go:652
FunctionTestDeleteScheduleCheckedProtectsANativeDeadline
(t *testing.T)
internal/store/commitment_c1_test.go:637
FunctionTestDeleteScheduleCheckedUnguardedDoesNotReadRoles
A delete that needs no authority decision (an owner, or an unguarded caller) must not depend on reading the schedule's roles: a legacy window row whos
internal/store/commitment_c1_test.go:683
FunctionTestDeleteScheduleWithoutNativeDeadlineIsUnchanged
(t *testing.T)
internal/server/handlers_commitments_test.go:322
FunctionTestDeleteShareLink_RestrictedOwner_HiddenTarget404
─── handleDeleteShareLink / handleShareLinkViews (BUG-1923) ─────────── TestDeleteShareLink_RestrictedOwner_HiddenTarget404 pins BUG-1923 for both sha
internal/server/handlers_grant_visibility_test.go:492
FunctionTestDeleteStarsForItem
(t *testing.T)
internal/store/item_stars_test.go:274
FunctionTestDeleteUserSessions
(t *testing.T)
internal/store/sessions_test.go:107
FunctionTestDeleteUserToken_PATStillWorks
CONTROL — revoke stays PAT-reachable, and this is the load-bearing one: a compromised-credential response is REVOCATION, so gating it behind a session
internal/server/handlers_tokens_session_auth_test.go:180
FunctionTestDeleteWatch
(t *testing.T)
internal/store/watches_test.go:136
FunctionTestDeleteWatch
(t *testing.T)
internal/server/handlers_watches_test.go:133
FunctionTestDeleteWatch_NotFoundReturnsErrNoRows
(t *testing.T)
internal/store/watches_test.go:160
FunctionTestDeletingABlockersCommitmentAgainstGateWritesDoesNotDeadlock
Deleting a blocker's commitment sets the schedule id of its gates to NULL (the foreign key's own write on the gate rows) in the delete's transaction,
internal/store/commitment_gates_pg_test.go:167
FunctionTestDeletingABlockersCommitmentLeavesItsGateJudgedByTheItemStatus
Deleting a blocker's COMMITMENT leaves the gate in place, judged by the blocker item's status from then on: terminal and not abandoned releases it, an
internal/store/commitment_gates_noschedule_test.go:88
FunctionTestDeletingALinkWhoseEndIsSoftDeletedSucceeds
(t *testing.T)
internal/store/commitment_links_deleted_end_test.go:49
FunctionTestDeletingALinkWithASoftDeletedEndKeepsTheAuthorityAndLeaksNothing
Delete takes the authority a live link does, and answers an end the caller cannot read exactly as it answers a link that is not there.
internal/store/commitment_links_deleted_end_test.go:134
FunctionTestDeletingAScheduleLeavesNoLinkRows
(t *testing.T)
internal/store/schedule_carry_links_test.go:115
FunctionTestDeliverEvent_EnvelopeCarriesIDAndEventTime
TestDeliverEvent_EnvelopeCarriesIDAndEventTime pins requirement 1 and the envelope's two easy-to-get-wrong fields. The dedupe key is the point: SPEC-
internal/webhooks/dispatcher_test.go:564
FunctionTestDeliverEvent_NoMatchingHooksIsSuccess
TestDeliverEvent_NoMatchingHooksIsSuccess pins the case that would otherwise wedge every webhook-less workspace. Zero matched endpoints means nothing
internal/webhooks/dispatcher_test.go:686
FunctionTestDeliverEvent_OutcomeDrivesTheAckDecision
TestDeliverEvent_OutcomeDrivesTheAckDecision is the requirement-2 test: the drain must be able to tell "rejected us" from "did not answer", because th
internal/webhooks/dispatcher_test.go:633
FunctionTestDeliverEvent_ServerSideFailureIsAnError
TestDeliverEvent_ServerSideFailureIsAnError separates the failure the drain must NOT ack from the ones it may. Listing webhooks failing means nothing
internal/webhooks/dispatcher_test.go:727
FunctionTestDeliveredSessionCount_PropagatesVisibilityError
TestDeliveredSessionCount_PropagatesVisibilityError is a regression test, and it FAILS against the first version of this fix, which swallowed the erro
internal/server/handlers_push_delivery_symmetry_test.go:228
FunctionTestDensityCapRefusesCheaply
(t *testing.T)
internal/schedule/density_test.go:118
FunctionTestDensityCensus
(t *testing.T)
internal/schedule/density_test.go:154
FunctionTestDeriveClaimCode_Deterministic
Tests for the stateless HMAC claim-code mechanics (PLAN-1519 / TASK-1521 / IDEA-1517 §4). What's covered: - DeriveClaimCode is deterministic for the
internal/server/claim_codes_test.go:33
FunctionTestDeriveClaimCode_NoCollisionOnConcatBoundary
(t *testing.T)
internal/server/claim_codes_test.go:73
FunctionTestDeriveClaimCode_ZeroPadded
(t *testing.T)
internal/server/claim_codes_test.go:52
FunctionTestDerivePrefix_IsAlwaysResolvable
BUG-2943: every character of a derived prefix must satisfy the SAME test parseItemRef applies, or the collection's items print an issue ID that the CL
internal/collections/prefix_letters_test.go:19
FunctionTestDerivePrefix_LetterlessNamesYieldEmpty
A name with no ASCII letters yields "", which is the signal store.CreateCollection turns into its existing "ITEM" fallback. Pinned because the empty r
internal/collections/prefix_letters_test.go:75
FunctionTestDerivePrefix_OrdinaryNamesUnchanged
The shapes we promise for ordinary names, so "letters only" cannot be satisfied by returning "" for everything.
internal/collections/prefix_letters_test.go:56
FunctionTestDerivePrefix_OutputIsAcceptedByTheRefParser
This test lives in internal/store rather than beside DerivePrefix because parseItemRef is unexported and the point is to assert the two against EACH O
internal/store/prefix_ref_parity_test.go:21
FunctionTestDeriveTOTPStep
TestDeriveTOTPStep verifies the single-use step derivation the verify handler relies on (BUG-2054): a code resolves to the exact step it was generated
internal/server/handlers_2fa_totp_step_test.go:16
FunctionTestDerivedSSENamesMatchTheLegacyWireVocabulary
TestDerivedSSENamesMatchTheLegacyWireVocabulary is the compat guard for the rewire: deriving the SSE names from the events/1 taxonomy must reproduce t
internal/server/events_surface_test.go:33
FunctionTestDescribeDecisionProviderEnvCanDisableTheFile
(t *testing.T)
cmd/pad/server_info_decision_test.go:69
FunctionTestDescribeDecisionProviderEnvOverridesTheFile
(t *testing.T)
cmd/pad/server_info_decision_test.go:50
FunctionTestDescribeDecisionProviderReadsTheConfigFile
(t *testing.T)
cmd/pad/server_info_decision_test.go:32
FunctionTestDescribeDecisionProviderReportsNoneWhenUnconfigured
These exercise the BINDING, not the component: internal/decision has its own tests for Resolve and Describe, and they have no opinion about whether `p
cmd/pad/server_info_decision_test.go:18
FunctionTestDescribeNeverLeaksTheKey
(t *testing.T)
internal/decision/config_test.go:154
FunctionTestDetect
(t *testing.T)
internal/urlimport/detect_test.go:8
FunctionTestDetectProjectCapturesMakeAndNestedWebSignals
(t *testing.T)
internal/cli/workspace_context_detect_test.go:11
FunctionTestDetectTools
(t *testing.T)
internal/cli/agents_test.go:196
FunctionTestDetect_LargeJSONNotOpenAPI
(t *testing.T)
internal/urlimport/detect_test.go:198
FunctionTestDetect_LargeOpenAPIJSON
(t *testing.T)
internal/urlimport/detect_test.go:154
FunctionTestDetect_LargeOpenAPIJSON_KeyNotFirst
(t *testing.T)
internal/urlimport/detect_test.go:182
FunctionTestDiffFieldsAddedRemovedFields
(t *testing.T)
internal/server/handlers_documents_test.go:24
FunctionTestDiffFieldsDecisionLogSummarised
(t *testing.T)
internal/server/handlers_documents_test.go:67
FunctionTestDiffFieldsGenericStructuredFieldsFallback
(t *testing.T)
internal/server/handlers_documents_test.go:87
FunctionTestDiffFieldsHandlesInvalidJSON
(t *testing.T)
internal/server/handlers_documents_test.go:117
FunctionTestDiffFieldsImplementationNotesPluralised
(t *testing.T)
internal/server/handlers_documents_test.go:55
FunctionTestDiffFieldsImplementationNotesSummarised
(t *testing.T)
internal/server/handlers_documents_test.go:34
FunctionTestDiffFieldsObjectFieldFallback
(t *testing.T)
internal/server/handlers_documents_test.go:104
FunctionTestDiffFieldsObjectMutationStillReported
Regression for PR #236: object-valued fields (e.g. `convention`) now both stringify to `(object)`, so an in-place edit would have been silently droppe
internal/server/handlers_documents_test.go:163
FunctionTestDiffFieldsPrimitives
(t *testing.T)
internal/server/handlers_documents_test.go:8
FunctionTestDiffFieldsSameCardinalityArrayChangeStillReported
Regression for PR #236: collapsing slice values to a count-only label meant a same-cardinality replacement (one note swapped for a different one note)
internal/server/handlers_documents_test.go:143
FunctionTestDirectRefSearchResultsDoNotClaimTheirTitleIsStale
TestDirectRefSearchResultsDoNotClaimTheirTitleIsStale covers a defect this unit INTRODUCED: the new CLI renderer warned that a snippet was derived fro
internal/store/backlink_xws_content_state_test.go:96
FunctionTestDirectWritePruneFailureDoesNotReplayWithoutThePrune
TestDirectWritePruneFailureDoesNotReplayWithoutThePrune is the SECOND defect of the same removed fall-through (BUG-2994), and it is a different error
internal/server/handlers_items_ack_loss_test.go:196
FunctionTestDiscardUnflushedEditsSurvivesBothGates
The two gates `pad db migrate-to-pg` runs over the same items, in the order the command runs them (BUG-3077). WHY A TWO-CALL TEST IS THE FAITHFUL ONE
cmd/pad/cmd_db_late_stale_test.go:20
FunctionTestDisconnectDuringEstablishmentReleasesTheAdmissionSlot
TestDisconnectDuringEstablishmentReleasesTheAdmissionSlot is the BINDING assertion for BUG-2749 (CONVE-19): internal/events' own tests vouch for the b
internal/server/handlers_events_cancel_test.go:70
FunctionTestDisconnectDuringTheResumeSettleReleasesTheAdmissionSlot
TestDisconnectDuringTheResumeSettleReleasesTheAdmissionSlot is BUG-2751's BINDING assertion, and the half of the bug that lives in this package. inte
internal/server/handlers_watch_events_cancel_test.go:58
FunctionTestDismissEndedOracleAndGates
(t *testing.T)
internal/server/schedule_end_guard_test.go:122
FunctionTestDismissEndedSchedule
(t *testing.T)
internal/store/schedule_end_guard_test.go:258
FunctionTestDispatchItemDecide_RefusesUnreadableWithRetryHostileCode
(t *testing.T)
internal/mcp/dispatch_http_stored_state_test.go:137
FunctionTestDispatchItemHistory_ForwardsLimitToTheEndpoint
The limit has to survive the trip to the server too, not just reach the action — the action's injection is worthless if the dispatcher drops it.
internal/mcp/dispatch_http_history_bounds_test.go:107
FunctionTestDispatchItemHistory_FullIncludesContent
TestDispatchItemHistory_FullIncludesContent pins the full=true escape hatch — the same opt-in the stdio path forwards as the CLI's --full.
internal/mcp/dispatch_http_history_test.go:119
FunctionTestDispatchItemHistory_RequestsSummaryUnlessFullAsked
The HTTP half of the optimization. Summary mode is not merely a smaller response — it tells the server not to walk the patch chain at all. If the disp
internal/mcp/dispatch_http_history_bounds_test.go:72
← previousnext →19,201–19,300 of 28,840, ranked by callers