MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestMovedTo_BearerTokenConsentedToSourceOnly
TestMovedTo_BearerTokenConsentedToSourceOnly: consent is enforced automatically only for the workspace in the URL. A token scoped to A must not learn
internal/server/item_moved_to_test.go:376
FunctionTestMovedTo_DeniedResponseIsByteIdenticalToNoMoveRecord
--- the disclosure rule ---------------------------------------------- TestMovedTo_DeniedResponseIsByteIdenticalToNoMoveRecord is the acceptance crite
internal/server/item_moved_to_test.go:268
FunctionTestMovedTo_GuestWithUnrelatedItemGrantInDestination
TestMovedTo_GuestWithUnrelatedItemGrantInDestination is the second half of the same trap: a guest holding one item grant in B has a role there ("guest
internal/server/item_moved_to_test.go:344
FunctionTestMovedTo_MoveRowWinsOverCopyRow
A source copied to C and then MOVED to B advertises only B.
internal/server/item_moved_to_test.go:486
FunctionTestMovedTo_MultipleDestinationsFilteredPerDestination
--- multiples --------------------------------------------------------- TestMovedTo_MultipleDestinationsFilteredPerDestination: the forward lookup is
internal/server/item_moved_to_test.go:437
FunctionTestMovedTo_MutationResponsesDoNotCarryPointer
The block belongs to the single-item GET alone. Mutation handlers reuse enrichItemForResponse and return a full item, so a future move of the populati
internal/server/item_moved_to_test.go:781
FunctionTestMovedTo_PlainCopyNeverClaimsAMove
--- DR-2a: copies are not moves ---------------------------------------
internal/server/item_moved_to_test.go:475
FunctionTestMovedTo_RefusesForeignWorkspaceRequestContext
TestMovedTo_RefusesForeignWorkspaceRequestContext pins the precondition movedToDestinations enforces rather than assumes: the request must have resolv
internal/server/item_moved_to_test.go:666
FunctionTestMovedTo_RestoredSourceOmitsTheBlock
--- the restore decision ---------------------------------------------- TestMovedTo_RestoredSourceOmitsTheBlock pins TASK-2359's restore decision: the
internal/server/item_moved_to_test.go:507
FunctionTestMovedTo_ShareLinkNeverCarriesPointer
--- surface isolation ------------------------------------------------- TestMovedTo_ShareLinkNeverCarriesPointer guards the public share DTO's isolati
internal/server/item_moved_to_test.go:707
FunctionTestMovedTo_SourceItemGrantGuestNeverSeesPointer
--- source-side gate -------------------------------------------------- TestMovedTo_SourceItemGrantGuestNeverSeesPointer is the negative test PLAN-235
internal/server/item_moved_to_test.go:564
FunctionTestMovedTo_WorkspaceAccessAloneIsNotEnough
TestMovedTo_WorkspaceAccessAloneIsNotEnough is the reason the gate uses an ITEM scope. A restricted member of the destination workspace can read works
internal/server/item_moved_to_test.go:301
FunctionTestMovingABlockerDropsNoGate
A moved BLOCKER is not a gated item: nothing is dropped or counted, and its gates stay behind, reading cancelled.
internal/store/schedule_carry_gates_test.go:105
FunctionTestMovingTheBlockerTargetKeepsTheGateOnTheSameOccurrence
A move changes the target and not the occurrence's identity, so the gate stays held against the same occurrence.
internal/store/commitment_gates_outcome_test.go:247
FunctionTestMultiRelationRoundTrip_ControlTheSameShapeIsAcceptedWhenEveryElementResolves
CONTROL for the leg above. A door that refused EVERY array would satisfy both of its assertions, and this file would read as proof of a working featur
internal/server/relation_multi_roundtrip_test.go:224
FunctionTestMultiRelationRoundTrip_OneBadElementRefusesTheWholeWrite
The negative half of the design row, and the half a partial store would pass if it were only asserted on the status code.
internal/server/relation_multi_roundtrip_test.go:198
FunctionTestMultiRelationRoundTrip_RefListSurvivesWriteReadExportImport
(t *testing.T)
internal/server/relation_multi_roundtrip_test.go:104
FunctionTestMultiRelation_AcceptsAnArrayOfReferences
(t *testing.T)
internal/items/validate_multi_relation_test.go:31
FunctionTestMultiRelation_CanonicalisesEveryElementAndKeepsOrder
THE CONTROL, and the proving leg: mixed spellings of two items canonicalise to their ids, IN THE ORDER SUPPLIED. A resolver that refused every array,
internal/store/relation_multi_test.go:51
FunctionTestMultiRelation_DuplicateAfterResolutionIsRefused
Duplicates are detected AFTER resolution — which is the whole reason they cannot be a shape check. These two elements are DIFFERENT STRINGS naming one
internal/store/relation_multi_test.go:114
FunctionTestMultiRelation_EmptyArrayIsNotAnIssue
An empty array resolves to an empty array with no issues. `[]` means "no targets"; normalising it to an absent key is the write door's job, and `requi
internal/store/relation_multi_test.go:158
FunctionTestMultiRelation_NoTargetCollectionReportsOnceForTheField
A field declaring no target collection reports ONE field-level issue, not one per element: every element fails for the identical reason and N copies b
internal/store/relation_multi_test.go:176
FunctionTestMultiRelation_OneBadElementRefusesAndWritesNothing
An element that does not resolve produces ONE issue for that element, and the stored blob is left EXACTLY as it arrived — not partially canonicalised.
internal/store/relation_multi_test.go:84
FunctionTestMultiRelation_RefusesBadShapes
The three refusals, each naming the ELEMENT INDEX — a caller sending twelve references needs to know which one is wrong, and "field owners is invalid"
internal/items/validate_multi_relation_test.go:48
FunctionTestMultiRelation_ScalarRelationIsUnchangedAndStillAcceptsEmpty
THE COUNTERFACTUAL, and the reason it is here rather than assumed: the VALIDATOR still accepts an empty scalar `relation`. BUG-3028 converged the two
internal/items/validate_multi_relation_test.go:84
FunctionTestMultipleGatesAllMustSucceed
Every gate must succeed; one that ended without success outranks one still pending.
internal/store/commitment_gates_outcome_test.go:468
FunctionTestMultipleSubscribers
(t *testing.T)
internal/events/bus_test.go:70
FunctionTestMyInvitations_AcceptByID
(t *testing.T)
internal/server/my_invitations_test.go:191
FunctionTestMyInvitations_AcceptByIDRefusals
(t *testing.T)
internal/server/my_invitations_test.go:415
FunctionTestMyInvitations_AcceptPathsMatch
The by-id and by-code doors share acceptInvitationCore; this pins that what they produce is the same: the response, the membership row, the invitation
internal/server/my_invitations_test.go:461
FunctionTestMyInvitations_ExcludesMembersAndDeletedWorkspaces
(t *testing.T)
internal/server/my_invitations_test.go:168
FunctionTestMyInvitations_ListFilters
(t *testing.T)
internal/server/my_invitations_test.go:81
FunctionTestMyInvitations_UnverifiedListsNothing
(t *testing.T)
internal/server/my_invitations_test.go:146
FunctionTestNULColumnCensus
TestNULColumnCensus is the guard test TASK-2825 specified: it fails when a text column joins the schema without being either PROTECTED or EXPLICITLY E
internal/store/nulcolumns_test.go:23
FunctionTestNULColumnListIsWellFormed
TestNULColumnListIsWellFormed checks the list itself before anything is generated from it.
internal/store/nulcolumns_test.go:197
FunctionTestNULRepairTallyDefaultsToStrict
TestNULRepairTallyDefaultsToStrict pins the direction a mistake falls in. A nil tally, or one nobody set the flag on, must leave the body alone — so
internal/server/nul_repair_differential_test.go:168
FunctionTestNULTriggerFilesFollowTheirColumns
TestNULTriggerFilesFollowTheirColumns is BUG-3108's ordering rule: every protected column's triggers live in a trigger file that runs AFTER the migrat
internal/store/nultriggers_order_test.go:133
FunctionTestNULTriggerRestorationByAnOlderBinaryKeepsLaterFiles
TestNULTriggerRestorationByAnOlderBinaryKeepsLaterFiles runs the restore as a binary that knows only 084 would, against a database carrying 094's trig
internal/store/nultriggers_order_test.go:304
FunctionTestNULTriggerRestorationCoversLaterFiles
TestNULTriggerRestorationCoversLaterFiles drops a post-084 trigger pair and runs the startup re-assertion. The restore has to know about every applied
internal/store/nultriggers_order_test.go:200
FunctionTestNULTriggerRestorationFailsLoudlyOnAQueryError
TestNULTriggerRestorationFailsLoudlyOnAQueryError regresses the case. The applied-check folded a query ERROR in with "not applied" behind a nolint:ni
internal/store/nultriggers_test.go:619
FunctionTestNULTriggerRestorationRemovesStrays
TestNULTriggerRestorationRemovesStrays regresses a gap: the health check asked only whether every EXPECTED trigger was present, so a database carrying
internal/store/nultriggers_test.go:651
FunctionTestNULTriggerRestorationSkipsUnappliedFiles
TestNULTriggerRestorationSkipsUnappliedFiles puts a database back in the state an upgrade passes through: 084 applied and a later trigger file not yet
internal/store/nultriggers_order_test.go:250
FunctionTestNULTriggersMatchTheList
TestNULTriggersMatchTheList pins the committed migration against the Go list it is generated from — BYTE FOR BYTE. The first version compared trigger
internal/store/nultriggers_test.go:165
FunctionTestNULTriggersRefuseAnUnguardedWriter
TestNULTriggersRefuseAnUnguardedWriter is the test S2 exists for. It writes through a RAW sqlite connection to the same database file — no driver gua
internal/store/nultriggers_test.go:28
FunctionTestNULTriggersSurviveATableRebuild
TestNULTriggersSurviveATableRebuild regresses the sharpest finding: SQLite drops a table's triggers when the table is dropped, this codebase rebuilds
internal/store/nultriggers_test.go:424
FunctionTestNaiveChildPinDeadlocksAgainstAResolveOfThatChild
(t *testing.T)
internal/store/commitment_links_pg_test.go:168
FunctionTestNaiveRootFirstPinDeadlocksTwoCrossingCascades
(t *testing.T)
internal/store/commitment_links_pg_test.go:157
FunctionTestNamedStringKeyOverTheLimitIsCutBeforeFormatting
(t *testing.T)
internal/logging/redaction_followups_test.go:1345
FunctionTestNamespacedNames
(t *testing.T)
internal/redisns/redisns_test.go:40
FunctionTestNarrowCurrentOnlyWildcardConnections
(t *testing.T)
internal/store/oauth_connections_narrow_test.go:39
FunctionTestNativeCarryKeepsBundleFieldValidation
(t *testing.T)
internal/store/commitment_derivation_test.go:163
FunctionTestNativeCarryUsesRolesWriter
(t *testing.T)
internal/store/commitment_derivation_test.go:147
FunctionTestNativeDeadlineAddedThenRenegotiatedAway
(t *testing.T)
internal/store/commitment_derivation_test.go:99
FunctionTestNativePastCommitmentPostStillRefused
(t *testing.T)
internal/server/reminder_commitment_test.go:82
FunctionTestNativePastOneShotStillRefused
(t *testing.T)
internal/store/reminder_commitment_test.go:224
FunctionTestNativePostgresAcceptsEveryRepairedCorpusValue
TestNativePostgresAcceptsEveryRepairedCorpusValue — the leg that makes the repair worth running. BUG-2810's filing is that an affected workspace expo
internal/store/nul_repair_differential_test.go:120
FunctionTestNativePostgresAgreesWithTheCorpus
The native-Postgres leg of the four-way differential test (DOC-2823 S1). This is the leg that says Layer A is CALIBRATED rather than merely strict. P
internal/store/nul_native_pg_test.go:24
FunctionTestNativeRolesDeriveKindAndEnd
(t *testing.T)
internal/store/commitment_derivation_test.go:10
FunctionTestNativeStartPastStillRefused
(t *testing.T)
cmd/pad/reminder_commitment_test.go:110
FunctionTestNativeWriteConvertsLegacyRowJournalsConversion
(t *testing.T)
internal/store/commitment_c1_test.go:151
FunctionTestNativeWriteRefusesBadRoles
(t *testing.T)
internal/store/commitment_c1_test.go:182
FunctionTestNeedsCandidateDueCreator
(t *testing.T)
internal/store/needs_due_test.go:168
FunctionTestNeedsCandidateItems
(t *testing.T)
internal/store/needs_read_test.go:195
FunctionTestNeedsCandidateItems_RestrictedScopeHidesItem
A restricted scope with BOTH a collection list and an item grant returns the visible items and never the hidden one, even though the hidden item match
internal/store/needs_read_test.go:403
FunctionTestNeedsDueOccurrences
(t *testing.T)
internal/store/needs_due_test.go:13
FunctionTestNeedsDueOccurrencesMoved
(t *testing.T)
internal/store/needs_due_test.go:90
FunctionTestNeedsDueOccurrencesScopeBeforeCap
(t *testing.T)
internal/store/needs_due_test.go:133
FunctionTestNeedsDueOccurrencesSnoozed
A snooze defers the due claim until the snooze ends, then the claim returns at the original due instant (TASK-4591).
internal/store/needs_due_test.go:112
FunctionTestNeedsDueOccurrencesViewerZone
(t *testing.T)
internal/store/needs_due_test.go:181
FunctionTestNeedsEligibility_MissingUserGetsNothing
Eligibility loads the user first: asking the visibility resolver about a user that does not exist answers (nil, nil, nil), which is also its "unrestri
internal/server/handlers_me_needs_test.go:789
FunctionTestNeedsMarkersForItems
(t *testing.T)
internal/store/needs_read_test.go:379
FunctionTestNeedsMe_AppContextRefused
(t *testing.T)
internal/server/handlers_me_needs_test.go:194
FunctionTestNeedsMe_BearerAdminNotUnrestricted
(t *testing.T)
internal/server/handlers_me_needs_test.go:393
FunctionTestNeedsMe_CrossWorkspace
(t *testing.T)
internal/server/handlers_me_needs_test.go:209
FunctionTestNeedsMe_DegradedNotLeakedByHiddenItemFailure
The attention read evaluates only items the caller can see, so an item whose state cannot be built, hidden from the caller, sets no bit on their respo
internal/server/handlers_me_needs_test.go:657
FunctionTestNeedsMe_DegradedOnlyOnProviderError
(t *testing.T)
internal/server/handlers_me_needs_test.go:616
FunctionTestNeedsMe_DegradedPerWorkspace
(t *testing.T)
internal/server/handlers_me_needs_test.go:570
FunctionTestNeedsMe_DismissOnlyForCaller
(t *testing.T)
internal/server/handlers_me_needs_test.go:518
FunctionTestNeedsMe_ForgedFutureAsOfClamped
A forged as_of in the future is clamped to now: a defer still in force is still hiding its item.
internal/server/handlers_me_needs_test.go:973
FunctionTestNeedsMe_GuestItemGrantOnly
(t *testing.T)
internal/server/handlers_me_needs_test.go:300
FunctionTestNeedsMe_MentionedRowIsPerCaller
End to end: with two open mentions on one item, each person's row carries only their own mention.
internal/server/handlers_me_needs_test.go:899
FunctionTestNeedsMe_NeedsHumanClaim
(t *testing.T)
internal/server/handlers_me_needs_test.go:758
FunctionTestNeedsMe_NoAuth401
(t *testing.T)
internal/server/handlers_me_needs_test.go:180
FunctionTestNeedsMe_OwnerLookupErrorFailsTheRequest
BUG-4050: a store ERROR reading the workspace owner (not an absent owner row) must fail the request like the builder's other store errors, not read as
internal/server/handlers_me_needs_test.go:1036
FunctionTestNeedsMe_PaginationTotalOrder
(t *testing.T)
internal/server/handlers_me_needs_test.go:436
FunctionTestNeedsMe_RestrictedMemberNoLeak
(t *testing.T)
internal/server/handlers_me_needs_test.go:260
FunctionTestNeedsMe_RoutingRulesAndWaitingSince
(t *testing.T)
internal/server/handlers_me_needs_test.go:695
FunctionTestNeedsMe_SnoozeLostAccess
(t *testing.T)
internal/server/handlers_me_needs_test.go:859
FunctionTestNeedsMe_SnoozeMovedItem
(t *testing.T)
internal/server/handlers_me_needs_test.go:820
FunctionTestNeedsMe_TokenAllowlist
(t *testing.T)
internal/server/handlers_me_needs_test.go:343
FunctionTestNeedsMe_UnknownVsHiddenWorkspaceIdentical
(t *testing.T)
internal/server/handlers_me_needs_test.go:318
FunctionTestNeedsMe_UnresolvableOwnerHasNoDeepLink
BUG-4050: a live workspace whose owner_id names no users row has no owner to put in the route. The row is still the caller's, so it is returned with a
internal/server/handlers_me_needs_test.go:998
FunctionTestNeedsMe_UnsurfacedNeedsHumanRowIgnored
A needs_human row that did not surface (below threshold) must not touch a candidate that reached the list another way, even when the workspace has a t
internal/server/handlers_me_needs_test.go:941
FunctionTestNeedsMe_WorkspaceBoundTokenStaysInIt
A user-bound token scoped to one workspace stays in it (stricter than search; BUG-3982).
internal/server/handlers_me_needs_test.go:372
FunctionTestNeedsPRMetadataRefresh
(t *testing.T)
cmd/pad/reconcile_test.go:85
FunctionTestNeedsScoringItems
TASK-3959: the batch reads behind the needs scorers. Both backends via testStore.
internal/store/needs_scoring_test.go:18
FunctionTestNeedsScoringReads_ChunkOverTheInLimit
More ids than one IN list takes: results from every chunk are merged, and every id answers.
internal/store/needs_scoring_test.go:148
FunctionTestNeedsSnoozeRoute_Visibility
TestNeedsSnoozeRoute_Visibility drives PUT|DELETE .../needs/snooze through the router (TASK-3918): a viewer and an item-grant guest may snooze, a memb
internal/server/handlers_needs_snooze_test.go:16
FunctionTestNeedsSnooze_DeferUntilAndChangeBeforeDate
(t *testing.T)
internal/store/needs_snooze_test.go:192
FunctionTestNeedsSnooze_MarkerClamped
(t *testing.T)
internal/store/needs_snooze_test.go:232
← previousnext →21,701–21,800 of 28,840, ranked by callers