MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestLinkedMoveShowsAReaderOnlyWhatTheyCanRead
(t *testing.T)
internal/store/commitment_links_test.go:348
FunctionTestLinkedOccurrenceRenegotiationAcknowledgesReadableBound
(t *testing.T)
internal/store/commitment_renegotiate_cascade_test.go:187
FunctionTestLinkedOccurrenceRenegotiationCascades
(t *testing.T)
internal/store/commitment_renegotiate_cascade_test.go:26
FunctionTestLinkedOccurrenceRenegotiationHidesDependentApproval
(t *testing.T)
internal/store/commitment_renegotiate_cascade_test.go:107
FunctionTestLinkedOccurrenceRenegotiationIsIdenticalWithAHiddenDependent
A dependent the caller cannot read must not change a renegotiation's answer.
internal/store/commitment_linked_entry_test.go:10
FunctionTestLinkedOccurrenceRenegotiationKeepsIncomingOffset
(t *testing.T)
internal/store/commitment_renegotiate_cascade_test.go:79
FunctionTestLinkedOccurrenceRenegotiationLapsesAllDueNodes
(t *testing.T)
internal/store/commitment_renegotiate_cascade_test.go:150
FunctionTestLinkedOccurrenceRenegotiationRejectsChangedChildFirst
(t *testing.T)
internal/store/commitment_renegotiate_cascade_test.go:58
FunctionTestLinkedOccurrenceRenegotiationTargetOnlyKeepsPlainPath
(t *testing.T)
internal/store/commitment_renegotiate_cascade_test.go:130
FunctionTestLinkedRenegotiationCrossingCascadeDoesNotDeadlock
(t *testing.T)
internal/store/commitment_links_pg_test.go:416
FunctionTestLinkedResolveChildKeepsNewOffset
(t *testing.T)
internal/store/commitment_resolve_cascade_test.go:38
FunctionTestLinkedResolveCommentStaysOnOccurrence
(t *testing.T)
internal/store/commitment_resolve_cascade_test.go:75
FunctionTestLinkedResolveCrossingCascadeDoesNotDeadlock
(t *testing.T)
internal/store/commitment_links_pg_test.go:392
FunctionTestLinkedResolveCrossingPlainChildResolveDoesNotDeadlock
(t *testing.T)
internal/store/commitment_links_pg_test.go:403
FunctionTestLinkedResolveFloatingCommentUsesTheRecipientsOccurrence
The occurrence row is keyed by the recipient's instant, whichever zone the caller named the occurrence in.
internal/store/commitment_linked_entry_test.go:40
FunctionTestLinkedResolveHardDeadlineRefusalIsAtomic
(t *testing.T)
internal/store/commitment_resolve_cascade_test.go:55
FunctionTestLinkedResolveInactiveOtherEndUsesPlainPastMove
(t *testing.T)
internal/store/commitment_resolve_cascade_test.go:136
FunctionTestLinkedResolveLapseRefusalLeavesNoComment
(t *testing.T)
internal/store/commitment_resolve_cascade_test.go:161
FunctionTestLinkedResolveMoveCascadesWithOneLineage
(t *testing.T)
internal/store/commitment_resolve_cascade_test.go:18
FunctionTestLinkedResolveOwnDeadlineConfirmation
(t *testing.T)
internal/store/commitment_past_deadline_test.go:183
FunctionTestLinkedResolvePastMoveWaitsForDone
(t *testing.T)
internal/store/commitment_resolve_cascade_test.go:94
FunctionTestLinksDroppedCountsOnlyLinksToItemsTheMoverCanRead
LinksDropped counts only links whose other end the mover can read, as ChildrenDropped does; a link to a hidden end is still deleted with the moved sch
internal/store/schedule_carry_links_test.go:146
FunctionTestLinksStayWithinOneWorkspace
(t *testing.T)
internal/store/commitment_links_test.go:454
FunctionTestListAllMCPAudit_ReturnsAcrossUsers
(t *testing.T)
internal/store/mcp_audit_test.go:377
FunctionTestListAndDeleteAPITokens
(t *testing.T)
internal/store/api_tokens_test.go:279
FunctionTestListArchivedItemWorkspaceMovesBySource
TestListArchivedItemWorkspaceMovesBySource covers the narrow, SQL-bounded query the moved-to pointer reads (TASK-2359): archived_source rows only, new
internal/store/item_workspace_moves_test.go:477
FunctionTestListArchivedItemWorkspaceMovesBySource_SameSecondUsesSourceSeq
TestListArchivedItemWorkspaceMovesBySource_SameSecondUsesSourceSeq is the sole surviving home of DR-2a's decisive case (the broad forward lookup's dup
internal/store/item_workspace_moves_test.go:564
FunctionTestListAttachments_HidesDerived
TestListAttachments_HidesDerived asserts that thumbnail rows (parent_id != NULL) don't show up in the list. They count toward quota but are managed au
internal/server/handlers_storage_test.go:218
FunctionTestListAttachments_Pagination
TestListAttachments_Pagination covers list + paginate + sort ordering. Uploads three blobs of distinct sizes and verifies: - default sort is created_a
internal/server/handlers_storage_test.go:126
FunctionTestListBeforeTime_InvalidUTF8CursorIsADialectDivergence
CHARACTERIZATION, not a regression test: it passes with or without this unit's change, because it describes the BACKENDS rather than the handler. That
internal/server/handlers_timeline_cursor_validation_test.go:132
FunctionTestListCollectionItemsResolvesRelationFieldFilterRefs
(t *testing.T)
internal/server/handlers_items_test.go:263
FunctionTestListCollectionsMinimalReturnsSettingsJSON
TestListCollectionsMinimalReturnsSettingsJSON verifies the happy path: a collection with non-NULL JSON settings round-trips through the minimal query
internal/store/collections_test.go:489
FunctionTestListCommentsBeforeTime_AgentNameSurvivesActivityWindow
The design's load-bearing claim: the name reaches the comment regardless of which activities a paginated activity read would return. Six later activit
internal/store/comments_agent_name_test.go:149
FunctionTestListCommentsBeforeTime_LimitRespected
(t *testing.T)
internal/store/timeline_pagination_test.go:126
FunctionTestListCommentsBeforeTime_NoCursor
(t *testing.T)
internal/store/timeline_pagination_test.go:52
FunctionTestListCommentsBeforeTime_SameSecondCursor
TestListCommentsBeforeTime_SameSecondCursor exercises the path where a caller passes a `before` timestamp together with an upper-bound id sentinel (e.
internal/store/timeline_pagination_test.go:96
FunctionTestListCommentsBeforeTime_WithCursor
(t *testing.T)
internal/store/timeline_pagination_test.go:72
FunctionTestListComments_AgentNameFromLinkedActivity
(t *testing.T)
internal/store/comments_agent_name_test.go:56
FunctionTestListComments_AgentNameNeverReadAcrossItems
TASK-2760, two findings with one root: the join keyed on activity id alone, and nothing in the schema says a comment's activity belongs to the comment
internal/store/comments_agent_name_test.go:250
FunctionTestListComments_CarriesAgentName
The comments endpoint shares the store read path, so it carries the same field — one mechanism, every surface (`pad item comments` reads this).
internal/server/handlers_timeline_comment_agent_test.go:140
FunctionTestListCompletedWorkSinceListsAnItemOnce
BUG-2639: the list endpoint splits a filter value containing a comma into an IN list, so a collection whose completed-work values include both "x" and
cmd/pad/bug2639_completed_work_dedup_test.go:18
FunctionTestListConversations
(t *testing.T)
internal/store/conversations_test.go:1327
FunctionTestListDeletedWorkspaces_OwnerScoped
TestListDeletedWorkspaces_OwnerScoped: the deleted-list is scoped to the caller's owned workspaces and carries the purge-window fields.
internal/server/handlers_workspaces_test.go:411
FunctionTestListDeletedWorkspaces_WindowAndOwnerScope
TestListDeletedWorkspaces_WindowAndOwnerScope pins the 30-day restore window boundary (29d IN, 31d OUT — the inverse of the purge boundary), owner-sco
internal/store/workspaces_test.go:123
FunctionTestListDocumentActivityBeforeTime_ExcludesCommentLinkedRows
TASK-2760: the timeline handler suppressed a comment's linked activity only when the comment was in the SAME page — comments and activities being pagi
internal/store/comments_agent_name_test.go:212
FunctionTestListDocumentActivityBeforeTime_LinkedUpdatedRows
The query half of the rule above, read without buildTimeline's in-memory guard: a linked "updated" row is returned only when it carries a change.
internal/server/plan2348_timeline_drops_test.go:188
FunctionTestListDocumentActivityBeforeTime_LinkedUpdatedRows_Postgres
The same leg on Postgres, where the query reads metadata::text because the column is JSONB there; testServer is always SQLite. Skips unless PAD_TEST_P
internal/server/plan2348_timeline_drops_test.go:196
FunctionTestListDocumentActivityBeforeTime_NoCursor
(t *testing.T)
internal/store/timeline_pagination_test.go:140
FunctionTestListDocuments_FTS_PinnedFilter
TestListDocuments_FTS_PinnedFilter pins BUG-820 for the pinned filter: documents?q=foo&pinned=true used to ignore the pin bit when the FTS branch took
internal/store/items_test.go:2099
FunctionTestListDocuments_FTS_TagFilter
TestListDocuments_FTS_TagFilter pins BUG-820: when a search query is set, the FTS branch must still re-apply Tag filters (the documents analog of BUG-
internal/store/items_test.go:2058
FunctionTestListDocuments_HyphenatedQuery
TestListDocuments_HyphenatedQuery covers BUG-818 on the documents FTS path. Same root cause as items: hyphenated queries hit FTS5's boolean parser and
internal/store/items_test.go:1713
FunctionTestListForecastsForAgendaExcludes
(t *testing.T)
internal/store/schedule_agenda_forecast_test.go:52
FunctionTestListForecastsForAgendaWindow
(t *testing.T)
internal/store/schedule_agenda_forecast_test.go:10
FunctionTestListItemGrants_RestrictedOwner_HiddenCollection404
TestListItemGrants_RestrictedOwner_HiddenCollection404 pins the list-side of BUG-1920 for item grants.
internal/server/handlers_grant_visibility_test.go:257
FunctionTestListItemLeases_LiveOnly
ListItemLeases returns only live leases, keyed by item id.
internal/store/item_lease_test.go:223
FunctionTestListItemShareLinks_RestrictedOwner_HiddenCollection404
TestListItemShareLinks_RestrictedOwner_HiddenCollection404 pins the list-side of BUG-1920.
internal/server/handlers_grant_visibility_test.go:168
FunctionTestListItemVersionsBeforeTime_NoCursor
(t *testing.T)
internal/store/timeline_pagination_test.go:167
FunctionTestListItemVersionsHTTP
TestListItemVersionsHTTP exercises the read-only history endpoint the CLI `pad item history` and the MCP `pad_item.history` action consume: after a co
internal/server/handlers_items_fieldpatch_test.go:371
FunctionTestListItemVersionsPage_LimitTakesTheNewest
(t *testing.T)
internal/store/items_versions_page_test.go:103
FunctionTestListItemVersionsPage_ReturnsUnresolvedRows
(t *testing.T)
internal/store/items_versions_page_test.go:20
FunctionTestListItemsChanges_CursorRoundtripsCleanly
TestListItemsChanges_CursorRoundtripsCleanly proves "no overlap or gap": after running the delta once, re-polling with the returned cursor as `since`
internal/server/handlers_items_test.go:1767
FunctionTestListItemsChanges_EmptyWorkspace
TestListItemsChanges_EmptyWorkspace returns no rows and preserves the caller's cursor.
internal/server/handlers_items_test.go:1869
FunctionTestListItemsChanges_FullDeltaFromZero
TestListItemsChanges_FullDeltaFromZero covers the foundational behavior of the delta-fetch endpoint (TASK-1354): three creates, `?since=0`, all three
internal/server/handlers_items_test.go:1653
FunctionTestListItemsChanges_IncrementalUpdateAndDelete
TestListItemsChanges_IncrementalUpdateAndDelete walks the typical resume flow: create three, snapshot cursor, update one, soft-delete one. A poll at t
internal/server/handlers_items_test.go:1700
FunctionTestListItemsChanges_InvalidParams
TestListItemsChanges_InvalidParams rejects bad `since` / `limit` values with 400 instead of silently returning the entire workspace.
internal/server/handlers_items_test.go:1844
FunctionTestListItemsChanges_LimitTruncatesAndCursorResumes
TestListItemsChanges_LimitTruncatesAndCursorResumes covers the `?limit=N` truncation contract: the response holds N rows; cursor equals seq of the las
internal/server/handlers_items_test.go:1797
FunctionTestListItemsFieldDateWindow
TASK-4104 D1: the date-window clause of ListItems. SQLite in make test, Postgres in make test-pg (the one dialect-sensitive piece of the agenda).
internal/store/items_date_window_test.go:12
FunctionTestListItemsFiltersWithItemIDsAlone
The calendar narrows a schedule's items with the page's filters and ItemIDs alone (CollectionIDs nil): filters and ItemIDs combine as an AND, and the
internal/store/items_field_range_test.go:291
FunctionTestListItemsIncludesCodeContext
(t *testing.T)
internal/store/items_test.go:793
FunctionTestListItemsIndex_CollectionFilter
TestListItemsIndex_CollectionFilter covers ?collection=<slug>.
internal/server/handlers_items_test.go:1522
FunctionTestListItemsIndex_CursorMonotonicAcrossMutations
TestListItemsIndex_CursorMonotonicAcrossMutations confirms that the cursor advances after every items mutation and can be re-used as the `since` param
internal/server/handlers_items_test.go:1489
FunctionTestListItemsIndex_DoesNotShadowItemSlug
TestListItemsIndex_DoesNotShadowItemSlug confirms /items-index lives in a non-conflicting URL space — an item titled "Index" (slug "index") still reso
internal/server/handlers_items_test.go:1901
FunctionTestListItemsIndex_EmptyResultFallsBackToWorkspaceMax
TestListItemsIndex_EmptyResultFallsBackToWorkspaceMax verifies the cursor-fallback path (TASK-1353 acceptance): when a filtered query returns zero row
internal/server/handlers_items_test.go:1438
FunctionTestListItemsIndex_EmptyWorkspace
TestListItemsIndex_EmptyWorkspace covers the edge case the cursor is documented to handle: no items → cursor "0".
internal/server/handlers_items_test.go:1403
FunctionTestListItemsIndex_ExcludesArchivedByDefault
TestListItemsIndex_ExcludesArchivedByDefault confirms the IncludeArchived gate matches handleListItems' default behavior.
internal/server/handlers_items_test.go:1592
FunctionTestListItemsIndex_ParentEnrichment
TestListItemsIndex_ParentEnrichment confirms parent_link_id / parent_ref are populated for child items (same enrichment path the existing items list u
internal/server/handlers_items_test.go:1555
FunctionTestListItemsIndex_SkinnyProjectionAndShape
TestListItemsIndex_SkinnyProjectionAndShape covers the foundational behavior of the local-first read model bootstrap endpoint (TASK-1344): - response
internal/server/handlers_items_test.go:1290
FunctionTestListItemsIndex_SortByUpdatedAt
TestListItemsIndex_SortByUpdatedAt forces a >1s gap between the two items so they land in distinct RFC3339 buckets, then asserts the updated_at DESC o
internal/server/handlers_items_test.go:1365
FunctionTestListItemsNoContentProjection
(t *testing.T)
internal/store/dashboard_batch_test.go:237
FunctionTestListItemsParentFilter_ExcludesParentInSoftDeletedCollection
The parent filter on ListItems (and its FTS path) already treats a soft-deleted parent as no parent (BUG-734); a parent in a soft-deleted collection m
internal/store/bug3434_relationship_reads_test.go:180
FunctionTestListItemsPendingContentFlushNamesOnlyStaleItems
ListItemsPendingContentFlush is the migration gate's half of the same predicate the bundle marker uses, and it exists as a separate query, so it gets
internal/store/export_content_state_test.go:116
FunctionTestListItemsQ_CompletedNeedsTheLivePool
ListItemsQ on a snapshot executor reads the items from the snapshot but the completed expression reads the schema from the pool, so it refuses any use
internal/store/items_field_range_test.go:443
FunctionTestListItemsResolvesRelationFieldFilterRefsAcrossCollections
(t *testing.T)
internal/server/handlers_items_test.go:313
FunctionTestListItemsSearch_ExcludesSoftDeletedCollections
(t *testing.T)
internal/store/bug3425_deleted_collection_reads_test.go:86
FunctionTestListItems_AdminBearer_RestrictedMemberIsScoped
TestListItems_AdminBearer_RestrictedMemberIsScoped pins BUG-1917 for handleListItems: a platform admin who is only a restricted member (collection_acc
internal/server/handlers_items_test.go:2364
FunctionTestListItems_CompletedExpressionFailureIsAnError
A collection read that fails while the completed expression is built is an error, not an empty result: an empty calendar would read as no completions.
internal/store/items_field_range_test.go:418
FunctionTestListItems_ExcludesSoftDeletedCollections
(t *testing.T)
internal/store/bug3425_deleted_collection_reads_test.go:52
FunctionTestListItems_FTS_AgentRoleFilter
(t *testing.T)
internal/store/items_test.go:2357
FunctionTestListItems_FTS_AssignedUserFilter
(t *testing.T)
internal/store/items_test.go:2322
FunctionTestListItems_FTS_FieldFilter
(t *testing.T)
internal/store/items_test.go:2405
FunctionTestListItems_FTS_HyphenatedSearchTerm
TestListItems_FTS_HyphenatedSearchTerm pins BUG-818 (FTS5 boolean parser regression on bare hyphens) AND BUG-842 (PG plainto_tsquery missing hyphenate
internal/store/items_test.go:1638
FunctionTestListItems_FTS_ParentIDFilter
(t *testing.T)
internal/store/items_test.go:2289
FunctionTestListItems_FTS_TagFilter
--- BUG-812: listItemsFTS filter parity --- listItemsFTS used to silently drop most non-collection filters when the search param was set, so combinin
internal/store/items_test.go:2248
FunctionTestListItems_FilteredByCollectionIDs
(t *testing.T)
internal/store/permissions_test.go:256
FunctionTestListItems_IncludeArchived_PopulatesDeletedAt
TestListItems_IncludeArchived_PopulatesDeletedAt pins BUG-1791. An archived (soft-deleted) item must (a) stay out of the default active-only list and
internal/store/bug1791_archived_marker_test.go:16
FunctionTestListItems_NonTerminalFilter
TestListItems_NonTerminalFilter is the BUG-2001 acceptance test: the default (no --status / no --all) `pad item list` must resolve "open" per-collecti
internal/store/non_terminal_filter_test.go:14
FunctionTestListItems_OrderByDay
OrderByDay orders by the value the day filters read, for every key shape, so a paged read is in date order and offset pages neither repeat nor skip.
internal/store/items_field_range_test.go:364
FunctionTestListItems_ParentFilter_FTS_RespectsSoftDeletedParent
TestListItems_ParentFilter_FTS_RespectsSoftDeletedParent covers the `parent=<UUID>&search=<q>` combination. The search path routes through listItemsFT
internal/store/items_test.go:1513
FunctionTestListItems_ParentFilter_RespectsSoftDeletedParent
TestListItems_ParentFilter_RespectsSoftDeletedParent ensures the `parent=<UUID>` query filter doesn't return children of a soft-deleted parent. Slug/r
internal/store/items_test.go:1576
FunctionTestListItems_UnparentedStructuralParity
(t *testing.T)
internal/store/items_test.go:79
← previousnext →20,901–21,000 of 28,840, ranked by callers