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
TestAttention_OnlyOpenItemsInUserCollectionsAreAsked
A terminal item and a system-collection item are never sent; the open item beside them is (the leg that shows the fixture CAN ask). Reopening the term
internal/decision/attention_test.go:243
Function
TestAttributionColumnsAreAllProtected
TestAttributionColumnsAreAllProtected keeps the class swept. Unprotected attribution columns were found one at a time. One answer was a sweep — but b
internal/store/nulcolumns_test.go:291
Function
TestAudienceChangeAppliesFromTheNextFire
Changing the audience applies from the next fire: the first fire follows the audience it armed under, the second the audience read at its own fire.
internal/store/schedule_audience_push_test.go:75
Function
TestAudienceForNewClient_ProducesSingletonOrEmpty
(t *testing.T)
internal/oauth/server_test.go:380
Function
TestAudienceMatchingStrategy_TwoCanonicals
TASK-3321 U2a: with two canonical resources, a request may name exactly one; both together, a foreign one, or none are refused, and the client's audie
internal/oauth/server_test.go:974
Function
TestAudienceRouting
(t *testing.T)
internal/store/schedule_audience_push_test.go:27
Function
TestAudienceStrategy_AcceptsCanonicalOnly
(t *testing.T)
internal/oauth/server_test.go:215
Function
TestAudienceStrategy_NoCanonicalIsServerError
(t *testing.T)
internal/oauth/server_test.go:337
Function
TestAudienceStrategy_PathSlashIsNotEquivalent
TestAudienceStrategy_PathSlashIsNotEquivalent guards #386 directly at the strategy layer: even with normalization active, a token requested for a path
internal/oauth/server_test.go:309
Function
TestAudienceStrategy_RejectsClientWithoutCanonical
(t *testing.T)
internal/oauth/server_test.go:201
Function
TestAudienceStrategy_RejectsEmptyNeedle
===================================================================== audienceMatchingStrategy — RFC 8707 hook =======================================
internal/oauth/server_test.go:176
Function
TestAudienceStrategy_RejectsMismatchedNeedle
(t *testing.T)
internal/oauth/server_test.go:189
Function
TestAudienceStrategy_RejectsMultipleAudiences
(t *testing.T)
internal/oauth/server_test.go:325
Function
TestAudienceStrategy_TrailingSlashEquivalence
TestAudienceStrategy_TrailingSlashEquivalence pins the fix for the real-world bug Claude Desktop hit against pad: the connector parses the URL the use
internal/oauth/server_test.go:237
Function
TestAuditLogDetail
BUG-2789: the audit-log Details column applies the activity display rule to a `changes` member and cuts by runes.
cmd/pad/bug2789_audit_log_detail_test.go:11
Function
TestAuthBootstrapFlow
(t *testing.T)
internal/server/handlers_auth_test.go:41
Function
TestAuthBootstrapRequiresLoopback
(t *testing.T)
internal/server/handlers_auth_test.go:327
Function
TestAuthLoginFlow
(t *testing.T)
internal/server/handlers_auth_test.go:341
Function
TestAuthLoginRequiresSetupWhenNoUsers
(t *testing.T)
internal/server/handlers_auth_test.go:378
Function
TestAuthLogout
(t *testing.T)
internal/server/handlers_auth_test.go:509
Function
TestAuthMeEndpoint
(t *testing.T)
internal/server/handlers_auth_test.go:554
Function
TestAuthMeReportsPasswordSetForOAuthUser
TestAuthMeReportsPasswordSetForOAuthUser pins the OAuth-only branch of TASK-1957: a user created via OAuth (no password) must report password_set=fals
internal/server/handlers_auth_test.go:583
Function
TestAuthRegistrationValidation
(t *testing.T)
internal/server/handlers_auth_test.go:470
Function
TestAuthRequiredWhenUsersExist
(t *testing.T)
internal/server/handlers_auth_test.go:527
Function
TestAuthSessionBillingAvailable
billing_available is true only in cloud mode, with PAD_BILLING=auto, while the sidecar's offer says available; billing_offer carries that offer and is
internal/server/handlers_auth_test.go:203
Function
TestAuthSessionBillingBothUnsetSidecarDown
With PAD_BILLING and PAD_BILLING_AVAILABLE both unset the mode is auto, and with the sidecar down that still gives billing_available false: auto fails
internal/server/handlers_auth_test.go:269
Function
TestAuthSessionEmitsVersion
version is surfaced on /auth/session (IDEA-1826 / TASK-1839) so the mobile shells can read the server build version in the call they already make on c
internal/server/handlers_auth_test.go:296
Function
TestAuthSessionMCPURLAndAuth
The session and setup payloads carry the MCP URL and its auth methods exactly when MCP is available (PLAN-2310 DR-8): the resolved URL with ["oauth","
internal/server/handlers_auth_test.go:103
Function
TestAuthorizeCollabAccessCanWrite
TestAuthorizeCollabAccessCanWrite unit-tests the write-permission half of the collab authorization decision (TASK-265): a workspace editor resolves ca
internal/server/handlers_collab_test.go:831
Function
TestAuthorizeCollabAccessFreshInstallTokenScope
TestAuthorizeCollabAccessFreshInstallTokenScope covers the zero-user (pre-bootstrap) branch: the anonymous setup caller keeps write, but a legacy work
internal/server/handlers_collab_test.go:931
Function
TestAuthorizeCollabAccess_AdminBearer_DeniedOnNonMember
TestAuthorizeCollabAccess_AdminBearer_DeniedOnNonMember pins the WebSocket-collab entry gate. Bearer-admin on a non-member workspace's item → forbidde
internal/server/handlers_admin_bearer_gate_test.go:197
Function
TestAutoAddCreatorConnection_GrantUnchangedMidFlight_Added
Control: the same seam, with the grant left as it was. Without this leg a fix that stopped auto-adding altogether would pass the revoking leg.
internal/server/handlers_workspace_autoadd_race_test.go:74
Function
TestAutoAddCreatorConnection_HandlerMakesOnlyTheAtomicCall
TestAutoAddCreatorConnection_HandlerMakesOnlyTheAtomicCall pins every call maybeAutoAddCreatorConnection makes, against a closed list. A sequential SQ
internal/server/handlers_workspace_autoadd_race_test.go:111
Function
TestAutoAddCreatorConnection_RevokedMidFlight_NotAdded
BUG-2792: the creator-connection auto-add must decide on the grant as it stands when the allow-list row is written, not as it stood at some earlier re
internal/server/handlers_workspace_autoadd_race_test.go:33
Function
TestAutoAddHasOneCaller_FinishWorkspaceMint
The structural half: maybeAutoAddCreatorConnection has exactly ONE caller, finishWorkspaceMint, so a future mint door cannot call one side effect and
internal/server/handlers_workspace_import_autoadd_test.go:113
Function
TestAutoCreateWorkspaceReconcileArmsAreDistinguishable
TestAutoCreateWorkspaceReconcileArmsAreDistinguishable is the control for the two tests above: it proves the ABSENT arm still deletes, so a fix that s
internal/server/handlers_cloud_member_ack_test.go:251
Function
TestAutoCreateWorkspace_AbsentArm_LeavesNoRestorableHusk_Postgres
(t *testing.T)
internal/server/handlers_cloud_autocreate_husk_test.go:194
Function
TestAutoCreateWorkspace_AbsentArm_LeavesNoRestorableHusk_SQLite
--- ABSENT arm ----------------------------------------------------------- The pre-fix code passes every assertion here EXCEPT the restorable-husk one
internal/server/handlers_cloud_autocreate_husk_test.go:190
Function
TestAutoCreateWorkspace_BUG3479_FailedRemovalIsLogged
Cloud auto-create, both arms: the log must not end on "being removed" when the workspace survived.
internal/server/bug3479_remove_unusable_truth_test.go:97
Function
TestAutoCreateWorkspace_DeleteWorkspace_NoRowsIsAReportableError
TestAutoCreateWorkspace_DeleteWorkspace_NoRowsIsAReportableError pins the store-layer contract that autoCreateWorkspace's compensating cleanup depends
internal/server/handlers_cloud_autocreate_workspace_test.go:75
Function
TestAutoCreateWorkspace_MemberAddAckLossKeepsTheWorkspace_Postgres
(t *testing.T)
internal/server/handlers_cloud_member_ack_test.go:75
Function
TestAutoCreateWorkspace_MemberAddAckLossKeepsTheWorkspace_SQLite
(t *testing.T)
internal/server/handlers_cloud_member_ack_test.go:71
Function
TestAutoCreateWorkspace_MemberAddFailure_CleansUpAndLogsLoudly
TestAutoCreateWorkspace_MemberAddFailure_CleansUpAndLogsLoudly covers the B6 hardening from TASK-1932: if AddWorkspaceMember fails after the workspace
internal/server/handlers_cloud_autocreate_workspace_test.go:23
Function
TestAutoCreateWorkspace_SeedFailure_LeavesNoRestorableHusk_Postgres
(t *testing.T)
internal/server/handlers_cloud_autocreate_husk_test.go:152
Function
TestAutoCreateWorkspace_SeedFailure_LeavesNoRestorableHusk_SQLite
TestAutoCreateWorkspace_SeedFailure_LeavesNoRestorableHusk is the same property on the function itself, on both dialects: the purge is what makes the
internal/server/handlers_cloud_autocreate_husk_test.go:148
Function
TestAutoCreateWorkspace_UnreadableMembershipKeepsTheWorkspace
TestAutoCreateWorkspace_UnreadableMembershipKeepsTheWorkspace pins the third outcome, and it is the arm most likely to be lost to a later simplificati
internal/server/handlers_cloud_member_ack_test.go:188
Function
TestAutoCreateWorkspace_WrongRoleMembershipKeepsTheWorkspace
TestAutoCreateWorkspace_WrongRoleMembershipKeepsTheWorkspace pins the fourth arm. It exists because the first version of this reconcile asked the wro
internal/server/handlers_cloud_member_ack_test.go:290
Function
TestAwaitsHuman_ReadCarrySetValidate
TASK-3919 (IDEA-3906): awaits_human reads false when absent, is carried across a settings write that does not mention it, and refuses a non-bool.
internal/models/awaits_human_test.go:7
Function
TestAwarenessCountBoundedByEntryBytes
BUG-3772: the entry count is bounded by the bytes that follow it, at three bytes an entry, before anything is allocated from it. The accepting half pi
internal/collab/awareness_test.go:84
Function
TestAwarenessDecodesWhatYProtocolsWrites
(t *testing.T)
internal/collab/awareness_test.go:32
Function
TestAwarenessLyingCountAllocatesNothingForIt
BUG-3772: a frame at the WebSocket read limit (handlers_collab.go, collabMaxMessageBytes) claiming one entry per byte reserved room for a million entr
internal/collab/awareness_test.go:108
Function
TestAwarenessRefusesMalformedFrames
(t *testing.T)
internal/collab/awareness_test.go:58
Function
TestAwarenessRemovalIsWhatYProtocolsSends
The synthesized removal is byte-for-byte the frame y-protocols' own removeAwarenessStates sends, so every client applies it.
internal/collab/awareness_test.go:51
Function
TestAwarenessTrackerCappedConnTakesNoOwnership
A connection at its cap takes nothing, so it cannot take a client away from the connection that must remove it on close.
internal/collab/awareness_test.go:176
Function
TestAwarenessTrackerFirstSenderOwns
(t *testing.T)
internal/collab/awareness_test.go:143
Function
TestAwarenessTrackerIgnoresMalformedAndCapsOwnership
(t *testing.T)
internal/collab/awareness_test.go:205
Function
TestAwarenessTrackerKeepsLatestClockAndLiveness
(t *testing.T)
internal/collab/awareness_test.go:189
Function
TestAwarenessTrackerReconnectOverlapMovesOwnership
A client that reconnects announces at a newer clock (the provider advances it on every connect) on its new connection before the old one has closed: o
internal/collab/awareness_test.go:162
Function
TestB
(t *testing.T)
internal/buildtools/testdata/shardpkg/shard_test.go:8
Function
TestBUG1865_ExplicitWorkspaceStillWins
TestBUG1865_ExplicitWorkspaceStillWins confirms an explicit workspace on the call is honored on the shared transport (the supported way to target a wo
internal/mcp/bug1865_test.go:183
Function
TestBUG1865_LocalStdioSessionStillInjected
TestBUG1865_LocalStdioSessionStillInjected locks in that the fix does NOT regress the single-user local stdio transport, where a (non-shared) session
internal/mcp/bug1865_test.go:210
Function
TestBUG1865_SharedSetWorkspaceDescriptionWarns
TestBUG1865_SharedSetWorkspaceDescriptionWarns guards that the pad_set_workspace tool description is honest per-deployment: a shared (cloud) state mus
internal/mcp/bug1865_test.go:134
Function
TestBUG1865_SharedSetWorkspaceDoesNotPersist
TestBUG1865_SharedSetWorkspaceDoesNotPersist locks in the honest shared-state contract: pad_set_workspace on a shared state must NOT persist the value
internal/mcp/bug1865_test.go:111
Function
TestBUG1865_SharedStateDoesNotLeakAcrossUsers
TestBUG1865_SharedStateDoesNotLeakAcrossUsers guards the cross-user case: Alice's pad_set_workspace must NOT influence Bob's later call.
internal/mcp/bug1865_test.go:66
Function
TestBUG1865_SharedStateNoSameUserSessionBleed
TestBUG1865_SharedStateNoSameUserSessionBleed guards the same-user case: two concurrent sessions of one user must not clobber each other's workspace.
internal/mcp/bug1865_test.go:149
Function
TestBUG1926_CloudBillingRoutesTakeAnAdminSessionNotAnAdminPAT
On Pad Cloud the billing routes take the cloud secret OR a platform admin. The admin alternative is a session's, never a PAT's (BUG-1926 / BUG-3361):
internal/server/bug3361_admin_pat_test.go:179
Function
TestBUG1926_MeSummaryMirrorsTheAdminBypass
BUG-1926: the /me workspace summary answered "all" for any platform admin, while the workspace middleware gives an admin no bypass over a bearer (an A
internal/server/bug1926_me_admin_bearer_test.go:17
Function
TestBUG2136_DeclineByCode
(t *testing.T)
internal/server/bug2136_invite_consent_test.go:172
Function
TestBUG2136_DeclineByID
(t *testing.T)
internal/server/bug2136_invite_consent_test.go:122
Function
TestBUG2136_InviteAsksAVerifiedExistingUser
(t *testing.T)
internal/server/bug2136_invite_consent_test.go:44
Function
TestBUG2136_InvitingAMemberIsRefused
Inviting an existing member is still refused.
internal/server/bug2136_invite_consent_test.go:234
Function
TestBUG2136_ReinviteReplacesThePendingInvitation
(t *testing.T)
internal/server/bug2136_invite_consent_test.go:82
Function
TestBUG2136_SiblingInvitationsAcceptCleanly
Two sibling invitations for one address (a concurrent re-invite can leave both on Postgres without the lock): accepting both is one membership and no
internal/server/bug2136_invite_consent_test.go:200
Function
TestBUG2367_BulkMove
(t *testing.T)
internal/server/bug2367_migrate_doors_test.go:206
Function
TestBUG2367_CloseState_BulkMove
(t *testing.T)
internal/server/bug2367_close_state_test.go:88
Function
TestBUG2367_CloseState_PreflightAndCopy
(t *testing.T)
internal/server/bug2367_close_state_test.go:112
Function
TestBUG2367_CloseState_SingleMove
(t *testing.T)
internal/server/bug2367_close_state_test.go:54
Function
TestBUG2367_PreflightAndCopyAgree
The preflight and the copy must drop the same keys with the same words (DR-6), same workspace and across workspaces.
internal/server/bug2367_migrate_doors_test.go:239
Function
TestBUG2367_SingleMove
(t *testing.T)
internal/server/bug2367_migrate_doors_test.go:109
Function
TestBUG2639_CompletedWorkListsAnItemOnce
A collection whose completed-work values include both "x" and "x,y" lists an item with status x once. When this was written, ListItems split a Fields
internal/server/bug2639_guest_grant_terminal_test.go:138
Function
TestBUG2639_GuestItemGrantsCountOnlyUnderTheirOwnCollection
BUG-2639: listTerminalItemsSince passed a guest's item grants into EVERY per-(field, value) completed-work query. ListItems ORs ItemIDs past the Colle
internal/server/bug2639_guest_grant_terminal_test.go:30
Function
TestBUG2640_CompletedRowsShowTheDoneFieldValue
BUG-2640: standup and changelog rendered a completed item's Status from the literal "status" field, so an item from a collection whose done field is s
internal/server/bug2640_done_field_display_test.go:15
Function
TestBUG2640_CompletedWorkValueFallsBackToStatus
completedWorkValue falls back to "status" when the item's collection is not in the map (an otherwise uncovered branch, BUG-2640).
internal/server/bug2640_done_field_display_test.go:68
Function
TestBUG2683_BulkMoveRecordsAnOrdinaryDroppedField
BUG-2683, the case it was filed for: a bulk move to a collection with no home for an ORDINARY schema field records that field in the move's activity r
internal/server/bug2683_bulk_move_dropped_test.go:17
Function
TestBUG2684_PreflightLabelsADroppedThenDefaultedKeyAsDefault
BUG-2684, the case it was filed for: the SOURCE declares a key, migration DROPS its value (it cannot convert), and the destination's default fills the
internal/server/bug2684_preflight_origin_test.go:16
Function
TestBUG2685_ADeclarationDoesNotDecideWhetherAWriteSucceeds
Leg B — the declaration must not DECIDE the answer. The class rule stated as something a test can refute: two collections, one carrying a legacy decl
internal/server/bug2685_grandfathered_reserved_key_test.go:135
Function
TestBUG2685_BootstrapDoesNotPublishAGrandfatheredDeclarationToEveryAgent
(t *testing.T)
internal/server/bug2685_grandfathered_reserved_key_test.go:286
Function
TestBUG2685_LegacyDeclarationRefusesTheSystemsOwnWrite
Leg A — the system's OWN value is refused. `pad item note` / `pad item decide` read the item's fields, append an entry with models.AppendImplementati
internal/server/bug2685_grandfathered_reserved_key_test.go:84
Function
TestBUG2685_LegacyRequiredDeclarationBlocksCreate
Leg C — a legacy REQUIRED declaration makes the collection uncreatable. Nothing in a create request mentions implementation_notes, and no client surf
internal/server/bug2685_grandfathered_reserved_key_test.go:179
Function
TestBUG2685_PublicSharePayloadDoesNotPublishAGrandfatheredDeclaration
The public payload could be read as a response-shape change, with the raw schema preserved instead. The change IS the fix, and the reason is in the ha
internal/server/bug2685_grandfathered_reserved_key_test.go:231
Function
TestBUG2706_WhoamiSaysWhatTheFailureEstablished
BUG-2706: whoami reported EVERY failed identity check as a rejection ("PAD_TOKEN is set but the server rejected it." / "Session expired.") and exited
cmd/pad/bug2706_whoami_failure_test.go:15
Function
TestBUG2741_DropCoverageAfterCloseRecordsNothing
(t *testing.T)
internal/watchevents/bug2741_closed_receive_test.go:84
Function
TestBUG2741_FanOutFromRedisAfterCloseRecordsNothing
(t *testing.T)
internal/watchevents/bug2741_closed_receive_test.go:30
Function
TestBUG2741_FanOutLocallyAfterCloseRecordsNothing
(t *testing.T)
internal/watchevents/bug2741_closed_receive_test.go:57
Function
TestBUG2741_StampLastSeenAfterCloseRecordsNothing
(t *testing.T)
internal/watchevents/bug2741_closed_receive_test.go:111
Function
TestBUG2772_RemoteLeaseHolderIsPerConnection
(t *testing.T)
internal/mcp/bug2772_remote_agent_identity_test.go:279
Function
TestBUG2772_RemoteMCPWritesAreAgentWrites
(t *testing.T)
internal/mcp/bug2772_remote_agent_identity_test.go:202
Function
TestBUG2772_ResolveRemoteCaller
(t *testing.T)
internal/mcp/bug2772_remote_agent_identity_test.go:365
Function
TestBUG2788_DeletingTheFirstDuplicateDoesNotChangeTheSurvivor
(t *testing.T)
internal/server/bug2788_entry_id_stability_test.go:103
Function
TestBUG2788_InsertAheadDoesNotRenumber
(t *testing.T)
internal/server/bug2788_entry_id_stability_test.go:76
← previous
next →
16,601–16,700 of 28,840, ranked by callers