MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestWithIssParam
(t *testing.T)
internal/server/oauth_iss_test.go:155
FunctionTestWithTokenAllowedWorkspaces_DefensiveCopy
TestWithTokenAllowedWorkspaces_DefensiveCopy verifies the helper copies the input slice so a caller mutating after the call doesn't corrupt the per-re
internal/server/token_workspace_allowlist_test.go:82
FunctionTestWithTracksWorkDefault
(t *testing.T)
internal/models/tracks_work_test.go:52
FunctionTestWithoutRefuseUndeclaredFieldsAnUndeclaredKeyIsStillAcceptedAndWarned
WITHOUT the flag the write is exactly what it was before BUG-3156, accepted with the key named in warnings.undeclared_fields. This is also the skew be
internal/server/handlers_items_refuse_undeclared_test.go:108
FunctionTestWorkerBadBundle
(t *testing.T)
internal/materialize/worker_test.go:137
FunctionTestWorkerEmptyInput
(t *testing.T)
internal/materialize/worker_test.go:97
FunctionTestWorkerOversizedFrame
(t *testing.T)
internal/materialize/worker_test.go:124
FunctionTestWorkerRoundTrip
(t *testing.T)
internal/materialize/worker_test.go:52
FunctionTestWorkerTruncatedFrame
(t *testing.T)
internal/materialize/worker_test.go:107
FunctionTestWorkspaceAccessChanged_AccountDeletion
(t *testing.T)
internal/server/workspace_access_notify_test.go:352
FunctionTestWorkspaceAccessChanged_CollectionGrants
(t *testing.T)
internal/server/workspace_access_notify_test.go:249
FunctionTestWorkspaceAccessChanged_Create
(t *testing.T)
internal/server/workspace_access_notify_test.go:153
FunctionTestWorkspaceAccessChanged_ImportJSONAndBundle
(t *testing.T)
internal/server/workspace_access_notify_test.go:175
FunctionTestWorkspaceAccessChanged_InvitationAccept
(t *testing.T)
internal/server/workspace_access_notify_test.go:225
FunctionTestWorkspaceAccessChanged_InviteExistingUser
(t *testing.T)
internal/server/workspace_access_notify_test.go:205
FunctionTestWorkspaceAccessChanged_ItemGrants
(t *testing.T)
internal/server/workspace_access_notify_test.go:279
FunctionTestWorkspaceAccessChanged_MemberRemoval
(t *testing.T)
internal/server/workspace_access_notify_test.go:298
FunctionTestWorkspaceAccessChanged_ReplayHonoursOptIn
TestWorkspaceAccessChanged_ReplayHonoursOptIn: a Last-Event-ID resume replays the event to an access=true stream and withholds it from one without, th
internal/server/workspace_access_notify_test.go:518
FunctionTestWorkspaceAccessChanged_SoftDeleteRestorePurge
(t *testing.T)
internal/server/workspace_access_notify_test.go:316
FunctionTestWorkspaceAccessChanged_StreamOptInAndAddressing
TestWorkspaceAccessChanged_StreamOptInAndAddressing: the event reaches the affected user's access=true stream with its workspace_id and change, and no
internal/server/workspace_access_notify_test.go:454
FunctionTestWorkspaceActivityKeysetWalksEveryRowOnce
(t *testing.T)
internal/server/activity_cursor_test.go:31
FunctionTestWorkspaceAllowList_AllowsListedSlug
===================================================================== Workspace allow-list gate (TASK-953) ===========================================
internal/server/handlers_mcp_test.go:1425
FunctionTestWorkspaceAllowList_DeniesUnlistedSlug
TestWorkspaceAllowList_DeniesUnlistedSlug pins the security invariant: a workspace not in the consent allow-list must be rejected with 403 even when t
internal/server/handlers_mcp_test.go:1469
FunctionTestWorkspaceAllowList_LiveMembershipRevocation
TestWorkspaceAllowList_LiveMembershipRevocation pins the live- membership check: a token whose allow-list includes "alpha" stops working when the user
internal/server/handlers_mcp_test.go:1558
FunctionTestWorkspaceAllowList_PATPathUnaffected
TestWorkspaceAllowList_PATPathUnaffected pins what a PAT is and is not subject to. An UNPINNED PAT carries no consent allow-list (the consent UI is OA
internal/server/handlers_mcp_test.go:1624
FunctionTestWorkspaceAllowList_TierTimesRole_WriteByViewer
TestWorkspaceAllowList_TierTimesRole_WriteByViewer pins the central tier×role security claim from PLAN-943: a token whose capability tier is `pad:writ
internal/server/handlers_mcp_test.go:1677
FunctionTestWorkspaceAllowList_WildcardAllowsAnyMembership
TestWorkspaceAllowList_WildcardAllowsAnyMembership pins the wildcard semantics: ["*"] grants access to every workspace the user is a member of, no per
internal/server/handlers_mcp_test.go:1511
FunctionTestWorkspaceAttachments_CategoryFilters
TestWorkspaceAttachments_CategoryFilters covers the document/text/ archive/other filter buckets: the earlier prefix-only mapping silently passed those
internal/store/attachments_test.go:611
FunctionTestWorkspaceAttachments_ForeignCollectionYieldsNullCollectionMetadata
TestWorkspaceAttachments_ForeignCollectionYieldsNullCollectionMetadata covers the second hop of the same leak (TASK-2399, found in review): items.coll
internal/store/attachments_test.go:545
FunctionTestWorkspaceAttachments_ForeignParentYieldsNullMetadata
TestWorkspaceAttachments_ForeignParentYieldsNullMetadata pins TASK-2399 (PLAN-2391 DR-3): an attachment whose item_id points at an item in ANOTHER wor
internal/store/attachments_test.go:357
FunctionTestWorkspaceAttachments_SurfacesSoftDeletedParents
TestWorkspaceAttachments_SurfacesSoftDeletedParents pins that an attachment whose parent item is soft- deleted must remain in the list so the user can
internal/store/attachments_test.go:263
FunctionTestWorkspaceAttachments_VisibilityFilter
TestWorkspaceAttachments_VisibilityFilter verifies that VisibleCollectionIDs gates the result set (PR #303): a restricted member must not see attachme
internal/store/attachments_test.go:143
FunctionTestWorkspaceCRUD
--- Workspace Tests ---
internal/store/store_test.go:563
FunctionTestWorkspaceCap_FreeTierAllowsUpToThree
TestWorkspaceCap_FreeTierAllowsUpToThree verifies that a free-tier user in cloud mode can create exactly 3 workspaces — all three must return 201. TAS
internal/server/handlers_workspace_cap_test.go:16
FunctionTestWorkspaceCap_FreeTierBlocksFourth
TestWorkspaceCap_FreeTierBlocksFourth verifies that the 4th workspace creation attempt for a free-tier user in cloud mode returns 403 with error code
internal/server/handlers_workspace_cap_test.go:52
FunctionTestWorkspaceCap_OverrideUnblocks
TestWorkspaceCap_OverrideUnblocks verifies that a per-user plan_overrides entry raising the workspace cap beyond 3 allows a free-tier user to create a
internal/server/handlers_workspace_cap_test.go:172
FunctionTestWorkspaceCap_ProTierUnlimited
TestWorkspaceCap_ProTierUnlimited verifies that a pro-tier user in cloud mode can create more than 3 workspaces without being blocked.
internal/server/handlers_workspace_cap_test.go:121
FunctionTestWorkspaceCap_SelfHostedNoLimit
TestWorkspaceCap_SelfHostedNoLimit confirms that without SetCloudMode the workspace cap is not enforced — any number of workspaces can be created.
internal/server/handlers_workspace_cap_test.go:155
FunctionTestWorkspaceClaimRoute_HTTPMappingShape
(t *testing.T)
internal/mcp/catalog_workspace_lifecycle_test.go:150
FunctionTestWorkspaceClaimRoute_RequiresWorkspaceAndCode
(t *testing.T)
internal/mcp/catalog_workspace_lifecycle_test.go:176
FunctionTestWorkspaceContextAPI
(t *testing.T)
internal/server/server_test.go:177
FunctionTestWorkspaceContextStdin_BlankRefused
workspace context --stdin: a blank body is not JSON, so it is already refused.
cmd/pad/item_stdin_blank_test.go:265
FunctionTestWorkspaceCreateRoute_HTTPMappingShape
(t *testing.T)
internal/mcp/catalog_workspace_lifecycle_test.go:92
FunctionTestWorkspaceCreateRoute_OmitsOptionalEmptyFields
(t *testing.T)
internal/mcp/catalog_workspace_lifecycle_test.go:125
FunctionTestWorkspaceCreateRoute_RequiresName
(t *testing.T)
internal/mcp/catalog_workspace_lifecycle_test.go:118
FunctionTestWorkspaceDeletedRoute_HTTPMappingShape
(t *testing.T)
internal/mcp/catalog_workspace_lifecycle_test.go:211
FunctionTestWorkspaceEndpoints
(t *testing.T)
internal/server/server_test.go:92
FunctionTestWorkspaceFlags_FailedPendingDropped
A pending answer is NOT kept once the job has failed: a provider outage must not hold a stale flag up for as long as it lasts. failing reports it.
internal/decision/attention_test.go:489
FunctionTestWorkspaceFlags_IgnoresStagedKeys
(t *testing.T)
internal/decision/effort_backfill_test.go:327
FunctionTestWorkspaceFlags_LatestCurrentQuestionAndWorkspaceScoped
WorkspaceFlags returns the LATEST answer per item and key, scoped to the workspace, and drops answers to a question that has since been reworded.
internal/decision/attention_test.go:286
FunctionTestWorkspaceFlags_NilRunner
(t *testing.T)
internal/decision/attention_test.go:357
FunctionTestWorkspaceFlags_PendingAnswerStillSurfaced
An answer computed before the item's latest change is kept while its re-ask is PENDING (TASK-3915): the change owes a job with no recorded failure, an
internal/decision/attention_test.go:371
FunctionTestWorkspaceFlags_ReportsAFailingProvider
(t *testing.T)
internal/decision/attention_test.go:342
FunctionTestWorkspaceFlags_RewordingOneQuestionKeepsTheOthers
Rewording ONE question of a set drops that key's answer and keeps the others'. The production attention set has several questions, so the set here add
internal/decision/attention_test.go:448
FunctionTestWorkspaceFlags_TerminalPendingDropped
A pending answer is NOT kept for an item the set no longer applies to: closing the item owes a job too, but a done item has no next step to wait on, a
internal/decision/attention_test.go:518
FunctionTestWorkspaceGroupsAcceptsUppercaseUUID
A UUID is the same id in any letter case; the stored member is the canonical lower-case spelling.
internal/server/handlers_workspace_groups_test.go:562
FunctionTestWorkspaceGroupsBuiltinsAndOrdering
(t *testing.T)
internal/server/handlers_workspace_groups_test.go:285
FunctionTestWorkspaceGroupsCRUDAndOwnerScope
(t *testing.T)
internal/store/workspace_groups_test.go:12
FunctionTestWorkspaceGroupsCapCountsOnlySentIDs
A kept member the caller cannot see must not count toward the cap: otherwise a group with one hidden member refuses a 100-id edit at 99, and the refus
internal/store/workspace_groups_test.go:214
FunctionTestWorkspaceGroupsCascades
(t *testing.T)
internal/store/workspace_groups_test.go:64
FunctionTestWorkspaceGroupsConcurrentCap
(t *testing.T)
internal/server/handlers_workspace_groups_test.go:381
FunctionTestWorkspaceGroupsConcurrentUserCap
(t *testing.T)
internal/store/workspace_groups_test.go:140
FunctionTestWorkspaceGroupsExport
(t *testing.T)
internal/server/handlers_workspace_groups_test.go:413
FunctionTestWorkspaceGroupsExportReadFailureBeforeBody
(t *testing.T)
internal/server/handlers_workspace_groups_test.go:461
FunctionTestWorkspaceGroupsLimitsAndNames
(t *testing.T)
internal/server/handlers_workspace_groups_test.go:355
FunctionTestWorkspaceGroupsLostAccessPrivacy
(t *testing.T)
internal/server/handlers_workspace_groups_test.go:109
FunctionTestWorkspaceGroupsNamedOrderIsDialectIndependent
Named groups list in one order on both backends: lower-cased by Go, then id.
internal/server/handlers_workspace_groups_test.go:506
FunctionTestWorkspaceGroupsOwnerIsolation
(t *testing.T)
internal/server/handlers_workspace_groups_test.go:161
FunctionTestWorkspaceGroupsPatchKeepsHiddenMembers
A member the caller cannot see right now (access lost, maybe regained later) must survive an edit made while it was hidden.
internal/server/handlers_workspace_groups_test.go:476
FunctionTestWorkspaceGroupsPinnedTokenRefused
A token pinned to one workspace is confined to it: every group route answers 403 token_workspace_pinned from the gate, and a group the token's user ow
internal/server/handlers_workspace_groups_test.go:528
FunctionTestWorkspaceGroupsPrincipals
(t *testing.T)
internal/server/handlers_workspace_groups_test.go:203
FunctionTestWorkspaceGroupsSaveRefusalIsPrivateAndAtomic
(t *testing.T)
internal/server/handlers_workspace_groups_test.go:219
FunctionTestWorkspaceGroupsStrictBodiesAndReplacement
(t *testing.T)
internal/server/handlers_workspace_groups_test.go:316
FunctionTestWorkspaceGroupsTokenAdmission
(t *testing.T)
internal/server/handlers_workspace_groups_test.go:245
FunctionTestWorkspaceGroupsUniqueNames
(t *testing.T)
internal/store/workspace_groups_test.go:103
FunctionTestWorkspaceGroupsUpdateKeepsMembersOutsideVisible
The members to keep are read inside the write transaction, from the set of workspaces the caller can see, so a concurrent edit cannot be undone by a s
internal/store/workspace_groups_test.go:184
FunctionTestWorkspaceHasAgentActivity
(t *testing.T)
internal/store/items_test.go:2735
FunctionTestWorkspaceHasAgentActivityVisibility
TestWorkspaceHasAgentActivityVisibility covers the visibility filter so a guest with restricted access can't infer the existence of agent-sourced item
internal/store/items_test.go:2849
FunctionTestWorkspaceImportReportsCollapsedDuplicateKeys
The import door's surface: the response header counts the blobs the import stored collapsed, and is "0" on a clean import so a client can tell that ap
internal/server/bug2896_collection_traits_duplicate_keys_test.go:112
FunctionTestWorkspaceImportReportsDroppedRelationDefaults
BUG-3658, the import door's surface: the response header counts the relation defaults the import dropped because they named no imported item, and is "
internal/server/bug3658_relation_defaults_header_test.go:14
FunctionTestWorkspaceInitNonTTYNotAuthenticated
TestWorkspaceInitNonTTYNotAuthenticated verifies BUG-2538's second gate: a non-interactive `pad workspace init` against an already-set-up but unauthen
cmd/pad/workspace_init_noninteractive_test.go:93
FunctionTestWorkspaceInitNonTTYSetupRequired
TestWorkspaceInitNonTTYSetupRequired verifies BUG-2538's fast-fail path: a non-interactive `pad workspace init` against a configured-but-not-set-up lo
cmd/pad/workspace_init_noninteractive_test.go:65
FunctionTestWorkspaceInvitation_IsExpired
(t *testing.T)
internal/models/invitation_test.go:8
FunctionTestWorkspaceIsolation
(t *testing.T)
internal/events/bus_test.go:39
FunctionTestWorkspaceMemberCRUD
(t *testing.T)
internal/store/sessions_test.go:183
FunctionTestWorkspaceMemberNotFound
(t *testing.T)
internal/store/sessions_test.go:279
FunctionTestWorkspaceNumberingIsolation
(t *testing.T)
internal/store/items_test.go:2607
FunctionTestWorkspaceOwnerIDs
(t *testing.T)
internal/store/needs_read_test.go:358
FunctionTestWorkspacePurgeSweep_BlobFailureDefersNoOrphan
TestWorkspacePurgeSweep_BlobFailureDefersNoOrphan is the P1 guard: if a blob can't be reclaimed (transient backend error), the workspace is DEFERRED —
internal/server/workspace_purge_test.go:200
FunctionTestWorkspacePurgeSweep_CrossWorkspaceDedupKeepsSharedBlob
TestWorkspacePurgeSweep_CrossWorkspaceDedupKeepsSharedBlob pins the content-addressed safety: purging one workspace must NOT delete a blob that a diff
internal/server/workspace_purge_test.go:151
FunctionTestWorkspacePurgeSweep_Idempotent
TestWorkspacePurgeSweep_Idempotent pins that re-running the sweep after everything eligible is purged is a clean no-op — a single run doesn't wedge th
internal/server/workspace_purge_test.go:259
FunctionTestWorkspacePurgeSweep_LeavesRecentAndLiveUntouched
TestWorkspacePurgeSweep_LeavesRecentAndLiveUntouched pins the no-over-purge guarantee: a workspace soft-deleted inside the window and a live workspace
internal/server/workspace_purge_test.go:118
FunctionTestWorkspacePurgeSweep_PurgesEligibleReclaimsBlob
TestWorkspacePurgeSweep_PurgesEligibleReclaimsBlob is the main case: a workspace soft-deleted past the retention window is hard-deleted and its attach
internal/server/workspace_purge_test.go:66
FunctionTestWorkspacePurge_DefersWhenTheRecountCannotAnswer
(t *testing.T)
internal/server/task4279_blob_reclaim_race_test.go:169
FunctionTestWorkspacePurge_KeepsBlobForAnUploadThatCommitsAfterTheCount
(t *testing.T)
internal/server/task4279_blob_reclaim_race_test.go:78
FunctionTestWorkspaceRestoreRoute_HTTPMappingShape
(t *testing.T)
internal/mcp/catalog_workspace_lifecycle_test.go:231
FunctionTestWorkspaceRestoreRoute_RequiresSlug
(t *testing.T)
internal/mcp/catalog_workspace_lifecycle_test.go:253
FunctionTestWorkspaceSettingsHydrateStructuredContext
(t *testing.T)
internal/store/store_test.go:939
FunctionTestWorkspaceSourcePersisted
TestWorkspaceSourcePersisted covers migration 069 / BUG-1557: the workspaces.source column round-trips through CreateWorkspace and every read that sca
internal/store/workspaces_source_test.go:14
FunctionTestWorkspaceState_ConcurrentAccessRaceFree
(t *testing.T)
internal/mcp/workspace_test.go:37
← previousnext →26,201–26,300 of 28,840, ranked by callers