MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestScrubOutboxRow_StaleReadRetriesAgainstFreshPayload
TestScrubOutboxRow_StaleReadRetriesAgainstFreshPayload drives the compare-and-swap's retry leg directly — the concurrent-deletion race it exists for n
internal/store/event_outbox_scrub_test.go:436
FunctionTestScrubOutboxUserRefsBatchesWithoutLosingRows
(t *testing.T)
internal/store/event_outbox_bounds_test.go:348
FunctionTestScrubOutboxUserRefsTerminatesOnLikeFalsePositives
(t *testing.T)
internal/store/event_outbox_bounds_test.go:391
FunctionTestScrubOutboxUserRefs_AttachmentSnapshot
(t *testing.T)
internal/store/event_outbox_scrub_test.go:243
FunctionTestScrubOutboxUserRefs_BulkMembers
(t *testing.T)
internal/store/event_outbox_scrub_test.go:155
FunctionTestScrubOutboxUserRefs_CommentSnapshot
(t *testing.T)
internal/store/event_outbox_scrub_test.go:206
FunctionTestScrubOutboxUserRefs_DispatchedRowsScrubbedNotDeleted
(t *testing.T)
internal/store/event_outbox_scrub_test.go:346
FunctionTestScrubOutboxUserRefs_ItemSnapshot
(t *testing.T)
internal/store/event_outbox_scrub_test.go:113
FunctionTestScrubOutboxUserRefs_KeyScopedAndNumberSafe
TestScrubOutboxUserRefs_KeyScopedAndNumberSafe pins two properties a looser implementation passes every other test without: the walk is KEY-scoped, no
internal/store/event_outbox_scrub_test.go:387
FunctionTestScrubOutboxUserRefs_MemberRowAndSubjectColumn
(t *testing.T)
internal/store/event_outbox_scrub_test.go:274
FunctionTestScrubOutboxUserRefs_RefusesEmptyUserID
(t *testing.T)
internal/store/event_outbox_scrub_test.go:491
FunctionTestScrubSpendsItsByteBudgetNotJustItsRowLimit
(t *testing.T)
internal/store/event_outbox_bounds_test.go:694
FunctionTestScrumProductTemplatesUseExplicitFriendlyPrefixes
TestScrumProductTemplatesUseExplicitFriendlyPrefixes guards the prefix-fix precondition from PLAN-1146: scrum and product collection definitions set e
internal/collections/templates_test.go:275
FunctionTestSearchCollectionAndFieldFilters
(t *testing.T)
internal/store/store_test.go:1384
FunctionTestSearchCollectionArchivedNameClaimsItself
An archived `task` still claims its name: the filter does not fall through to `tasks` in that workspace.
internal/server/handlers_search_collection_bug2659_test.go:155
FunctionTestSearchCollectionExactBeatsAlias
Exact beats alias: with both `task` and `tasks`, `task` is `task`.
internal/server/handlers_search_collection_bug2659_test.go:104
FunctionTestSearchCollectionFilter
(t *testing.T)
internal/store/store_test.go:1268
FunctionTestSearchCollectionResolvesAcrossMemberships
The membership fan-out (a signed-in caller, no workspace named) resolves the same way.
internal/server/handlers_search_collection_bug2659_test.go:131
FunctionTestSearchCollectionResolvesPerWorkspace
Per workspace: the same input names `task` in one workspace and resolves to `tasks` in another, in one unscoped search. No single slug can say that.
internal/server/handlers_search_collection_bug2659_test.go:117
FunctionTestSearchCollectionShorthandResolves
Shorthand reaches the collection it names when nothing is named that exactly. Red on main: the literal filter matched no `task` and answered nothing,
internal/server/handlers_search_collection_bug2659_test.go:94
FunctionTestSearchCollectionUnknownIsEmpty
A name that resolves nowhere answers an empty 200, as before.
internal/server/handlers_search_collection_bug2659_test.go:169
FunctionTestSearchCommentDedupAndPagination
(t *testing.T)
internal/store/search_comments_test.go:63
FunctionTestSearchCommentMarker
(t *testing.T)
cmd/pad/search_comments_test.go:9
FunctionTestSearchCommentOnly
(t *testing.T)
internal/store/search_comments_test.go:40
FunctionTestSearchCommentProjection
(t *testing.T)
internal/mcp/search_comments_test.go:5
FunctionTestSearchCommentResponseAndPermission
(t *testing.T)
internal/server/search_comments_test.go:12
FunctionTestSearchCommentSnippetProvenance
The comment a result names, and the snippet it shows, come only from a comment that passed every filter: a higher-ranked tombstoned comment whose body
internal/store/search_comments_test.go:222
FunctionTestSearchCommentVisibility
(t *testing.T)
internal/store/search_comments_test.go:130
FunctionTestSearchDecisionOnly
(t *testing.T)
internal/store/search_entries_test.go:58
FunctionTestSearchEdgeCases
TestSearchEdgeCases tests tricky search scenarios on both backends.
internal/store/search_quality_test.go:192
FunctionTestSearchEndpoint
(t *testing.T)
internal/server/server_test.go:342
FunctionTestSearchEntryBandAndDedup
(t *testing.T)
internal/store/search_entries_test.go:103
FunctionTestSearchEntryBeatsWeakComment
The source an item is shown under is whichever of its comment and entry matches ranks better.
internal/store/search_entries_test.go:163
FunctionTestSearchEntryHeadSnippetPreferred
(t *testing.T)
internal/store/search_entries_test.go:78
FunctionTestSearchEntryMarker
(t *testing.T)
cmd/pad/search_entries_test.go:9
FunctionTestSearchEntryProjection
(t *testing.T)
internal/mcp/search_entries_test.go:5
FunctionTestSearchEntryResponseAndPermission
TASK-4491: a note or decision match carries matched_in and entry_id on the wire, and only for an item the caller may see.
internal/server/search_entries_test.go:15
FunctionTestSearchEntrySnippetProvenance
The entry a result names, and the snippet it shows, come only from an entry that passed every filter: one removed from fields, one on a hidden item an
internal/store/search_entries_test.go:299
FunctionTestSearchEntryVisibility
(t *testing.T)
internal/store/search_entries_test.go:206
FunctionTestSearchFacets
(t *testing.T)
internal/store/store_test.go:1551
FunctionTestSearchFieldFilters
(t *testing.T)
internal/store/store_test.go:1322
FunctionTestSearchItems_HyphenatedQuery
TestSearchItems_HyphenatedQuery is the BUG-818 regression test on the api/v1/search code path, which routes through Store.SearchItems instead of Store
internal/store/items_test.go:1684
FunctionTestSearchListHonoursNoContent
A search list asked to omit the body omits it, like every other list: the full-text path used to select the column regardless of NoContent.
internal/store/item_content_state_test.go:399
FunctionTestSearchLiteralMarkInBodyContentMatch
(t *testing.T)
internal/store/search_matched_in_test.go:100
FunctionTestSearchLiteralMarkInBodyTagsMatch
(t *testing.T)
internal/store/search_matched_in_test.go:55
FunctionTestSearchLiteralMarkInBodyTitleMatch
(t *testing.T)
internal/store/search_matched_in_test.go:27
FunctionTestSearchLiteralMarkInEntryHead
(t *testing.T)
internal/store/search_matched_in_test.go:120
FunctionTestSearchMatchRelationHasNoSnippets
(t *testing.T)
internal/store/search_snippets_test.go:13
FunctionTestSearchMatchedInFieldsAndRef
(t *testing.T)
internal/store/search_comments_test.go:259
FunctionTestSearchNoteOnly
(t *testing.T)
internal/store/search_entries_test.go:35
FunctionTestSearchPagination
(t *testing.T)
internal/store/store_test.go:1423
FunctionTestSearchPrefix
(t *testing.T)
internal/store/search_prefix_test.go:13
FunctionTestSearchPrefixDirectLookup
(t *testing.T)
internal/store/search_prefix_test.go:143
FunctionTestSearchPrefixDirectLookupTwoDigits
(t *testing.T)
internal/store/search_prefix_test.go:196
FunctionTestSearchPrefixLongWord
(t *testing.T)
internal/store/search_prefix_test.go:161
FunctionTestSearchPrefixPunctuation
(t *testing.T)
internal/store/search_prefix_test.go:117
FunctionTestSearchQualityComparison
TestSearchQualityComparison seeds identical data into both SQLite and PostgreSQL, runs the same queries against each, and reports ranking differences.
internal/store/search_quality_test.go:15
FunctionTestSearchSendsCollectionAsTypedToAResolvingServer
(t *testing.T)
cmd/pad/search_collection_gate_test.go:60
FunctionTestSearchSnippetsOnlyForPage
(t *testing.T)
internal/store/search_snippets_test.go:60
FunctionTestSearchSorting
(t *testing.T)
internal/store/store_test.go:1504
FunctionTestSearchSplitQueryNamesTheColumnWithAHit
A query whose words sit in different columns still names the column that carries a hit: here the title, with the other word only in the tags. A column
internal/store/search_matched_in_test.go:79
FunctionTestSearchStillExpandsShorthandForOtherServers
(t *testing.T)
cmd/pad/search_collection_gate_test.go:68
FunctionTestSearchTagsSnippetIsPlainList
(t *testing.T)
internal/store/search_matched_in_test.go:135
FunctionTestSearchUsersAggregations
TestSearchUsersAggregations verifies that SearchUsers returns correct workspace_count + storage_bytes + status aggregations and that the new sort/filt
internal/store/users_test.go:300
FunctionTestSearch_BareNumericQueryDedupsAgainstFTS
TestSearch_BareNumericQueryDedupsAgainstFTS guards the fix for the BUG-864/910 issue: when a bare-numeric query also matches FTS via the item's title/
internal/store/store_test.go:1738
FunctionTestSearch_BareNumericQueryFindsItemByNumber
TestSearch_BareNumericQueryFindsItemByNumber verifies that typing a plain number into the search field (e.g. "843") resolves to the workspace-global i
internal/store/store_test.go:1660
FunctionTestSearch_BareNumericQueryPaginatesAcrossWorkspaces
TestSearch_BareNumericQueryPaginatesAcrossWorkspaces guards the following case. In global search (WorkspaceIDs scoping, no single `Workspace`), a bare
internal/store/store_test.go:1794
FunctionTestSearch_ExcludesSoftDeletedCollections
(t *testing.T)
internal/store/bug3428_deleted_collection_reads_test.go:28
FunctionTestSecretPlatformSetting_RefusesWithoutEncryptionKey
The store boundary refuses a secret without a key instead of falling back to plaintext (kept as a defence, one test). `pad server` cannot reach this —
internal/server/decision_settings_test.go:370
FunctionTestSecurityHeaders
(t *testing.T)
internal/server/middleware_security_test.go:9
FunctionTestSeedCollectionsFromTemplateAddsConventionsRoleField
(t *testing.T)
internal/store/items_test.go:405
FunctionTestSeedCollectionsFromTemplateHiring
TestSeedCollectionsFromTemplateHiring verifies end-to-end that the hiring template creates the right collections and seeds its starter pack.
internal/store/items_test.go:475
FunctionTestSeedCollectionsFromTemplateIdempotentWithSeedItems
TestSeedCollectionsFromTemplateIdempotentWithSeedItems verifies that re-running the seed function across a pre-existing workspace does NOT duplicate s
internal/store/items_test.go:630
FunctionTestSeedCollectionsFromTemplateInterviewing
TestSeedCollectionsFromTemplateInterviewing verifies end-to-end that the interviewing template creates its collections and seeds the starter pack.
internal/store/items_test.go:541
FunctionTestSeedCollectionsFromTemplateRecoversPartialInit
TestSeedCollectionsFromTemplateRecoversPartialInit verifies that a retry after a partial seed (some items missing) fills in the missing items rather t
internal/store/items_test.go:598
FunctionTestSeedCollectionsFromTemplateSeedsStarterPack
TestSeedCollectionsFromTemplateSeedsStarterPack verifies that the software templates' starter conventions + playbooks are materialized as items in the
internal/store/items_test.go:439
FunctionTestSeedDefaultCollections
(t *testing.T)
internal/store/items_test.go:362
FunctionTestSeedFromBlankTemplate
TestSeedFromBlankTemplate verifies that bootstrapping a workspace from the blank template (IDEA-1479) produces exactly two collections (Conventions, P
internal/store/collections_test.go:605
FunctionTestSeedFromTemplateAlwaysIncludesOnboardPlaybook
TestSeedFromTemplateAlwaysIncludesOnboardPlaybook covers TASK-1500's contract: the /pad onboard playbook is auto-seeded into EVERY workspace created w
internal/store/collections_test.go:661
FunctionTestSeedGrantGoesToExactlyOneWritableConn
(t *testing.T)
internal/collab/seed_grant_bug3240_test.go:25
FunctionTestSeedGrantNeverGoesToReadOnlyConn
(t *testing.T)
internal/collab/seed_grant_bug3240_test.go:43
FunctionTestSeedGrantPassesToLivePeerAfterSeedersLastOp
The seeder leaves: a live peer is granted, and the grant arrives AFTER the op the seeder sent before leaving, so the peer's "is my doc still empty" ch
internal/collab/seed_grant_bug3240_test.go:64
FunctionTestSeedGrantReleasedToNextConnWhenSeederLeavesAlone
The seeder leaves with nobody else in the room: the NEXT connection to set up is granted.
internal/collab/seed_grant_bug3240_test.go:116
FunctionTestSeedWithEmptyTemplateNameSkipsOnboard
TestSeedWithEmptyTemplateNameSkipsOnboard locks the escape-hatch invariant: SeedCollectionsFromTemplate(ws, "") must NOT auto-seed the onboard playboo
internal/store/collections_test.go:696
FunctionTestSeededCollectionsDeclareTraits
TestSeededCollectionsDeclareTraits pins that templates — not just the migration — declare the traits, so a NEWLY created workspace never depends on th
internal/server/handlers_collection_traits_test.go:128
FunctionTestSelfHostRegister_StaysRestricted
--------------------------------------------------------------------- DR-6 negative: self-host register stays admin/invitation-only. -----------------
internal/server/handlers_verify_email_test.go:298
FunctionTestSendAdvancesSenderReadMarker
BUG-4320: a send moves the sender's own read marker to the newest message at the moment of the send. It never touches delivered_seq or another member.
internal/store/conversations_test.go:692
FunctionTestSendAs_CustomFromName
(t *testing.T)
internal/email/sender_test.go:59
FunctionTestSendContextWorkspace
(t *testing.T)
internal/store/conversations_test.go:189
FunctionTestSendEmailVerification
(t *testing.T)
internal/email/sender_test.go:217
FunctionTestSendIdempotentOpKey
(t *testing.T)
internal/store/conversations_test.go:536
FunctionTestSendInvitation_ContextualFromName
(t *testing.T)
internal/email/sender_test.go:168
FunctionTestSendRejectsInvalidInput
(t *testing.T)
internal/store/conversations_test.go:151
FunctionTestSendReplayAfterContextLoss
(t *testing.T)
internal/store/conversations_test.go:257
FunctionTestSendReplayAfterTombstone
(t *testing.T)
internal/store/conversations_test.go:1166
FunctionTestSendReplyTo
(t *testing.T)
internal/store/conversations_test.go:609
FunctionTestSendTest
(t *testing.T)
internal/email/sender_test.go:253
FunctionTestSendWelcome
(t *testing.T)
internal/email/sender_test.go:193
FunctionTestSend_APIError
(t *testing.T)
internal/email/sender_test.go:85
FunctionTestSend_ErrorsDoNotCarryProviderText
Callers log the send error, and a provider may echo the request, so the response body and message must never be part of the error text.
internal/email/sender_test.go:102
← previousnext →24,201–24,300 of 28,840, ranked by callers