MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestATransientSubscribeFailureIsRetriedOnceAndServesEveryCaller
TestATransientSubscribeFailureIsRetriedOnceAndServesEveryCaller pins the other half: a SUBSCRIBE that fails once is not a refusal. The establish loop'
internal/events/redis_subscribe_failed_test.go:141
FunctionTestAWedgedRouteIsDetectedEndToEnd
TestAWedgedRouteIsDetectedEndToEnd is the integration test for BUG-2738's central claim, and the only test here that exercises a REAL half-open socket
internal/events/redis_blackhole_test.go:156
FunctionTestAWedgedWatchRouteIsDetectedEndToEnd
TestAWedgedWatchRouteIsDetectedEndToEnd is the integration test for this unit's central claim, and the only test here that exercises a REAL half-open
internal/watchevents/blackhole_test.go:139
FunctionTestAWorkspaceLeftUncoveredByAFailedReplacementIsReestablishedOnTheNextPass
TestAWorkspaceLeftUncoveredByAFailedReplacementIsReestablishedOnTheNextPass covers BUG-2764. Before the fix, an idle cycle whose replacement SUBSCRIBE
internal/events/redis_subscribe_failed_test.go:299
FunctionTestAWorkspacePurgeRemovesItsGates
Hard deletes of items exist only in a workspace purge, which takes the gated item and its gates with it.
internal/store/commitment_gates_noschedule_test.go:161
FunctionTestAWorkspaceThatRecoversBeforeItsTurnIsNotCycled
TestAWorkspaceThatRecoversBeforeItsTurnIsNotCycled is the false-positive regression test, and false positives are the property this design cares about
internal/events/redis_heartbeat_test.go:911
FunctionTestAWrongNamedCertificateIsRefused
TestAWrongNamedCertificateIsRefused is the ServerName assertion, and it is deliberately NOT "the field is set". The hazard this whole dialer has to a
internal/redisdial/redisdial_test.go:99
FunctionTestAWrongTypedEpochKeyIsRecoveredToo
(t *testing.T)
internal/events/redis_idspace_test.go:1340
FunctionTestAZeroTimeoutStillDialsSuccessfully
TestAZeroTimeoutStillDialsSuccessfully was restated after the mutation matrix refused to confirm the failure mode it was named for. The setup is real
internal/redisdial/redisdial_test.go:321
FunctionTestAbandonedOptionsMustBeASubsetOfTerminalOptions
(t *testing.T)
internal/server/handlers_changelog_abandoned_test.go:77
FunctionTestAcceptInvitation_CommitErrorReconciles
BUG-3026 on the accept path: the store returns the raw commit error, so a commit that LANDED can report failure, and the core reads the membership bef
internal/server/my_invitations_test.go:310
FunctionTestAcceptInvitation_ConcurrentCoreAcceptsAreIdempotent
Two accepts of one invitation that have both read it as pending (two tabs, a double submit, the code door racing the by-id door) both answer 200 with
internal/server/my_invitations_test.go:259
FunctionTestAcceptInvitation_DeletedWorkspace_NotFound
(t *testing.T)
internal/server/handlers_invitation_deleted_workspace_test.go:38
FunctionTestAcceptInvitation_ExistingMemberIsIdempotent
BUG-3281: an existing member accepting an invitation is an idempotent success. The invitation is marked accepted, the member keeps their role in eithe
internal/server/my_invitations_test.go:222
FunctionTestAcceptLimit_ExistingMember_AtCap_Idempotent
BUG-3281: an existing member of a workspace at its cap is not refused by the cap, because accepting adds no member. The membership read comes before t
internal/server/handlers_invitation_accept_limit_test.go:138
FunctionTestAcceptLimit_Existing_AtCap_RefusedAndPending
--- A1: authenticated accept ---
internal/server/handlers_invitation_accept_limit_test.go:96
FunctionTestAcceptLimit_Existing_UnderCap_Admitted
(t *testing.T)
internal/server/handlers_invitation_accept_limit_test.go:115
FunctionTestAcceptLimit_Refusal_NamesOwnerByDisplayName
(t *testing.T)
internal/server/handlers_invitation_accept_limit_test.go:289
FunctionTestAcceptLimit_Refusal_OwnerWithoutName
(t *testing.T)
internal/server/handlers_invitation_accept_limit_test.go:310
FunctionTestAcceptLimit_Register_AtCap_RefusedNoAccountPending
--- A2: register with an invitation ---
internal/server/handlers_invitation_accept_limit_test.go:170
FunctionTestAcceptLimit_Register_CompetingAddInWindow_RolledBack
A2's store refusal on its own: a member lands between the pre-check and the membership write. The account the request created must be rolled back and
internal/server/handlers_invitation_accept_limit_test.go:325
FunctionTestAcceptLimit_Register_UnderCap_Admitted
(t *testing.T)
internal/server/handlers_invitation_accept_limit_test.go:192
FunctionTestAcceptLimit_SelfHosted_NotEnforced
--- self-hosted: no cap applies at either door ---
internal/server/handlers_invitation_accept_limit_test.go:213
FunctionTestAcceptWorkspaceInvitation_ConcurrentLoserReadsWinner
The ON CONFLICT branch: a second accept that read NO row, because the first had not committed, must not fail on the key and must report the winner's r
internal/store/workspace_invitation_accept_test.go:88
FunctionTestAcceptWorkspaceInvitation_NewAndExistingMember
(t *testing.T)
internal/store/workspace_invitation_accept_test.go:49
FunctionTestAcceptWorkspaceInvitation_RowGoneAddsNoMembership
Accept must not land after the invitation was declined (or replaced). The handler reads the invitation before the store transaction, so a decline can
internal/store/bug2136_reinvite_concurrency_test.go:60
FunctionTestAccessEpoch_DoorsAgreeForAGrantOnASoftDeletedItem
TestAccessEpoch_DoorsAgreeForAGrantOnASoftDeletedItem is the regression, and it exists because the fixture that was supposed to prove the doors agree
internal/server/handlers_items_access_epoch_test.go:29
FunctionTestAccessEpoch_MovesWhenACollectionIsSoftDeleted_Restricted
(t *testing.T)
internal/server/bug3428_phase2_epoch_guard_test.go:173
FunctionTestAccessEpoch_MovesWhenACollectionIsSoftDeleted_Unrestricted
(t *testing.T)
internal/server/bug3428_phase2_epoch_guard_test.go:168
FunctionTestAccessEpoch_TracksTheEffectiveSetForItemGrantCallers
TestAccessEpoch_TracksTheEffectiveSetForItemGrantCallers is the BUG-3347 repro. A restricted member holding item grants is served by the EFFECTIVE se
internal/server/bug3347_access_epoch_effective_test.go:27
FunctionTestAccountClaimRemovesConversations
(t *testing.T)
internal/store/conversations_test.go:1410
FunctionTestAccountDeleteBudgetBelowProxyTimeouts
(t *testing.T)
internal/server/task4278_account_delete_budget_test.go:28
FunctionTestAckBeforeFireIsAConflict
TestAckBeforeFireIsAConflict. "Nothing happened" is the same response for an armed reminder (too early) and an already-acked one (already done), and t
internal/server/handlers_reminders_test.go:62
FunctionTestAckItemReminderArchived
(t *testing.T)
internal/server/handlers_reminders_ack_ref_test.go:156
FunctionTestAckItemReminderCandidates
(t *testing.T)
internal/server/handlers_reminders_ack_ref_test.go:13
FunctionTestAckItemReminderPermissions
(t *testing.T)
internal/server/handlers_reminders_ack_ref_test.go:116
FunctionTestAckJournalRowWithoutEvidenceStillReads
An ack journal row with no evidence (NULL after_json, as an import stores for text that does not decode) reads as acknowledged with no attribution; it
internal/store/schedule_ack_test.go:492
FunctionTestAckReminderByRefDispatch
(t *testing.T)
internal/mcp/bug4501_ack_reminder_test.go:9
FunctionTestAckReminderRejectsBothParams
(t *testing.T)
internal/mcp/bug4501_ack_reminder_test.go:34
FunctionTestAckRequiresAFiredReminder
TestAckRequiresAFiredReminder. Acking an armed reminder must not silently mark it acknowledged — it would then never appear on the poll surface at all
internal/store/reminders_test.go:294
FunctionTestAckTargetFallsBackToSlug
(t *testing.T)
cmd/pad/schedule_ack_test.go:107
FunctionTestAcknowledgedAgendaOAuthAllowlist
(t *testing.T)
internal/server/schedule_ack_test.go:173
FunctionTestAcknowledgedAgendaRemainsOwed
(t *testing.T)
internal/store/schedule_ack_test.go:174
FunctionTestAcknowledgedAtWithoutJournalRow
The acknowledgement time comes from the reminder row, so a schedule whose ack journal row is missing still reads as acknowledged with its time.
internal/store/schedule_ack_test.go:475
FunctionTestAcknowledgedByProjectsActor
(t *testing.T)
internal/store/schedule_ack_test.go:200
FunctionTestAcknowledgedCalendarFeedKeepsUIDAndDates
(t *testing.T)
internal/server/schedule_ack_test.go:207
FunctionTestAcknowledgedDeadlineStillAccountsAndLapses
(t *testing.T)
internal/store/schedule_ack_test.go:251
FunctionTestAcknowledgedLinkedPastMoveDoesNotResurrectAlert
(t *testing.T)
internal/store/schedule_ack_test.go:269
FunctionTestAcknowledgedProjectNextDoesNotFallBackToRankedItem
(t *testing.T)
internal/server/schedule_ack_test.go:110
FunctionTestAcknowledgedPushHeldPruningRebuildsSummary
(t *testing.T)
internal/server/schedule_ack_test.go:235
FunctionTestAcquireWorkspaceLocksOrdered_CollidingKeysTakeOneLock
TestAcquireWorkspaceLocksOrdered_CollidingKeysTakeOneLock is the dedup half of the DR-9 contract, end to end. hashtext is a 32-bit hash, so two disti
internal/store/items_cross_workspace_copy_pg_test.go:650
FunctionTestActionEnv_Dispatch_UnknownCmdPath
TestActionEnv_Dispatch_UnknownCmdPath catches catalog/cmdhelp drift. If a future commit adds an action whose cmdPath isn't in cmdhelp, this surfaces a
internal/mcp/catalog_test.go:361
FunctionTestActionMetaServerInfo_ReturnsServerNameAndVersion
TestActionMetaServerInfo_ReturnsServerNameAndVersion verifies the minimal {name, version} pair. Empty PadVersion falls back to FallbackVersion — same
internal/mcp/catalog_meta_test.go:34
FunctionTestActionMetaToolSurface_DumpsCatalog
TestActionMetaToolSurface_DumpsCatalog verifies the action returns a summary of every tool currently in Catalog. The shape is the canonical source for
internal/mcp/catalog_meta_test.go:99
FunctionTestActionMetaVersion_MatchesMetaPayload
TestActionMetaVersion_MatchesMetaPayload verifies pad_meta.action: version returns the exact same shape as pad://_meta/version. One source of truth (B
internal/mcp/catalog_meta_test.go:69
FunctionTestActivity
(t *testing.T)
internal/store/store_test.go:1613
FunctionTestActivityChangesCompareNumbersByValue
The activity feed's `changes` metadata (diffFields).
internal/server/bug3202_semantic_compare_test.go:43
FunctionTestActivityCursorIsRefusedWhenMalformed
(t *testing.T)
internal/server/activity_cursor_test.go:81
FunctionTestActivityDebounce_ClassifierFailureCarriesNoID
TestActivityDebounce_ClassifierFailureCarriesNoID covers the last error return, and exists because review pointed out that "no instrument can reach it
internal/store/activity_id_with_error_test.go:187
FunctionTestActivityDebounce_MergeFailureCarriesNoID
TestActivityDebounce_MergeFailureCarriesNoID reaches the line the test above cannot. Closing the database up front makes the CANDIDATE SELECT fail fir
internal/store/activity_id_with_error_test.go:127
FunctionTestActivityEndpoints
(t *testing.T)
internal/server/server_test.go:377
FunctionTestActivityFeedsBreakTimestampTiesByIDDescending
Rows sharing a second must come back in ONE defined order, (created_at, id) descending, on every feed. THE INSERTION ORDER IS THE INSTRUMENT. Without
internal/store/activities_paging_test.go:45
FunctionTestActivityGapSignalCoalesces
TestActivityGapSignalCoalesces is the load bound on THIS bus. The watch bus's twin existed from the start; this one did not, and the bound is the whol
internal/events/gap_signal_test.go:478
FunctionTestActivityReads_OnlyAdminReadsReturnIPAndUserAgent
BUG-3314: the activity reads a workspace reader can reach (viewers and guests included) must never return a member's ip_address or user_agent; only th
internal/store/activities_member_cols_test.go:15
FunctionTestActivityStreamAnnouncesAGapMidStream
TestActivityStreamAnnouncesAGapMidStream is the binding, asserted from the consuming side: a gap raised on an OPEN connection reaches the client as sy
internal/server/handlers_stream_gap_test.go:75
FunctionTestActivityStreamRateLimitsGapAnnouncements
The announcer is tested directly in stream_gap_announcer_test.go, which vouches for the limiter and says nothing about whether either handler USES it
internal/server/handlers_stream_gap_test.go:401
FunctionTestActivityStreamStaysQuietWithoutAGap
TestActivityStreamStaysQuietWithoutAGap is the control. Without it the test above would pass for a handler that sends sync_required unconditionally, w
internal/server/handlers_stream_gap_test.go:126
FunctionTestActivityWriters_ErrorNeverCarriesAnID
BUG-2779. Both activity writers used to return a real id alongside a non-nil error — CreateActivity returned the id of the row it had just FAILED to i
internal/store/activity_id_with_error_test.go:23
FunctionTestActivityWriters_SuccessStillReturnsTheID
TestActivityWriters_SuccessStillReturnsTheID is the control: a contract change that returned "" unconditionally would satisfy every assertion above, a
internal/store/activity_id_with_error_test.go:73
FunctionTestActorKind
ActorKind backs the one place the client must self-describe: structured entries inside an item's fields JSON, which the server never parses. An earlie
internal/cli/agent_identity_test.go:192
FunctionTestActorValidation
(t *testing.T)
internal/store/conversations_test.go:363
FunctionTestActualDoneLowerBound
(t *testing.T)
internal/store/commitment_move_test.go:376
FunctionTestAddCreatedWorkspaceIfPermitted_FlagDecides
Both dialects: flag off → no row; flag on → row with added_by=agent-create; a repeat insert is a no-op rather than an error.
internal/store/oauth_connections_autoadd_test.go:302
FunctionTestAddCreatedWorkspaceIfPermitted_MissingConnectionIsNoop
A missing connection is a silent no-op, not an FK error: the WHERE clause selects nothing, so no row reaches the foreign key.
internal/store/oauth_connections_autoadd_test.go:288
FunctionTestAddCreatedWorkspaceIfPermitted_PG_RevocationWaitsOnInFlightInsert
Ordering 2: this is the race as filed, compressed into one statement. The insert has already taken its snapshot and read the flag as true. A revocatio
internal/store/oauth_connections_autoadd_test.go:145
FunctionTestAddCreatedWorkspaceIfPermitted_PG_WaitsOnUncommittedRevocation
Ordering 1: the revocation holds the connection row first. The insert must wait on that row rather than read around it. Once the revocation commits, t
internal/store/oauth_connections_autoadd_test.go:70
FunctionTestAddCreatedWorkspaceIfPermitted_PG_WaitsOnUnrelatedUpdateThenInserts
Control for ordering 1: the same wait on an uncommitted UPDATE of the same row, but one that leaves the flag alone. The insert must still land. Withou
internal/store/oauth_connections_autoadd_test.go:103
FunctionTestAddCreatedWorkspaceIfPermitted_SQLite_WaitsOnUncommittedRevocation
SQLite's own interleaving. Note (#1389): every other test here is either sequential or Postgres-only. So the SQLite branch of AddCreatedWorkspaceIfPer
internal/store/oauth_connections_autoadd_test.go:238
FunctionTestAddOwnerOrCompensate_BUG3479_FailedRemovalIsReportedAsKept
addOwnerOrCompensate's ABSENT arm: the owner row is genuinely absent, the removal's delete fails, and the error must be the KEPT one, not the "removed
internal/server/bug3479_remove_unusable_truth_test.go:72
FunctionTestAddPadEntryTOML_BinaryChangeMarksModified
(t *testing.T)
internal/mcp/install_test.go:593
FunctionTestAddPadEntryTOML_Idempotent
(t *testing.T)
internal/mcp/install_test.go:577
FunctionTestAddPadEntryTOML_NewConfig
--- Codex (TOML) ---------------------------------------------------------
internal/mcp/install_test.go:511
FunctionTestAddPadEntryTOML_PreservesUnrelatedKeys
(t *testing.T)
internal/mcp/install_test.go:541
FunctionTestAddPadEntryTOML_RejectsCorruptTOML
(t *testing.T)
internal/mcp/install_test.go:620
FunctionTestAddPadEntryTOML_RejectsNonTableServers
(t *testing.T)
internal/mcp/install_test.go:631
FunctionTestAddPadEntryTOML_RequiresBinary
(t *testing.T)
internal/mcp/install_test.go:614
FunctionTestAddPadEntryTOML_TightensPerms
(t *testing.T)
internal/mcp/install_test.go:649
FunctionTestAddPadEntry_BinaryPathChangeMarksModified
(t *testing.T)
internal/mcp/install_test.go:162
FunctionTestAddPadEntry_HandlesEmptyAndWhitespaceFile
(t *testing.T)
internal/mcp/install_test.go:428
FunctionTestAddPadEntry_Idempotent
(t *testing.T)
internal/mcp/install_test.go:146
FunctionTestAddPadEntry_NewConfig
(t *testing.T)
internal/mcp/install_test.go:87
FunctionTestAddPadEntry_PreservesOtherServers
(t *testing.T)
internal/mcp/install_test.go:111
FunctionTestAddPadEntry_RejectsCorruptJSON
(t *testing.T)
internal/mcp/install_test.go:498
FunctionTestAddPadEntry_RequiresBinary
(t *testing.T)
internal/mcp/install_test.go:184
FunctionTestAddPadEntry_TightensExistingFilePerms
(t *testing.T)
internal/mcp/install_test.go:474
FunctionTestAddPadEntry_TightensPermsOnIdempotentNoop
(t *testing.T)
internal/mcp/install_test.go:443
FunctionTestAddReactionWaitsForTombstone_Postgres
Postgres only, deterministic: a reaction that arrives while a tombstoning delete holds the comment must wait for it and then be refused. The delete's
internal/store/comments_tombstone_test.go:306
FunctionTestAdditiveWriteActions_NoStaleEntries
TestAdditiveWriteActions_NoStaleEntries mirrors TestReadOnlyActions_NoStaleEntries for the additive-write allowlist: every entry must name a real cata
internal/mcp/catalog_annotations_test.go:114
FunctionTestAdminBillingStats_AdminWithSidecarReachable_MergesLocalAndRemote
(t *testing.T)
internal/server/handlers_admin_billing_test.go:143
FunctionTestAdminBillingStats_NoSidecarConfigured_DegradesToLocalOnly
(t *testing.T)
internal/server/handlers_admin_billing_test.go:237
← previousnext →16,101–16,200 of 28,840, ranked by callers