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
TestMovedTo_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
Function
TestMovedTo_DeniedResponseIsByteIdenticalToNoMoveRecord
--- the disclosure rule ---------------------------------------------- TestMovedTo_DeniedResponseIsByteIdenticalToNoMoveRecord is the acceptance crite
internal/server/item_moved_to_test.go:268
Function
TestMovedTo_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
Function
TestMovedTo_MoveRowWinsOverCopyRow
A source copied to C and then MOVED to B advertises only B.
internal/server/item_moved_to_test.go:486
Function
TestMovedTo_MultipleDestinationsFilteredPerDestination
--- multiples --------------------------------------------------------- TestMovedTo_MultipleDestinationsFilteredPerDestination: the forward lookup is
internal/server/item_moved_to_test.go:437
Function
TestMovedTo_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
Function
TestMovedTo_PlainCopyNeverClaimsAMove
--- DR-2a: copies are not moves ---------------------------------------
internal/server/item_moved_to_test.go:475
Function
TestMovedTo_RefusesForeignWorkspaceRequestContext
TestMovedTo_RefusesForeignWorkspaceRequestContext pins the precondition movedToDestinations enforces rather than assumes: the request must have resolv
internal/server/item_moved_to_test.go:666
Function
TestMovedTo_RestoredSourceOmitsTheBlock
--- the restore decision ---------------------------------------------- TestMovedTo_RestoredSourceOmitsTheBlock pins TASK-2359's restore decision: the
internal/server/item_moved_to_test.go:507
Function
TestMovedTo_ShareLinkNeverCarriesPointer
--- surface isolation ------------------------------------------------- TestMovedTo_ShareLinkNeverCarriesPointer guards the public share DTO's isolati
internal/server/item_moved_to_test.go:707
Function
TestMovedTo_SourceItemGrantGuestNeverSeesPointer
--- source-side gate -------------------------------------------------- TestMovedTo_SourceItemGrantGuestNeverSeesPointer is the negative test PLAN-235
internal/server/item_moved_to_test.go:564
Function
TestMovedTo_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
Function
TestMovingABlockerDropsNoGate
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
Function
TestMovingTheBlockerTargetKeepsTheGateOnTheSameOccurrence
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
Function
TestMultiRelationRoundTrip_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
Function
TestMultiRelationRoundTrip_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
Function
TestMultiRelationRoundTrip_RefListSurvivesWriteReadExportImport
(t *testing.T)
internal/server/relation_multi_roundtrip_test.go:104
Function
TestMultiRelation_AcceptsAnArrayOfReferences
(t *testing.T)
internal/items/validate_multi_relation_test.go:31
Function
TestMultiRelation_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
Function
TestMultiRelation_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
Function
TestMultiRelation_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
Function
TestMultiRelation_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
Function
TestMultiRelation_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
Function
TestMultiRelation_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
Function
TestMultiRelation_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
Function
TestMultipleGatesAllMustSucceed
Every gate must succeed; one that ended without success outranks one still pending.
internal/store/commitment_gates_outcome_test.go:468
Function
TestMultipleSubscribers
(t *testing.T)
internal/events/bus_test.go:70
Function
TestMyInvitations_AcceptByID
(t *testing.T)
internal/server/my_invitations_test.go:191
Function
TestMyInvitations_AcceptByIDRefusals
(t *testing.T)
internal/server/my_invitations_test.go:415
Function
TestMyInvitations_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
Function
TestMyInvitations_ExcludesMembersAndDeletedWorkspaces
(t *testing.T)
internal/server/my_invitations_test.go:168
Function
TestMyInvitations_ListFilters
(t *testing.T)
internal/server/my_invitations_test.go:81
Function
TestMyInvitations_UnverifiedListsNothing
(t *testing.T)
internal/server/my_invitations_test.go:146
Function
TestNULColumnCensus
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
Function
TestNULColumnListIsWellFormed
TestNULColumnListIsWellFormed checks the list itself before anything is generated from it.
internal/store/nulcolumns_test.go:197
Function
TestNULRepairTallyDefaultsToStrict
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
Function
TestNULTriggerFilesFollowTheirColumns
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
Function
TestNULTriggerRestorationByAnOlderBinaryKeepsLaterFiles
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
Function
TestNULTriggerRestorationCoversLaterFiles
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
Function
TestNULTriggerRestorationFailsLoudlyOnAQueryError
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
Function
TestNULTriggerRestorationRemovesStrays
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
Function
TestNULTriggerRestorationSkipsUnappliedFiles
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
Function
TestNULTriggersMatchTheList
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
Function
TestNULTriggersRefuseAnUnguardedWriter
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
Function
TestNULTriggersSurviveATableRebuild
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
Function
TestNaiveChildPinDeadlocksAgainstAResolveOfThatChild
(t *testing.T)
internal/store/commitment_links_pg_test.go:168
Function
TestNaiveRootFirstPinDeadlocksTwoCrossingCascades
(t *testing.T)
internal/store/commitment_links_pg_test.go:157
Function
TestNamedStringKeyOverTheLimitIsCutBeforeFormatting
(t *testing.T)
internal/logging/redaction_followups_test.go:1345
Function
TestNamespacedNames
(t *testing.T)
internal/redisns/redisns_test.go:40
Function
TestNarrowCurrentOnlyWildcardConnections
(t *testing.T)
internal/store/oauth_connections_narrow_test.go:39
Function
TestNativeCarryKeepsBundleFieldValidation
(t *testing.T)
internal/store/commitment_derivation_test.go:163
Function
TestNativeCarryUsesRolesWriter
(t *testing.T)
internal/store/commitment_derivation_test.go:147
Function
TestNativeDeadlineAddedThenRenegotiatedAway
(t *testing.T)
internal/store/commitment_derivation_test.go:99
Function
TestNativePastCommitmentPostStillRefused
(t *testing.T)
internal/server/reminder_commitment_test.go:82
Function
TestNativePastOneShotStillRefused
(t *testing.T)
internal/store/reminder_commitment_test.go:224
Function
TestNativePostgresAcceptsEveryRepairedCorpusValue
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
Function
TestNativePostgresAgreesWithTheCorpus
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
Function
TestNativeRolesDeriveKindAndEnd
(t *testing.T)
internal/store/commitment_derivation_test.go:10
Function
TestNativeStartPastStillRefused
(t *testing.T)
cmd/pad/reminder_commitment_test.go:110
Function
TestNativeWriteConvertsLegacyRowJournalsConversion
(t *testing.T)
internal/store/commitment_c1_test.go:151
Function
TestNativeWriteRefusesBadRoles
(t *testing.T)
internal/store/commitment_c1_test.go:182
Function
TestNeedsCandidateDueCreator
(t *testing.T)
internal/store/needs_due_test.go:168
Function
TestNeedsCandidateItems
(t *testing.T)
internal/store/needs_read_test.go:195
Function
TestNeedsCandidateItems_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
Function
TestNeedsDueOccurrences
(t *testing.T)
internal/store/needs_due_test.go:13
Function
TestNeedsDueOccurrencesMoved
(t *testing.T)
internal/store/needs_due_test.go:90
Function
TestNeedsDueOccurrencesScopeBeforeCap
(t *testing.T)
internal/store/needs_due_test.go:133
Function
TestNeedsDueOccurrencesSnoozed
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
Function
TestNeedsDueOccurrencesViewerZone
(t *testing.T)
internal/store/needs_due_test.go:181
Function
TestNeedsEligibility_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
Function
TestNeedsMarkersForItems
(t *testing.T)
internal/store/needs_read_test.go:379
Function
TestNeedsMe_AppContextRefused
(t *testing.T)
internal/server/handlers_me_needs_test.go:194
Function
TestNeedsMe_BearerAdminNotUnrestricted
(t *testing.T)
internal/server/handlers_me_needs_test.go:393
Function
TestNeedsMe_CrossWorkspace
(t *testing.T)
internal/server/handlers_me_needs_test.go:209
Function
TestNeedsMe_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
Function
TestNeedsMe_DegradedOnlyOnProviderError
(t *testing.T)
internal/server/handlers_me_needs_test.go:616
Function
TestNeedsMe_DegradedPerWorkspace
(t *testing.T)
internal/server/handlers_me_needs_test.go:570
Function
TestNeedsMe_DismissOnlyForCaller
(t *testing.T)
internal/server/handlers_me_needs_test.go:518
Function
TestNeedsMe_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
Function
TestNeedsMe_GuestItemGrantOnly
(t *testing.T)
internal/server/handlers_me_needs_test.go:300
Function
TestNeedsMe_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
Function
TestNeedsMe_NeedsHumanClaim
(t *testing.T)
internal/server/handlers_me_needs_test.go:758
Function
TestNeedsMe_NoAuth401
(t *testing.T)
internal/server/handlers_me_needs_test.go:180
Function
TestNeedsMe_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
Function
TestNeedsMe_PaginationTotalOrder
(t *testing.T)
internal/server/handlers_me_needs_test.go:436
Function
TestNeedsMe_RestrictedMemberNoLeak
(t *testing.T)
internal/server/handlers_me_needs_test.go:260
Function
TestNeedsMe_RoutingRulesAndWaitingSince
(t *testing.T)
internal/server/handlers_me_needs_test.go:695
Function
TestNeedsMe_SnoozeLostAccess
(t *testing.T)
internal/server/handlers_me_needs_test.go:859
Function
TestNeedsMe_SnoozeMovedItem
(t *testing.T)
internal/server/handlers_me_needs_test.go:820
Function
TestNeedsMe_TokenAllowlist
(t *testing.T)
internal/server/handlers_me_needs_test.go:343
Function
TestNeedsMe_UnknownVsHiddenWorkspaceIdentical
(t *testing.T)
internal/server/handlers_me_needs_test.go:318
Function
TestNeedsMe_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
Function
TestNeedsMe_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
Function
TestNeedsMe_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
Function
TestNeedsPRMetadataRefresh
(t *testing.T)
cmd/pad/reconcile_test.go:85
Function
TestNeedsScoringItems
TASK-3959: the batch reads behind the needs scorers. Both backends via testStore.
internal/store/needs_scoring_test.go:18
Function
TestNeedsScoringReads_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
Function
TestNeedsSnoozeRoute_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
Function
TestNeedsSnooze_DeferUntilAndChangeBeforeDate
(t *testing.T)
internal/store/needs_snooze_test.go:192
Function
TestNeedsSnooze_MarkerClamped
(t *testing.T)
internal/store/needs_snooze_test.go:232
← previous
next →
21,701–21,800 of 28,840, ranked by callers