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
TestCrossWorkspace_GrantsWidenNeverNarrow
--- Grant / role precedence -------------------------- Grants widen, never narrow. requireEditPermission lets an editor/owner base role win outright a
internal/server/authz_cross_workspace_test.go:670
Function
TestCrossWorkspace_GuestCollectionGrant
A guest with a full COLLECTION grant may create into that collection.
internal/server/authz_cross_workspace_test.go:577
Function
TestCrossWorkspace_GuestItemGrantOnly
--- Guests holding only item grants ----------------------------------
internal/server/authz_cross_workspace_test.go:546
Function
TestCrossWorkspace_InvalidAndMissingInputs
(t *testing.T)
internal/server/authz_cross_workspace_test.go:637
Function
TestCrossWorkspace_LegacyWorkspaceScopedToken
--- Tokenless surfaces ----------------------------------------------- A legacy workspace-scoped API token is an editor in ITS workspace and a strange
internal/server/authz_cross_workspace_test.go:889
Function
TestCrossWorkspace_OwnerWithoutMembershipRowMatchesFrontDoor
--- Never grant more than the front door ---------- Ownership and membership are separate persisted state. RequireWorkspaceAccess has no ws.OwnerID ex
internal/server/authz_cross_workspace_test.go:849
Function
TestCrossWorkspace_RequireEditPermissionIsWrongForSecondWorkspace
TestCrossWorkspace_RequireEditPermissionIsWrongForSecondWorkspace pins the reason this helper exists. requireEditPermission answers "yes" for workspac
internal/server/authz_cross_workspace_test.go:238
Function
TestCrossWorkspace_RestrictedEditorHiddenCollection
--- Restricted members (collection_access = specific) ---------------- DR-10a: a restricted editor in B must not be cleared to create into a collectio
internal/server/authz_cross_workspace_test.go:495
Function
TestCrossWorkspace_RestrictedEditorViewGrantIsNotEdit
A restricted editor who can SEE an item in another workspace only through a VIEW grant may not edit it through the cross-workspace authorizer (TASK-33
internal/server/authz_cross_workspace_test.go:1188
Function
TestCrossWorkspace_RestrictedMemberSystemCollection
--- System collections ------------------------------------------------ A system collection (conventions, playbooks) is an ordinary collection for a r
internal/server/authz_cross_workspace_test.go:717
Function
TestCrossWorkspace_ScopeMismatch
--- Scope hygiene -----------------------------------------------------
internal/server/authz_cross_workspace_test.go:594
Function
TestCrossWorkspace_SoftDeletedWorkspaceDenied
--- Soft-deleted target ----------------------------------------------
internal/server/authz_cross_workspace_test.go:459
Function
TestCrossWorkspace_TokenAllowlist
--- Token consent allow-list ----------------------------------------- TestCrossWorkspace_TokenAllowlist is the regression test that matters most: a n
internal/server/authz_cross_workspace_test.go:303
Function
TestCrossWorkspace_TokenAllowlistAppliesToUUIDAddressing
The allow-list is tested against the CANONICAL slug, so addressing the workspace by UUID must not bypass it.
internal/server/authz_cross_workspace_test.go:373
Function
TestCrossWorkspace_TokenDenialNeverConfirmsExistenceToStranger
A stranger to B must never receive the distinct "token not authorized" message, since that message confirms the workspace exists. The role check is ra
internal/server/authz_cross_workspace_test.go:390
Function
TestCrossWorkspace_VerdictDoesNotSerialize
A denied verdict holds the resolved workspace, the caller's role and a reason that separates absence from forbidden-ness. Serializing it into a respon
internal/server/authz_cross_workspace_test.go:1045
Function
TestCrossWorkspace_ViewerInB
(t *testing.T)
internal/server/authz_cross_workspace_test.go:279
Function
TestCrossWorkspace_WriteCollectionNotFoundRefusesForeignVerdicts
TestCrossWorkspace_WriteCollectionNotFoundRefusesForeignVerdicts pins the enforced half of WriteCollectionNotFound's precondition (PLAN-2357 / TASK-23
internal/server/authz_cross_workspace_test.go:1119
Function
TestCrossWorkspace_WriteDeniedDoesNotDistinguishAbsence
WriteDenied acknowledges, but still refuses to distinguish absent from forbidden.
internal/server/authz_cross_workspace_test.go:992
Function
TestCrossWorkspace_WriteHiddenIsIndistinguishable
--- Disclosure posture ------------------------------------------------- "Absent" and "forbidden" must be byte-identical on the read posture.
internal/server/authz_cross_workspace_test.go:945
Function
TestCtxSleepReturnsEarlyOnCancellation
The production path: the real sleep must return early. The fake above can only show that Ask HONOURS an aborting sleep; this shows that the sleep actu
internal/decision/review_test.go:90
Function
TestCurrentQuestionHashes_MatchWhatTheRunnerStamps
TASK-3959: the hashes the reader reports are the ones the runner stamps on a stored answer, read back from the store rather than recomputed.
internal/decision/effort_read_test.go:79
Function
TestCurrentQuestionHashes_NilRunner
(t *testing.T)
internal/decision/effort_read_test.go:69
Function
TestCursor
(t *testing.T)
internal/needs/resolve_test.go:123
Function
TestD
(t *testing.T)
internal/buildtools/testdata/shardpkg/shard_test.go:10
Function
TestDBHandleNotCaptured
TASK-4278: BoundRuntimePool replaces the store's *sql.DB once, at boot. A struct that cached the handle from Store.DB() BEFORE the swap would keep que
internal/store/runtime_pool_guard_test.go:19
Function
TestDBReleaseCloudCmd
release-cloud against the database the server would open (PAD_DB_PATH): refused while billing state remains, then forced; the next non-cloud boot conv
cmd/pad/task3551_boot_plan_backfill_test.go:78
Function
TestDBRestoreAtomicReplacementLeavesOtherHardLinkUnchanged
(t *testing.T)
cmd/pad/cmd_db_restore_test.go:402
Function
TestDBRestoreCopiesDistinctFile
(t *testing.T)
cmd/pad/cmd_db_restore_test.go:62
Function
TestDBRestoreCorruptLiveDatabase
(t *testing.T)
cmd/pad/cmd_db_restore_test.go:341
Function
TestDBRestoreHeldWriteLockPreservesCommittedWAL
(t *testing.T)
cmd/pad/cmd_db_restore_test.go:440
Function
TestDBRestoreInputFailurePreservesCommittedWAL
(t *testing.T)
cmd/pad/cmd_db_restore_test.go:179
Function
TestDBRestoreNonWritableTargetPreservesCommittedWAL
(t *testing.T)
cmd/pad/cmd_db_restore_test.go:284
Function
TestDBRestorePreservesDanglingDestinationSymlink
(t *testing.T)
cmd/pad/cmd_db_restore_test.go:550
Function
TestDBRestorePreservesDestinationSymlinkAndMode
(t *testing.T)
cmd/pad/cmd_db_restore_test.go:371
Function
TestDBRestorePreservesLegacyWALRowIDsAndExternalFTS
(t *testing.T)
cmd/pad/cmd_db_restore_test.go:487
Function
TestDBRestorePreservesServiceOwnership
(t *testing.T)
cmd/pad/db_restore_ownership_unix_test.go:12
Function
TestDBRestorePublicationFailurePreservesDatabase
(t *testing.T)
cmd/pad/cmd_db_restore_test.go:585
Function
TestDBRestoreRejectsSameFile
(t *testing.T)
cmd/pad/cmd_db_restore_test.go:16
Function
TestDBRestoreReservedCharactersInTargetDirectory
(t *testing.T)
cmd/pad/cmd_db_restore_test.go:420
Function
TestDBRestoreStandaloneAndLegacyWAL
(t *testing.T)
cmd/pad/cmd_db_restore_test.go:258
Function
TestDBRestoreTargetPreparationFailurePreservesCommittedWAL
(t *testing.T)
cmd/pad/cmd_db_restore_test.go:311
Function
TestDBRuntimeLimits
(t *testing.T)
internal/config/db_runtime_limits_test.go:9
Function
TestDR15_BundleExportOrphansAttachmentOfSoftDeletedParent
DR-15 (a bundle round-trip can orphan an attachment): the workspace bundle pairs two store queries that disagree about a soft-deleted parent — Workspa
internal/store/attachments_dr15_test.go:264
Function
TestDR15_DeletingCloneLeavesSourceLive
DR-15 (clone independence): deleting the CLONE leaves the source row live. The clone is a separate row, so its soft-delete must not touch the source —
internal/store/attachments_dr15_test.go:67
Function
TestDR15_DeletingSourceLeavesCloneLive
DR-15 (clone independence, the other direction): deleting the SOURCE leaves the clone live. Symmetric to the above — the two rows share bytes but neit
internal/store/attachments_dr15_test.go:96
Function
TestDR15_MoveLeavesSourceAttachmentsLiveAndChargesBoth
DR-15 (a move charges both workspaces): moving an item (ArchiveSource) archives only the source ITEM and clones its attachments into the destination —
internal/store/attachments_dr15_test.go:126
Function
TestDR9_BurstPassesAndBurstPlusOneIsRefused
(t *testing.T)
internal/server/mcp_security_floor_test.go:48
Function
TestDR9_ClaimLimitFollowsTheCaller
The claim limit is per authenticated caller: its burst of 10 is shared across two client addresses, not doubled by rotating them.
internal/server/mcp_security_floor_test.go:81
Function
TestDR9_CloudKeysOnTheForwardedAddress
On cloud the limits key on the forwarded client address, resolved through PAD_TRUSTED_PROXIES (pad-cloud sets 172.28.0.0/16). If that resolution faile
internal/server/mcp_security_floor_test.go:204
Function
TestDR9_DCRAndSignupBucketsAreIndependent
DCR and account signup no longer share a bucket: exhausting either leaves the other untouched.
internal/server/mcp_security_floor_test.go:104
Function
TestDR9_PreAuthDenialsAreCountedNotAudited
Every pre-auth /mcp refusal is counted by reason, and none writes an audit row (the DR-9 amendment: unauthenticated traffic causes no DB writes). The
internal/server/mcp_security_floor_test.go:169
Function
TestDR9_PreAuthLimitWarnsOncePerAddress
An address that exhausts the pre-auth bucket is named in one WARN, not one per refusal.
internal/server/mcp_security_floor_test.go:241
Function
TestDR9_PreAuthReasonIsAClosedSet
The reason label is a closed set: a code outside it is counted as invalid_token and never mints its own series.
internal/server/mcp_security_floor_test.go:228
Function
TestDR9_TokenBucketFitsA100ClientSchedule
A 100-client schedule against /oauth/token's configured bucket, on a simulated clock: 100 code exchanges in one second, then 100 refreshes spread over
internal/server/mcp_security_floor_test.go:138
Function
TestDR9_WarnsWhenResolutionStaysInsideTheTrustedRange
A proxied request that resolves to an address inside the trusted range (the proxy forwarded no client address) is warned about once, loudly; a proxy t
internal/server/mcp_security_floor_test.go:262
Function
TestDR9_ZeroUserMCPIsUnauthorized
No zero-user bypass: on a fresh install with no users, /mcp stays fail-closed, although the regular API falls open at zero users.
internal/server/mcp_security_floor_test.go:291
Function
TestDSTAllDayWeeklyNoDrift
(t *testing.T)
internal/schedule/dst_test.go:34
Function
TestDSTGapLondon
(t *testing.T)
internal/schedule/dst_test.go:14
Function
TestDSTGapNewYork
(t *testing.T)
internal/schedule/dst_test.go:10
Function
TestDSTOverlapLondon
(t *testing.T)
internal/schedule/dst_test.go:15
Function
TestDSTOverlapNewYork
(t *testing.T)
internal/schedule/dst_test.go:11
Function
TestDSTPopulationTable
TestDSTPopulationTable runs every DST row of the doc.go table: weekly, monthly, yearly, hourly, minutely, BYHOUR collisions, RDATE, EXDATE, UNTIL.
internal/schedule/dst_test.go:21
Function
TestDashboard
(t *testing.T)
internal/server/handlers_items_test.go:907
Function
TestDashboardActiveItems
(t *testing.T)
internal/server/handlers_dashboard_test.go:343
Function
TestDashboardActiveItemsCappedAt10
(t *testing.T)
internal/server/handlers_dashboard_test.go:1194
Function
TestDashboardActiveItemsExcludesPlans
(t *testing.T)
internal/server/handlers_dashboard_test.go:452
Function
TestDashboardActiveItemsItemRef
(t *testing.T)
internal/server/handlers_dashboard_test.go:1094
Function
TestDashboardActiveItemsSorting
(t *testing.T)
internal/server/handlers_dashboard_test.go:407
Function
TestDashboardActivePlans
(t *testing.T)
internal/server/handlers_dashboard_test.go:480
Function
TestDashboardAttentionBlocked
(t *testing.T)
internal/server/handlers_dashboard_test.go:601
Function
TestDashboardAttentionBlockedNotFlaggedWhenBlockerDone
(t *testing.T)
internal/server/handlers_dashboard_test.go:636
Function
TestDashboardAttentionBlockedNotFlaggedWhenTargetDone
(t *testing.T)
internal/server/handlers_dashboard_test.go:663
Function
TestDashboardAttentionOverdue
(t *testing.T)
internal/server/handlers_dashboard_test.go:537
Function
TestDashboardAttentionOverdueEndDate
(t *testing.T)
internal/server/handlers_dashboard_test.go:578
Function
TestDashboardAttention_FailingProviderMarksDegraded
(t *testing.T)
internal/server/dashboard_attention_decisions_test.go:195
Function
TestDashboardAttention_ItemMadeTerminalBySchemaEditIsNotSurfaced
A collection edit can make an item terminal without touching the item: the item's state (and so its stored answer's currency) is unchanged, and no job
internal/server/dashboard_attention_decisions_test.go:238
Function
TestDashboardAttention_NeedsHumanAtThreshold
(t *testing.T)
internal/server/dashboard_attention_decisions_test.go:103
Function
TestDashboardAttention_NoProviderAddsNothing
No provider: no decision-derived entries and nothing degraded — the dashboard is what it was before this unit.
internal/server/dashboard_attention_decisions_test.go:212
Function
TestDashboardAttention_TerminalItemIsNotSurfaced
A stored answer does not outlive the item being open: the same item is surfaced while open (the counterfactual leg) and not once done.
internal/server/dashboard_attention_decisions_test.go:175
Function
TestDashboardDegradedOnSubQueryFailure
TestDashboardDegradedOnSubQueryFailure covers BUG-2014: a failing best-effort sub-query must not render indistinguishably from a genuinely-empty secti
internal/server/handlers_dashboard_test.go:1388
Function
TestDashboardEmpty
(t *testing.T)
internal/server/handlers_dashboard_test.go:144
Function
TestDashboardEmptyWorkspace
(t *testing.T)
internal/server/handlers_items_test.go:973
Function
TestDashboardHasAgentActivityFromAgentCollection
BUG-3447: during a real onboarding the agent creates COLLECTIONS minutes before its first item, so the launchpad's "Agent connected" step must tick on
internal/server/bug3447_collection_agent_activity_test.go:15
Function
TestDashboardHasAgentActivityFromWorkspaceSource
TestDashboardHasAgentActivityFromWorkspaceSource covers BUG-1557: a workspace created through an agent surface (CLI / MCP — both persist source="cli")
internal/server/handlers_dashboard_test.go:57
Function
TestDashboardIsDoneStatus
(t *testing.T)
internal/server/handlers_dashboard_test.go:962
Function
TestDashboardMultipleActivePlans
(t *testing.T)
internal/server/handlers_dashboard_test.go:1129
Function
TestDashboardNonexistentWorkspace
(t *testing.T)
internal/server/handlers_dashboard_test.go:1119
Function
TestDashboardOnboardingSeed_EmptyWorkspace
TestDashboardOnboardingSeed_EmptyWorkspace verifies that a workspace without a template (no SeedItems) reports no onboarding seed.
internal/server/handlers_dashboard_test.go:254
Function
TestDashboardOnboardingSeed_HiringTemplate
TestDashboardOnboardingSeed_HiringTemplate verifies the dashboard does NOT mark hiring's example items as the onboarding seed — hiring's REQ-1 is a pl
internal/server/handlers_dashboard_test.go:233
Function
TestDashboardOnboardingSeed_NilForAllTemplates
TestDashboardOnboardingSeed_NilForAllTemplates locks the PLAN-1496 / TASK-1501 retirement of the IDEA-1 / BACK-1 / FEAT-1 first-person seed pattern. B
internal/server/handlers_dashboard_test.go:205
Function
TestDashboardOrphanedTasks
(t *testing.T)
internal/server/handlers_dashboard_test.go:1214
Function
TestDashboardOrphanedTasksNotFlaggedWithoutPlanLinks
(t *testing.T)
internal/server/handlers_dashboard_test.go:1252
Function
TestDashboardPlanCompletion
(t *testing.T)
internal/server/handlers_dashboard_test.go:1003
Function
TestDashboardPlanCompletionNotTriggeredWithOpenTasks
(t *testing.T)
internal/server/handlers_dashboard_test.go:1039
Function
TestDashboardRecentActivity
(t *testing.T)
internal/server/handlers_dashboard_test.go:1067
Function
TestDashboardSuggestedNext
(t *testing.T)
internal/server/handlers_dashboard_test.go:690
Function
TestDashboardSuggestedNextFromPlannedPlan
TestDashboardSuggestedNextFromPlannedPlan: tasks under a NOT-active plan rank as orphans (since their plan parent doesn't trigger the active-plan loop
internal/server/handlers_dashboard_test.go:864
Function
TestDashboardSuggestedNextNoPlans
TestDashboardSuggestedNextNoPlans pins BUG-1082's orphan branch: pre-fix this test asserted that a workspace with no active plans returns empty sugges
internal/server/handlers_dashboard_test.go:835
Function
TestDashboardSuggestedNextOrphan_InProgressBeatsPriority
TestDashboardSuggestedNextOrphan_InProgressBeatsPriority pins BUG-1082's ranking for the orphan branch: in-progress items surface regardless of priori
internal/server/handlers_dashboard_test.go:898
← previous
next →
19,001–19,100 of 28,840, ranked by callers