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
TestOpenChildrenGuard_NoOpTerminal_NotGuarded
(t *testing.T)
internal/server/handlers_items_open_children_guard_test.go:252
Function
TestOpenChildrenGuard_NonTerminalTransition_NotGuarded
(t *testing.T)
internal/server/handlers_items_open_children_guard_test.go:190
Function
TestOpenChildrenGuard_PatchAtomicRejectionPreservesParentLink
TestOpenChildrenGuard_PatchAtomicRejectionPreservesParentLink covers the rule that a PATCH that combines a parent-link change AND a status flip to ter
internal/server/handlers_items_open_children_guard_test.go:1292
Function
TestOpenChildrenGuard_PrecheckReadsInTxSnapshot
TestOpenChildrenGuard_PrecheckReadsInTxSnapshot covers the case where the precheck classifies the transition against the parent's fields as read INSID
internal/server/handlers_items_open_children_guard_test.go:1009
Function
TestOpenChildrenGuard_RejectsTerminalWithOpenChildren
(t *testing.T)
internal/server/handlers_items_open_children_guard_test.go:54
Function
TestOpenChildrenGuard_SoftDeletedCollectionSchemaHonored
TestOpenChildrenGuard_SoftDeletedCollectionSchemaHonored covers When a child still exists in a soft-deleted collection whose schema has a custom termi
internal/server/handlers_items_open_children_guard_test.go:893
Function
TestOpenChildrenGuard_TOCTOURace
TestOpenChildrenGuard_TOCTOURace covers this invariant: a child status flip that races a parent-terminal update must NOT slip past the guard. The race
internal/server/handlers_items_open_children_guard_test.go:608
Function
TestOpenChildrenGuard_TerminalToTerminal_NotGuarded
(t *testing.T)
internal/server/handlers_items_open_children_guard_test.go:206
Function
TestOpenChildrenGuard_UsesCollectionTerminalOptions
(t *testing.T)
internal/server/handlers_items_open_children_guard_test.go:277
Function
TestOpenChildrenGuard_VisibilityLookupErrorFailsClosed
TestOpenChildrenGuard_VisibilityLookupErrorFailsClosed covers the case where the visibility lookup errors (DB unavailable, etc.) the handler must fail
internal/server/handlers_items_open_children_guard_test.go:963
Function
TestOpenChildrenGuard_VisibilitySanitizesPayload
TestOpenChildrenGuard_VisibilitySanitizesPayload covers the case where a restricted caller updates a parent they CAN see but the parent has children i
internal/server/handlers_items_open_children_guard_test.go:376
Function
TestOpenChildrenScheduleActiveDetails
(t *testing.T)
internal/server/handlers_items_schedule_active_test.go:166
Function
TestOpenMentions_ReplyClosesAndEditReopens
(t *testing.T)
internal/store/needs_read_test.go:148
Function
TestOpenWorldActions_NoStaleEntries
TestOpenWorldActions_NoStaleEntries: every openWorldActions entry names a real catalog (tool, action) pair. Reads are allowed: open-world is where dat
internal/mcp/catalog_annotations_test.go:150
Function
TestOpeningAGateReadsTheUnfilteredEvaluation
The acting function takes no reader: it sees every gate, hidden ones included.
internal/store/commitment_gates_display_test.go:69
Function
TestOrdinaryEventsStillCarryTheirID
The control: an ordinary event still carries its real id, or clients would never advance their cursor at all.
internal/server/handlers_events_resume_test.go:129
Function
TestOrdinarySuggestionsCarryNoReminderID
TestOrdinarySuggestionsCarryNoReminderID is the negative control: the field is omitempty and must stay empty on a plain task suggestion, or a consumer
internal/server/handlers_reminders_test.go:378
Function
TestOrdinaryTrafficKeepsTheInstanceAlive
TestOrdinaryTrafficKeepsTheInstanceAlive pins that inbound frames stamp liveness. Without it the detector would cycle a connection that is plainly wor
internal/watchevents/heartbeat_test.go:426
Function
TestOrphanGC_ClaimRefusesFreshlyReferencedRow
TestOrphanGC_ClaimRefusesFreshlyReferencedRow pins BUG-2415 at the sweep level: a never-attached row whose last_referenced_at stamp is FRESH (a writer
internal/server/orphan_gc_test.go:612
Function
TestOrphanGC_DedupesBlobReclaimMetric
TestOrphanGC_DedupesBlobReclaimMetric pins that when multiple soft-deleted peers share a content_hash and all are past grace, the blob is deleted on t
internal/server/orphan_gc_test.go:487
Function
TestOrphanGC_KeepsAttachmentReferencedFromComment
TestOrphanGC_KeepsAttachmentReferencedFromComment is the IDEA-1650 sibling of the item-content case above: a screenshot pasted into a comment is refer
internal/server/orphan_gc_test.go:290
Function
TestOrphanGC_KeepsBlobForAnUploadThatCommitsAfterTheCount
(t *testing.T)
internal/server/task4279_blob_reclaim_race_test.go:31
Function
TestOrphanGC_KeepsBlobWhenTheRecountCannotAnswer
A recount that cannot answer (here: the sweep's context ends between the early count and the lock) must keep the blob, never delete on an unknown.
internal/server/task4279_blob_reclaim_race_test.go:132
Function
TestOrphanGC_KeepsRecentRows
TestOrphanGC_KeepsRecentRows pins the safety case: rows still inside the grace window MUST NOT be reclaimed. Catches a typo in the WHERE clause that w
internal/server/orphan_gc_test.go:121
Function
TestOrphanGC_KeepsReferencedNeverAttachedRows
TestOrphanGC_KeepsReferencedNeverAttachedRows pins (PR #307) that the editor's normal upload flow leaves attachments.item_id NULL and only the markdow
internal/server/orphan_gc_test.go:243
Function
TestOrphanGC_PreservesSharedBlob
TestOrphanGC_PreservesSharedBlob pins the dedupe-safety case: when two rows reference the same content_hash and only one is orphan, the row gets hard-
internal/server/orphan_gc_test.go:154
Function
TestOrphanGC_ReclaimsLeakedLiveVariant
TestOrphanGC_ReclaimsLeakedLiveVariant pins the retro-cleanup class: a LIVE variant row under a tombstoned parent (the pre-fix leak artifact — inserte
internal/server/handlers_attachments_thumbnails_test.go:466
Function
TestOrphanGC_ReclaimsLongOrphans
TestOrphanGC_ReclaimsLongOrphans pins the never-attached path: rows with item_id IS NULL AND deleted_at IS NULL aged past the grace period get reclaim
internal/server/orphan_gc_test.go:86
Function
TestOrphanGC_ReclaimsSoftDeleted
TestOrphanGC_ReclaimsSoftDeleted pins TASK-886's main case: a soft-deleted attachment past the grace period gets hard-deleted from the DB AND its blob
internal/server/orphan_gc_test.go:19
Function
TestOrphanGC_RespectsInFlightUploads
TestOrphanGC_RespectsInFlightUploads pins that an upload that called Put but hasn't yet inserted the attachments row must NOT lose its blob to GC recl
internal/server/orphan_gc_test.go:353
Function
TestOrphanGC_RespectsSoftDeletedInGracePeer
TestOrphanGC_RespectsSoftDeletedInGracePeer pins that when two rows share a content_hash, GC reclaims the older one past grace but MUST NOT delete the
internal/server/orphan_gc_test.go:404
Function
TestOrphanGC_StartStop
TestOrphanGC_StartStop pins the lifecycle: StartOrphanGC kicks the loop, Stop signals it to exit, and Server.Stop() actually drains. Catches regressio
internal/server/orphan_gc_test.go:588
Function
TestOrphanGC_VariantProtectedByReferencedParent
TestOrphanGC_VariantProtectedByReferencedParent pins the parent-aware half of BUG-2415: content references an ORIGINAL's id, never a thumbnail's, so a
internal/server/orphan_gc_test.go:692
Function
TestOrphanedReminderSkippedImport
Orphans must not abort a restore or disturb the other reminders' bundle positions.
internal/store/reminders_test.go:1379
Function
TestOrphanedVariant_ForeignParentDoesNotShield
TestOrphanedVariant_ForeignParentDoesNotShield pins BUG-2622: the orphaned-variant class's parent check is workspace-scoped. A variant row whose paren
internal/store/attachments_gc_claim_test.go:433
Function
TestOutboxClaimAlwaysTakesOneRowOverBudget
(t *testing.T)
internal/store/event_outbox_bounds_test.go:220
Function
TestOutboxClaimSkipsRowsOverTheRowCapWithoutJamming
(t *testing.T)
internal/store/event_outbox_bounds_test.go:243
Function
TestOutboxClaimSpendsTheBudgetOnBatchSiblingsToo
(t *testing.T)
internal/store/event_outbox_bounds_test.go:294
Function
TestOutboxClaimStopsAtTheByteBudget
(t *testing.T)
internal/store/event_outbox_bounds_test.go:172
Function
TestOutboxClaimStopsAtTheRowCap
(t *testing.T)
internal/store/event_outbox_bounds_test.go:495
Function
TestOutboxDrainTickConsultsTheThrottle
TestOutboxDrainTickConsultsTheThrottle covers the CALL SITE, which the test above does not. Found by mutation: replacing `if s.shouldScanOversizedOut
internal/server/outbox_payload_limit_test.go:117
Function
TestOutboxDrain_DeliversAndAcksASingleEvent
TestOutboxDrain_DeliversAndAcksASingleEvent is the base case: a stored event reaches the wire once, carrying its row id as the dedupe key, and stops b
internal/server/outbox_drain_test.go:103
Function
TestOutboxDrain_FoldsABatchIntoOneWireEvent
TestOutboxDrain_FoldsABatchIntoOneWireEvent is the F2 payoff: a lane-wide bulk action must reach a webhook consumer as ONE delivery carrying every mem
internal/server/outbox_drain_test.go:214
Function
TestOutboxDrain_MembersWithoutTheirHeaderDeliverIndividually
TestOutboxDrain_MembersWithoutTheirHeaderDeliverIndividually pins the window SPEC-3 v1.6 defines rather than papers over: a tick can claim some member
internal/server/outbox_drain_test.go:289
Function
TestOutboxDrain_PermanentFailureAcks
TestOutboxDrain_PermanentFailureAcks: an endpoint that rejects the delivery in a way no retry fixes must not hold the workspace's queue. The control l
internal/server/outbox_drain_test.go:172
Function
TestOutboxDrain_RetentionRefusesANonPositiveWindow
TestOutboxDrain_RetentionRefusesANonPositiveWindow pins the guard on the one configuration mistake that is unrecoverable. A zero window makes the ret
internal/server/outbox_drain_test.go:373
Function
TestOutboxDrain_SettingsResolveToPositiveDefaults
TestOutboxDrain_SettingsResolveToPositiveDefaults is the primary defence the guard above backs up: every knob has a usable value no matter which entry
internal/server/outbox_drain_test.go:407
Function
TestOutboxDrain_TransientFailureLeavesTheEventPending
TestOutboxDrain_TransientFailureLeavesTheEventPending: the durable retry is the drain's, and it is the reason the outbox exists. A 5xx must not ack.
internal/server/outbox_drain_test.go:148
Function
TestOutboxLimitSeamsDefaultToTheProductionConstants
(t *testing.T)
internal/store/event_outbox_bounds_test.go:57
Function
TestOutboxMemberSnapshotsMatchPerMemberReads
BUG-2718: outboxMemberSnapshotsTx reads its members in batches instead of one joined read per member. What it returns must be exactly what the per-mem
internal/store/bug2718_member_snapshots_test.go:19
Function
TestOutboxRefusesAPayloadOverTheRowCap
(t *testing.T)
internal/store/event_outbox_bounds_test.go:105
Function
TestOutbox_AttachmentAddedSkipsVariants
(t *testing.T)
internal/store/event_outbox_test.go:551
Function
TestOutbox_BareStatusFlipEmitsStatusChangedOnly
(t *testing.T)
internal/store/event_outbox_test.go:111
Function
TestOutbox_ClaimArbitratesTheRaceNotJustTheQuery
TestOutbox_ClaimArbitratesTheRaceNotJustTheQuery drives the conditional UPDATE with a STALE candidate list — the case the public entry point cannot pr
internal/store/event_outbox_test.go:1913
Function
TestOutbox_ClaimIsExclusiveUntilTheLeaseExpires
TestOutbox_ClaimIsExclusiveUntilTheLeaseExpires is the multi-instance guard. Every instance of a cloud deployment runs the drain, so without the claim
internal/store/event_outbox_test.go:1774
Function
TestOutbox_ClaimTakesWholeBatchesPastTheLimit
TestOutbox_ClaimTakesWholeBatchesPastTheLimit pins the rule that keeps a folded wire event true: the limit is a throughput knob, and letting it split
internal/store/event_outbox_test.go:1818
Function
TestOutbox_CollectionOptionRenameEmitsOneBulkEvent
(t *testing.T)
internal/store/event_outbox_test.go:689
Function
TestOutbox_CommentCreateAndUpdateEmit
(t *testing.T)
internal/store/event_outbox_test.go:505
Function
TestOutbox_CommentDeleteEmitsRefOnly
(t *testing.T)
internal/store/event_outbox_test.go:1099
Function
TestOutbox_CreateEmitsItemCreatedWithSnapshot
(t *testing.T)
internal/store/event_outbox_test.go:83
Function
TestOutbox_CrossWorkspaceMoveEmitsSourceArchive
TestOutbox_CrossWorkspaceMoveEmitsSourceArchive pins the gap that made this test exist. archiveItemForCopyTx deliberately REPRODUCES DeleteItem's UPD
internal/store/event_outbox_test.go:631
Function
TestOutbox_DeleteEmitsPreArchiveSnapshot
(t *testing.T)
internal/store/event_outbox_test.go:413
Function
TestOutbox_FailedAttemptReleasesTheClaim
TestOutbox_FailedAttemptReleasesTheClaim: a transient failure means the event is still owed and nothing is in flight, so the next tick must be able to
internal/store/event_outbox_test.go:1863
Function
TestOutbox_MemberJoinedEmits
(t *testing.T)
internal/store/event_outbox_test.go:598
Function
TestOutbox_MixedUpdateEmitsBothSlices
(t *testing.T)
internal/store/event_outbox_test.go:141
Function
TestOutbox_MoveEmitsMovedOnlyWhenNothingElseChanged
(t *testing.T)
internal/store/event_outbox_test.go:486
Function
TestOutbox_NeverAttachedClaimEmitsNothing
(t *testing.T)
internal/store/event_outbox_test.go:1191
Function
TestOutbox_NoOpCommentEditEmitsNothing
(t *testing.T)
internal/store/event_outbox_test.go:888
Function
TestOutbox_NoOpUpdateEmitsNothing
(t *testing.T)
internal/store/event_outbox_test.go:185
Function
TestOutbox_NonStatusUpdateEmitsUpdatedOnly
(t *testing.T)
internal/store/event_outbox_test.go:166
Function
TestOutbox_ParentDetachEmitsOnEveryRoute
TestOutbox_ParentDetachEmitsOnEveryRoute closes the loop opened: attach was observable on every route while DETACH was silent on two of the three, so
internal/store/event_outbox_test.go:2314
Function
TestOutbox_ParentOnlyUpdateStillEmits
TestOutbox_ParentOnlyUpdateStillEmits covers the path SetParentLink's fix did NOT reach: UpdateItemWithParentLink writes the hierarchy inside the item
internal/store/event_outbox_test.go:2257
Function
TestOutbox_PayloadsOmitAssigneeIdentity
TestOutbox_PayloadsOmitAssigneeIdentity pins the privacy-lifecycle property. An outbox payload is a frozen snapshot that outlives its subject by desi
internal/store/event_outbox_test.go:1059
Function
TestOutbox_PruneUndispatchedBoundsTheFrozenPayloadWindow
TestOutbox_PruneUndispatchedBoundsTheFrozenPayloadWindow pins the privacy half of retention (TASK-2714 requirement 3). PruneDispatchedOutbox filters
internal/store/event_outbox_test.go:1589
Function
TestOutbox_PruneUndispatchedSparesAClaimedRow
TestOutbox_PruneUndispatchedSparesAClaimedRow: every instance runs retention, so without a claim check one instance's prune deletes a row another is m
internal/store/event_outbox_test.go:2140
Function
TestOutbox_RedeleteEmitsNothing
(t *testing.T)
internal/store/event_outbox_test.go:442
Function
TestOutbox_RestoreEmitsItemRestored
(t *testing.T)
internal/store/event_outbox_test.go:465
Function
TestOutbox_SetParentLinkEmitsItemUpdated
TestOutbox_SetParentLinkEmitsItemUpdated pins the fix for the create-with- parent regression. CreateItem commits item.created with a PRE-LINK snapsho
internal/store/event_outbox_test.go:2190
Function
TestOutbox_SoftDeletedAttachmentClaimEmitsRefOnly
(t *testing.T)
internal/store/event_outbox_test.go:1140
Function
TestOutbox_StaleClaimCannotAckOrReleaseAnotherPass
TestOutbox_StaleClaimCannotAckOrReleaseAnotherPass pins the lease's other half. Delivery can outrun the lease — a workspace with many slow endpoints i
internal/store/event_outbox_test.go:2072
Function
TestOutbox_StatusChangeFromEmptyCarriesEmptyPriorStatus
TestOutbox_StatusChangeFromEmptyCarriesEmptyPriorStatus pins the SPEC-3 conformance point: prior_status must be PRESENT on item.status_changed even wh
internal/store/event_outbox_test.go:1006
Function
TestOutbox_VariantClaimEmitsNothing
TestOutbox_VariantClaimEmitsNothing pins the symmetry missing: a row that could not have emitted attachment.added must not emit attachment.removed. V
internal/store/event_outbox_test.go:1234
Function
TestOutbox_WikiTitleCascadeEmitsOneBulkEvent
(t *testing.T)
internal/store/event_outbox_test.go:765
Function
TestOutbox_WithEventBatchStampsEveryMutationPath
TestOutbox_WithEventBatchStampsEveryMutationPath drives ALL FIVE store entry points the bulk handler reaches, because the failure this guards against
internal/store/event_outbox_test.go:1672
Function
TestOutputStrictlyIncreasingAcrossDST
TestOutputStrictlyIncreasingAcrossDST is the ORDER INVARIANT: Resolve is not monotonic inside a gap (02:59 -> 07:59Z but 03:00 -> 07:00Z), yet the out
internal/schedule/dst_test.go:72
Function
TestOverdueIgnoresTerminalItems
TestOverdueIgnoresTerminalItems guards the direction a "surface it everywhere" change breaks: a DONE item with a past due date is not late, it is fini
internal/server/overdue_surfaces_test.go:140
Function
TestOverdueOutranksInProgressWithinTheCap
TestOverdueOutranksInProgressWithinTheCap — leg 3's teeth. The list is capped at three, so ranking overdue BELOW in-progress does not merely order it
internal/server/overdue_surfaces_test.go:108
Function
TestOverdueReachesDashboardAttention
TestOverdueReachesDashboardAttention — leg 1.
internal/server/overdue_surfaces_test.go:29
Function
TestOverdueReachesReadyAndNext
TestOverdueReachesReadyAndNext — leg 3, and the one that would have failed before this unit. `ready` and `next` both render dashboard.suggested_next.
internal/server/overdue_surfaces_test.go:77
Function
TestOverdueReachesStale
TestOverdueReachesStale — leg 2. `pad project stale` consumes the dashboard's attention list and keeps four types; the CLI-side filter is pinned in cm
internal/server/overdue_surfaces_test.go:52
Function
TestOverriddenArmedFloatingRowRetimesFromTheOverride
An ARMED floating row carrying next_override_at (a C2b snooze or move; set by SQL here because C2a has no writer): the exact instant in next_at is nev
internal/store/schedule_outstanding_test.go:65
Function
TestOverridePaths_EffortCandidatesRead
BackfillEffort's whole-table read waits out a lock the bounded default would have failed on.
internal/store/runtime_pool_test.go:497
Function
TestOverridePaths_RunWithRaisedLimits
Each long-write path outlasts the runtime bound and must still succeed, with its own override visible INSIDE its transaction. A trigger on items sleep
internal/store/runtime_pool_test.go:337
Function
TestOversizedArrayKeyIsNotFormatted
(t *testing.T)
internal/logging/redaction_followups_test.go:1368
Function
TestOversizedOutboxScanIsThrottled
TestOversizedOutboxScanIsThrottled pins the diagnostic's cadence. The query it gates is expensive exactly when it finds nothing — a non-sargable size
internal/server/outbox_payload_limit_test.go:90
Function
TestOversizedStateSurfacesTypedError
--------------------------------------------------------------------------- Errors -------------------------------------------------------------------
internal/decision/decision_test.go:290
Function
TestOversizedStringStateIsTruncatedAndFlagged
--------------------------------------------------------------------------- Truncation ---------------------------------------------------------------
internal/decision/decision_test.go:507
Function
TestOweDecisionJobs_DebounceAndCoalescing
TASK-3921: OweDecisionJobs and the backfill candidate query. Both backends via testStore.
internal/store/decisions_owe_test.go:12
Function
TestOwedDecisionJobs
(t *testing.T)
internal/store/needs_scoring_test.go:102
Function
TestOwnerCompensation_CompletesUnderASingleConnection
THE MaxOpenConns(1) QUESTION, SETTLED RATHER THAN DEFERRED (BUG-2715). The design discussion for this fix kept citing BUG-2778 and BUG-2409 — a pool
internal/server/workspace_owner_compensation_test.go:362
← previous
next →
22,101–22,200 of 28,840, ranked by callers