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
TestScrubOutboxRow_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
Function
TestScrubOutboxUserRefsBatchesWithoutLosingRows
(t *testing.T)
internal/store/event_outbox_bounds_test.go:348
Function
TestScrubOutboxUserRefsTerminatesOnLikeFalsePositives
(t *testing.T)
internal/store/event_outbox_bounds_test.go:391
Function
TestScrubOutboxUserRefs_AttachmentSnapshot
(t *testing.T)
internal/store/event_outbox_scrub_test.go:243
Function
TestScrubOutboxUserRefs_BulkMembers
(t *testing.T)
internal/store/event_outbox_scrub_test.go:155
Function
TestScrubOutboxUserRefs_CommentSnapshot
(t *testing.T)
internal/store/event_outbox_scrub_test.go:206
Function
TestScrubOutboxUserRefs_DispatchedRowsScrubbedNotDeleted
(t *testing.T)
internal/store/event_outbox_scrub_test.go:346
Function
TestScrubOutboxUserRefs_ItemSnapshot
(t *testing.T)
internal/store/event_outbox_scrub_test.go:113
Function
TestScrubOutboxUserRefs_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
Function
TestScrubOutboxUserRefs_MemberRowAndSubjectColumn
(t *testing.T)
internal/store/event_outbox_scrub_test.go:274
Function
TestScrubOutboxUserRefs_RefusesEmptyUserID
(t *testing.T)
internal/store/event_outbox_scrub_test.go:491
Function
TestScrubSpendsItsByteBudgetNotJustItsRowLimit
(t *testing.T)
internal/store/event_outbox_bounds_test.go:694
Function
TestScrumProductTemplatesUseExplicitFriendlyPrefixes
TestScrumProductTemplatesUseExplicitFriendlyPrefixes guards the prefix-fix precondition from PLAN-1146: scrum and product collection definitions set e
internal/collections/templates_test.go:275
Function
TestSearchCollectionAndFieldFilters
(t *testing.T)
internal/store/store_test.go:1384
Function
TestSearchCollectionArchivedNameClaimsItself
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
Function
TestSearchCollectionExactBeatsAlias
Exact beats alias: with both `task` and `tasks`, `task` is `task`.
internal/server/handlers_search_collection_bug2659_test.go:104
Function
TestSearchCollectionFilter
(t *testing.T)
internal/store/store_test.go:1268
Function
TestSearchCollectionResolvesAcrossMemberships
The membership fan-out (a signed-in caller, no workspace named) resolves the same way.
internal/server/handlers_search_collection_bug2659_test.go:131
Function
TestSearchCollectionResolvesPerWorkspace
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
Function
TestSearchCollectionShorthandResolves
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
Function
TestSearchCollectionUnknownIsEmpty
A name that resolves nowhere answers an empty 200, as before.
internal/server/handlers_search_collection_bug2659_test.go:169
Function
TestSearchCommentDedupAndPagination
(t *testing.T)
internal/store/search_comments_test.go:63
Function
TestSearchCommentMarker
(t *testing.T)
cmd/pad/search_comments_test.go:9
Function
TestSearchCommentOnly
(t *testing.T)
internal/store/search_comments_test.go:40
Function
TestSearchCommentProjection
(t *testing.T)
internal/mcp/search_comments_test.go:5
Function
TestSearchCommentResponseAndPermission
(t *testing.T)
internal/server/search_comments_test.go:12
Function
TestSearchCommentSnippetProvenance
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
Function
TestSearchCommentVisibility
(t *testing.T)
internal/store/search_comments_test.go:130
Function
TestSearchDecisionOnly
(t *testing.T)
internal/store/search_entries_test.go:58
Function
TestSearchEdgeCases
TestSearchEdgeCases tests tricky search scenarios on both backends.
internal/store/search_quality_test.go:192
Function
TestSearchEndpoint
(t *testing.T)
internal/server/server_test.go:342
Function
TestSearchEntryBandAndDedup
(t *testing.T)
internal/store/search_entries_test.go:103
Function
TestSearchEntryBeatsWeakComment
The source an item is shown under is whichever of its comment and entry matches ranks better.
internal/store/search_entries_test.go:163
Function
TestSearchEntryHeadSnippetPreferred
(t *testing.T)
internal/store/search_entries_test.go:78
Function
TestSearchEntryMarker
(t *testing.T)
cmd/pad/search_entries_test.go:9
Function
TestSearchEntryProjection
(t *testing.T)
internal/mcp/search_entries_test.go:5
Function
TestSearchEntryResponseAndPermission
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
Function
TestSearchEntrySnippetProvenance
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
Function
TestSearchEntryVisibility
(t *testing.T)
internal/store/search_entries_test.go:206
Function
TestSearchFacets
(t *testing.T)
internal/store/store_test.go:1551
Function
TestSearchFieldFilters
(t *testing.T)
internal/store/store_test.go:1322
Function
TestSearchItems_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
Function
TestSearchListHonoursNoContent
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
Function
TestSearchLiteralMarkInBodyContentMatch
(t *testing.T)
internal/store/search_matched_in_test.go:100
Function
TestSearchLiteralMarkInBodyTagsMatch
(t *testing.T)
internal/store/search_matched_in_test.go:55
Function
TestSearchLiteralMarkInBodyTitleMatch
(t *testing.T)
internal/store/search_matched_in_test.go:27
Function
TestSearchLiteralMarkInEntryHead
(t *testing.T)
internal/store/search_matched_in_test.go:120
Function
TestSearchMatchRelationHasNoSnippets
(t *testing.T)
internal/store/search_snippets_test.go:13
Function
TestSearchMatchedInFieldsAndRef
(t *testing.T)
internal/store/search_comments_test.go:259
Function
TestSearchNoteOnly
(t *testing.T)
internal/store/search_entries_test.go:35
Function
TestSearchPagination
(t *testing.T)
internal/store/store_test.go:1423
Function
TestSearchPrefix
(t *testing.T)
internal/store/search_prefix_test.go:13
Function
TestSearchPrefixDirectLookup
(t *testing.T)
internal/store/search_prefix_test.go:143
Function
TestSearchPrefixDirectLookupTwoDigits
(t *testing.T)
internal/store/search_prefix_test.go:196
Function
TestSearchPrefixLongWord
(t *testing.T)
internal/store/search_prefix_test.go:161
Function
TestSearchPrefixPunctuation
(t *testing.T)
internal/store/search_prefix_test.go:117
Function
TestSearchQualityComparison
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
Function
TestSearchSendsCollectionAsTypedToAResolvingServer
(t *testing.T)
cmd/pad/search_collection_gate_test.go:60
Function
TestSearchSnippetsOnlyForPage
(t *testing.T)
internal/store/search_snippets_test.go:60
Function
TestSearchSorting
(t *testing.T)
internal/store/store_test.go:1504
Function
TestSearchSplitQueryNamesTheColumnWithAHit
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
Function
TestSearchStillExpandsShorthandForOtherServers
(t *testing.T)
cmd/pad/search_collection_gate_test.go:68
Function
TestSearchTagsSnippetIsPlainList
(t *testing.T)
internal/store/search_matched_in_test.go:135
Function
TestSearchUsersAggregations
TestSearchUsersAggregations verifies that SearchUsers returns correct workspace_count + storage_bytes + status aggregations and that the new sort/filt
internal/store/users_test.go:300
Function
TestSearch_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
Function
TestSearch_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
Function
TestSearch_BareNumericQueryPaginatesAcrossWorkspaces
TestSearch_BareNumericQueryPaginatesAcrossWorkspaces guards the following case. In global search (WorkspaceIDs scoping, no single `Workspace`), a bare
internal/store/store_test.go:1794
Function
TestSearch_ExcludesSoftDeletedCollections
(t *testing.T)
internal/store/bug3428_deleted_collection_reads_test.go:28
Function
TestSecretPlatformSetting_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
Function
TestSecurityHeaders
(t *testing.T)
internal/server/middleware_security_test.go:9
Function
TestSeedCollectionsFromTemplateAddsConventionsRoleField
(t *testing.T)
internal/store/items_test.go:405
Function
TestSeedCollectionsFromTemplateHiring
TestSeedCollectionsFromTemplateHiring verifies end-to-end that the hiring template creates the right collections and seeds its starter pack.
internal/store/items_test.go:475
Function
TestSeedCollectionsFromTemplateIdempotentWithSeedItems
TestSeedCollectionsFromTemplateIdempotentWithSeedItems verifies that re-running the seed function across a pre-existing workspace does NOT duplicate s
internal/store/items_test.go:630
Function
TestSeedCollectionsFromTemplateInterviewing
TestSeedCollectionsFromTemplateInterviewing verifies end-to-end that the interviewing template creates its collections and seeds the starter pack.
internal/store/items_test.go:541
Function
TestSeedCollectionsFromTemplateRecoversPartialInit
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
Function
TestSeedCollectionsFromTemplateSeedsStarterPack
TestSeedCollectionsFromTemplateSeedsStarterPack verifies that the software templates' starter conventions + playbooks are materialized as items in the
internal/store/items_test.go:439
Function
TestSeedDefaultCollections
(t *testing.T)
internal/store/items_test.go:362
Function
TestSeedFromBlankTemplate
TestSeedFromBlankTemplate verifies that bootstrapping a workspace from the blank template (IDEA-1479) produces exactly two collections (Conventions, P
internal/store/collections_test.go:605
Function
TestSeedFromTemplateAlwaysIncludesOnboardPlaybook
TestSeedFromTemplateAlwaysIncludesOnboardPlaybook covers TASK-1500's contract: the /pad onboard playbook is auto-seeded into EVERY workspace created w
internal/store/collections_test.go:661
Function
TestSeedGrantGoesToExactlyOneWritableConn
(t *testing.T)
internal/collab/seed_grant_bug3240_test.go:25
Function
TestSeedGrantNeverGoesToReadOnlyConn
(t *testing.T)
internal/collab/seed_grant_bug3240_test.go:43
Function
TestSeedGrantPassesToLivePeerAfterSeedersLastOp
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
Function
TestSeedGrantReleasedToNextConnWhenSeederLeavesAlone
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
Function
TestSeedWithEmptyTemplateNameSkipsOnboard
TestSeedWithEmptyTemplateNameSkipsOnboard locks the escape-hatch invariant: SeedCollectionsFromTemplate(ws, "") must NOT auto-seed the onboard playboo
internal/store/collections_test.go:696
Function
TestSeededCollectionsDeclareTraits
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
Function
TestSelfHostRegister_StaysRestricted
--------------------------------------------------------------------- DR-6 negative: self-host register stays admin/invitation-only. -----------------
internal/server/handlers_verify_email_test.go:298
Function
TestSendAdvancesSenderReadMarker
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
Function
TestSendAs_CustomFromName
(t *testing.T)
internal/email/sender_test.go:59
Function
TestSendContextWorkspace
(t *testing.T)
internal/store/conversations_test.go:189
Function
TestSendEmailVerification
(t *testing.T)
internal/email/sender_test.go:217
Function
TestSendIdempotentOpKey
(t *testing.T)
internal/store/conversations_test.go:536
Function
TestSendInvitation_ContextualFromName
(t *testing.T)
internal/email/sender_test.go:168
Function
TestSendRejectsInvalidInput
(t *testing.T)
internal/store/conversations_test.go:151
Function
TestSendReplayAfterContextLoss
(t *testing.T)
internal/store/conversations_test.go:257
Function
TestSendReplayAfterTombstone
(t *testing.T)
internal/store/conversations_test.go:1166
Function
TestSendReplyTo
(t *testing.T)
internal/store/conversations_test.go:609
Function
TestSendTest
(t *testing.T)
internal/email/sender_test.go:253
Function
TestSendWelcome
(t *testing.T)
internal/email/sender_test.go:193
Function
TestSend_APIError
(t *testing.T)
internal/email/sender_test.go:85
Function
TestSend_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
← previous
next →
24,201–24,300 of 28,840, ranked by callers