MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestVerifiedEmail_CLISessionApprove_BlocksUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:259
FunctionTestVerifiedEmail_CollabUpgrade_AllowsVerified
(t *testing.T)
internal/server/middleware_verified_email_test.go:425
FunctionTestVerifiedEmail_CollabUpgrade_BlocksUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:393
FunctionTestVerifiedEmail_CoreWrite_PAT_BlocksUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:184
FunctionTestVerifiedEmail_CoreWrite_Session_BlocksUnverified
--------------------------------------------------------------------- Perimeter 1: /api/v1 core writes — session AND PAT. ----------------------------
internal/server/middleware_verified_email_test.go:177
FunctionTestVerifiedEmail_DeleteAccount_AllowedForUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:313
FunctionTestVerifiedEmail_ImportURL_BlocksUnverified
--------------------------------------------------------------------- Perimeter 3: POST /api/v1/import/url (SSRF/abuse surface). ---------------------
internal/server/middleware_verified_email_test.go:279
FunctionTestVerifiedEmail_InvitationAccept_CarveOut
--------------------------------------------------------------------- Carve-out: POST /api/v1/invitations/{code}/accept works unverified. ------------
internal/server/middleware_verified_email_test.go:326
FunctionTestVerifiedEmail_InvitationDecline_CarveOut
BUG-2136: declining by code is the other answer to the same invitation, so it passes the gate exactly as accepting does.
internal/server/middleware_verified_email_test.go:523
FunctionTestVerifiedEmail_Logout_AllowedForUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:303
FunctionTestVerifiedEmail_OAuthAuthorizeDecide_BlocksUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:471
FunctionTestVerifiedEmail_OAuthAuthorize_BlocksUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:501
FunctionTestVerifiedEmail_PatchMe_BlocksUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:252
FunctionTestVerifiedEmail_Reads_AllowedForUnverified
--------------------------------------------------------------------- Reads + the account-lifecycle carve-outs stay open for unverified. -------------
internal/server/middleware_verified_email_test.go:290
FunctionTestVerifiedEmail_SelfHost_NoOp
--------------------------------------------------------------------- Cross-cutting invariant: self-host (!cloudMode) is entirely unaffected. --------
internal/server/middleware_verified_email_test.go:223
FunctionTestVerifiedEmail_TokenCreate_BlocksUnverified
--------------------------------------------------------------------- Perimeter 2: authenticated /auth/* token-minting + profile mutations. ----------
internal/server/middleware_verified_email_test.go:245
FunctionTestVerifiedEmail_VerifiedUser_PassesAllPerimeters
--------------------------------------------------------------------- Cross-cutting invariant: a VERIFIED cloud user passes every perimeter. ---------
internal/server/middleware_verified_email_test.go:195
FunctionTestVerifyArmStateHeldAcceptsHeldStates
(t *testing.T)
internal/cli/session_arm_unverifiable_bug2771_test.go:240
FunctionTestVerifyArmStateHeldRefusesAReapedWrite
The verbs refuse a write that did not survive its own read-back: a dead owner, which is what a headless write naming no session process produces.
internal/cli/session_arm_unverifiable_bug2771_test.go:229
FunctionTestVerifyArmStateHeldRefusesASelfOwnedHeadlessWrite
The in-process case the read-back cannot observe: a headless write naming no session process is owned by the writing command, which is alive during th
internal/cli/session_arm_unverifiable_bug2771_test.go:259
FunctionTestVerifyClaimCode_AgedOutRejected
(t *testing.T)
internal/server/claim_codes_test.go:115
FunctionTestVerifyClaimCode_CurrentBucketAccepted
(t *testing.T)
internal/server/claim_codes_test.go:89
FunctionTestVerifyClaimCode_PreviousBucketAccepted
(t *testing.T)
internal/server/claim_codes_test.go:99
FunctionTestVerifyClaimCode_ShortSecretFailsClosed
(t *testing.T)
internal/server/claim_codes_test.go:161
FunctionTestVerifyClaimCode_WrongInputsRejected
(t *testing.T)
internal/server/claim_codes_test.go:127
FunctionTestVerifyConventionLandedCatchesAServerThatIgnoredTheMember
BUG-3163 skew: a server older than this CLI ignores the typed `convention` member and creates the item without it, answering 201. The witness is the s
cmd/pad/bug3163_library_activate_skew_test.go:18
FunctionTestVerifyPRLinkedCatchesAServerThatIgnoredTheWrite
BUG-2696 skew: a server older than this CLI ignores the typed github_pr member and answers 200 having written nothing. The CLI must not report that as
cmd/pad/bug2696_github_link_skew_test.go:13
FunctionTestVerifyPRUnlinkedCatchesAServerThatIgnoredTheClear
(t *testing.T)
cmd/pad/bug2696_github_link_skew_test.go:30
FunctionTestVersionCreation
(t *testing.T)
internal/store/store_test.go:1104
FunctionTestVersionCreationActorChange
(t *testing.T)
internal/store/store_test.go:1140
FunctionTestVersionNotCreatedWithoutContentChange
(t *testing.T)
internal/store/store_test.go:1161
FunctionTestViewPatchOfACalendarWhoseCollectionIsGone
--- views and parameters ---
internal/server/handlers_calendar_test.go:859
FunctionTestViewTypeValidation
(t *testing.T)
internal/server/handlers_calendar_test.go:488
FunctionTestVisibleCollectionIDsFaultIsNilInProduction
(t *testing.T)
internal/server/bug3334_fail_closed_test.go:376
FunctionTestVisibleCollectionIDs_AllAccess
(t *testing.T)
internal/store/permissions_test.go:55
FunctionTestVisibleCollectionIDs_NonMember
(t *testing.T)
internal/store/permissions_test.go:162
FunctionTestVisibleCollectionIDs_SpecificAccess
(t *testing.T)
internal/store/permissions_test.go:69
FunctionTestVisibleCollectionIDs_SystemCollectionsOnlyWhenListed
System collections are ordinary collections for a restricted member: seen only when listed (TASK-3376). The listed leg is the control, so the unlisted
internal/store/permissions_test.go:116
FunctionTestVisibleWorkspaceTabs_FiltersToTheVisibleSet
The read-side invariant: a stored row whose workspace is not in the visible set is never served, whatever left it there.
internal/store/workspace_tabs_test.go:494
FunctionTestWallStringRoundTrip
(t *testing.T)
internal/schedule/wall_test.go:43
FunctionTestWarnContentPendingFlush
TestWarnContentPendingFlush pins the gating (fires for the outcome the server sends, silent for everything else) and the wording contract. What it do
cmd/pad/cmd_item_content_pending_test.go:19
FunctionTestWarnOncePerKey_FirstPerKeyRateLimited
warnOncePerKey allows the first line per key, never a repeat, and no more than the overall burst for distinct keys, so a client spraying Host values (
internal/server/middleware_mcp_host_test.go:16
FunctionTestWarnPlaybookBodyStaleGating
TestWarnPlaybookBodyStaleGating pins the helper's own contract: it fires for the one value the vocabulary defines and is silent for everything else.
cmd/pad/cmd_playbook_stale_body_test.go:149
FunctionTestWarnStaleEditSeedGating
TestWarnStaleEditSeedGating pins the seventh door BUG-3033's sweep found, and the one whose consequence is not merely a confusing read. `pad item edi
cmd/pad/cmd_playbook_stale_body_test.go:191
FunctionTestWatchEventPayload_ExistingKindsAreByteIdentical
TestWatchEventPayload_ExistingKindsAreByteIdentical pins every other kind's payload to its exact pre-TASK-3272 bytes, even when the notification carri
internal/server/workspace_access_notify_test.go:555
FunctionTestWatchEventsObserverIgnoresNonPositiveGapSpans
TestWatchEventsObserverIgnoresNonPositiveGapSpans pins the documented asymmetry: the gap EVENT always counts, the span only when positive. The bus onl
internal/metrics/watchevents_observer_test.go:71
FunctionTestWatchEventsObserverMapsEachEventToItsOwnCounter
TestWatchEventsObserverMapsEachEventToItsOwnCounter is the ADAPTER test that was missing. Both sides of this seam are tested: internal/watchevents pr
internal/metrics/watchevents_observer_test.go:22
FunctionTestWatchEventsPublishSitesAreRuled
(t *testing.T)
internal/server/publish_sites_ruled_test.go:62
FunctionTestWatchEventsResetReasonsReachTheMetricWithTheirWireSpelling
TestWatchEventsResetReasonsReachTheMetricWithTheirWireSPELLING covers the two reasons BUG-2739 added, and does it with LITERAL strings rather than the
internal/metrics/watchevents_observer_test.go:141
FunctionTestWatchEventsStream_ArmedStreamReceivesPush
TestWatchEventsStream_ArmedStreamReceivesPush is the positive counterpart: declaring `armed=true` at connect is what makes push delivery work at all —
internal/server/handlers_watch_events_test.go:655
FunctionTestWatchEventsStream_AssignmentIsNotAddressedToYou
TestWatchEventsStream_AssignmentIsNotAddressedToYou is the inverted successor of TASK-2533's TestWatchEventsStream_AddressedToYou_Assignment, which as
internal/server/handlers_watch_events_test.go:304
FunctionTestWatchEventsStream_AssignmentOutsideMemberCollectionAccessDenied
TestWatchEventsStream_AssignmentOutsideMemberCollectionAccessDenied is the HTTP/SSE-level regression for TASK-2533: an item can be assigned to a "spec
internal/server/handlers_watch_events_test.go:1081
FunctionTestWatchEventsStream_BulkAssignFires
TestWatchEventsStream_BulkAssignFires exercises the producer-coverage claim in publishWatchNotifications' doc comment (TASK-2533 audit): a bulk "assig
internal/server/handlers_watch_events_test.go:503
FunctionTestWatchEventsStream_CommentNotification
(t *testing.T)
internal/server/handlers_watch_events_test.go:402
FunctionTestWatchEventsStream_ConnectedEvent
(t *testing.T)
internal/server/handlers_watch_events_test.go:169
FunctionTestWatchEventsStream_DeliversWatchedStatusChange
(t *testing.T)
internal/server/handlers_watch_events_test.go:193
FunctionTestWatchEventsStream_ItemGrantGuestDoesNotSeeSiblingItem
TestWatchEventsStream_ItemGrantGuestDoesNotSeeSiblingItem is the HTTP/SSE-level regression for TASK-2533: a guest granted only item A must not receive
internal/server/handlers_watch_events_test.go:1203
FunctionTestWatchEventsStream_OAuthShapedTokenCannotAuthenticate
TestWatchEventsStream_OAuthShapedTokenCannotAuthenticate is the probe receipt for BUG-2752, which claimed that an OAuth token whose consent was narrow
internal/server/handlers_watch_events_oauth_scope_test.go:50
FunctionTestWatchEventsStream_PredicateOnlyFiresOnMatch
(t *testing.T)
internal/server/handlers_watch_events_test.go:359
FunctionTestWatchEventsStream_ReplaySuppressesPushToUnarmedStream
TestWatchEventsStream_ReplaySuppressesPushToUnarmedStream covers the a requirement: the armed gate must cover the Last-Event-ID REPLAY path (Subscribe
internal/server/handlers_watch_events_test.go:697
FunctionTestWatchEventsStream_ReplyNotification
TestWatchEventsStream_ReplyNotification covers a missed hook: handleCreateReply is a SEPARATE code path from handleCreateComment (it calls store.Creat
internal/server/handlers_watch_events_test.go:444
FunctionTestWatchEventsStream_RequiresAuth
(t *testing.T)
internal/server/handlers_watch_events_test.go:152
FunctionTestWatchEventsStream_RevalStillDeniesWhenWatchListReloadErrors
TestWatchEventsStream_RevalStillDeniesWhenWatchListReloadErrors covers TASK-2533: on a reval tick, if ListWatchesForUser errored, the handler's `conti
internal/server/handlers_watch_vis_cache_test.go:239
FunctionTestWatchEventsStream_StopsDeliveringAfterUserDisabled
TestWatchEventsStream_StopsDeliveringAfterUserDisabled is the HTTP/SSE-level regression: a live stream for a user who gets disabled mid-connection mus
internal/server/handlers_watch_vis_cache_test.go:118
FunctionTestWatchEventsStream_SuppressesUnwatchedItem
(t *testing.T)
internal/server/handlers_watch_events_test.go:239
FunctionTestWatchEventsStream_UnarmedStreamNeverReceivesPush
TestWatchEventsStream_UnarmedStreamNeverReceivesPush is PLAN-2613 S1's core HTTP-level negative case: a stream that connects without the `armed=true`
internal/server/handlers_watch_events_test.go:609
FunctionTestWatchEventsStream_UpdateWithAttachedComment
TestWatchEventsStream_UpdateWithAttachedComment covers the bypass named in publishWatchNotifications' audit: `PATCH .../items/{slug}` with a `comment`
internal/server/handlers_watch_events_test.go:551
FunctionTestWatchEventsStream_WatchSetClearedAfterPersistentReloadFailures
TestWatchEventsStream_WatchSetClearedAfterPersistentReloadFailures covers TASK-2533: `watches = fresh` only ran on the reload's success path, so under
internal/server/handlers_watch_vis_cache_test.go:459
FunctionTestWatchEvents_BUG3637_StalledReaderReleasesItsSlot
(t *testing.T)
internal/server/bug3637_sse_stalled_reader_test.go:237
FunctionTestWatchEvents_BUG3637_WriterWithoutDeadlineIsRefused
(t *testing.T)
internal/server/bug3637_sse_stalled_reader_test.go:298
FunctionTestWatchHeartbeatDefaultsOff
The default MUST be off, for the reason above.
internal/config/redis_stream_config_test.go:394
FunctionTestWatchHeartbeatEnvBeatsTheConfigFile
TestWatchHeartbeatEnvBeatsTheConfigFile pins the precedence its events twin has. The direction that matters is env=false over file=true: that is the r
internal/config/redis_stream_config_test.go:452
FunctionTestWatchHeartbeatEnvMapping
TestWatchHeartbeatEnvMapping is the wiring for BUG-2769's phase-2 flip. The watch bus's heartbeat behaviour has its own tests and every one passes wit
internal/config/redis_stream_config_test.go:354
FunctionTestWatchHeartbeatIgnoresANonBooleanValue
TestWatchHeartbeatIgnoresANonBooleanValue. Same inverted rationale as its events twin: OFF is the SAFE direction here, because an instance that publis
internal/config/redis_stream_config_test.go:379
FunctionTestWatchHeartbeatRoundTripsThroughTheConfigFile
The TOML tag, for the same reason its neighbours have one: a wrong or missing `toml:"watch_heartbeat"` keeps every other test green while an operator
internal/config/redis_stream_config_test.go:407
FunctionTestWatchNotificationVisible_AssignmentStillGatedByAccess
TestWatchNotificationVisible_AssignmentStillGatedByAccess covers TASK-2533: the addressed-to-you branch used to return true unconditionally, with NO a
internal/server/handlers_watch_events_test.go:1042
FunctionTestWatchNotificationVisible_AssignmentToSomeoneElseDenied
(t *testing.T)
internal/server/handlers_watch_events_test.go:820
FunctionTestWatchNotificationVisible_AssignmentToSomeoneElseVisibleToWatcher
TestWatchNotificationVisible_AssignmentToSomeoneElseVisibleToWatcher pins the deliberate asymmetry between assignment and push after IDEA-2544 Phase 2
internal/server/handlers_watch_events_test.go:839
FunctionTestWatchNotificationVisible_AssignmentToYouNeedsAWatch
TestWatchNotificationVisible_AssignmentToYouNeedsAWatch replaces TASK-2533's TestWatchNotificationVisible_AddressedToYouIgnoresWatchList, which assert
internal/server/handlers_watch_events_test.go:809
FunctionTestWatchNotificationVisible_PredicateGatesNonStatusKinds
(t *testing.T)
internal/server/handlers_watch_events_test.go:780
FunctionTestWatchNotificationVisible_PredicateMatchesOnlyTargetValue
(t *testing.T)
internal/server/handlers_watch_events_test.go:789
FunctionTestWatchNotificationVisible_PushDeliveredWhenArmed
TestWatchNotificationVisible_PushDeliveredWhenArmed is the positive counterpart — armed=true is what lets an otherwise-matching push through. Without
internal/server/handlers_watch_events_test.go:868
FunctionTestWatchNotificationVisible_PushDeniedWhenUnarmed
TestWatchNotificationVisible_PushDeniedWhenUnarmed is PLAN-2613 S1's core unit-level negative case: armed=false denies a push that would otherwise be
internal/server/handlers_watch_events_test.go:854
FunctionTestWatchNotificationVisible_PushEmptySessionTargetMatchesAnySession
TestWatchNotificationVisible_PushEmptySessionTargetMatchesAnySession pins that an untargeted (broadcast) push is unaffected by S5: an empty TargetSess
internal/server/handlers_watch_events_test.go:945
FunctionTestWatchNotificationVisible_PushSessionTargetedMatchDelivers
TestWatchNotificationVisible_PushSessionTargetedMatchDelivers is PLAN-2558 S5's (TASK-2588) core positive case: a push naming a specific session id is
internal/server/handlers_watch_events_test.go:910
FunctionTestWatchNotificationVisible_PushSessionTargetedMismatchDenied
TestWatchNotificationVisible_PushSessionTargetedMismatchDenied is S5's core negative case: TargetUserID matching is NOT sufficient once TargetSessionI
internal/server/handlers_watch_events_test.go:926
FunctionTestWatchNotificationVisible_PushStillGatedByAccess
TestWatchNotificationVisible_PushStillGatedByAccess mirrors TestWatchNotificationVisible_AddressedToYouStillGatedByAccess: the SAME current-access che
internal/server/handlers_watch_events_test.go:1007
FunctionTestWatchNotificationVisible_PushToSomeoneElseDenied
TestWatchNotificationVisible_PushToSomeoneElseDenied mirrors TestWatchNotificationVisible_AssignmentToSomeoneElseDenied for KindPush: Phase 1 only eve
internal/server/handlers_watch_events_test.go:961
FunctionTestWatchNotificationVisible_PushToSomeoneElseDeniedEvenWithPredicateWatch
TestWatchNotificationVisible_PushToSomeoneElseDeniedEvenWithPredicateWatch is the predicated-watch variant of the same fall-through blind spot — same
internal/server/handlers_watch_events_test.go:994
FunctionTestWatchNotificationVisible_PushToSomeoneElseDeniedEvenWithUnconditionalWatch
TestWatchNotificationVisible_PushToSomeoneElseDeniedEvenWithUnconditionalWatch covers a bug: the original push branch returned true only on a match an
internal/server/handlers_watch_events_test.go:982
FunctionTestWatchNotificationVisible_PushToYou
TestWatchNotificationVisible_PushToYou mirrors TestWatchNotificationVisible_AddressedToYouIgnoresWatchList for KindPush (IDEA-2544 Phase 1): a push fi
internal/server/handlers_watch_events_test.go:895
FunctionTestWatchNotificationVisible_UnarmedDoesNotAffectWatchMatchedDelivery
TestWatchNotificationVisible_UnarmedDoesNotAffectWatchMatchedDelivery pins the version-skew posture directly at the unit level: armed=false must have
internal/server/handlers_watch_events_test.go:882
FunctionTestWatchNotificationVisible_UnconditionalWatch
--- Pure unit tests for the visibility/predicate logic (no HTTP) ---
internal/server/handlers_watch_events_test.go:762
FunctionTestWatchNotificationVisible_UnwatchedItemDenied
(t *testing.T)
internal/server/handlers_watch_events_test.go:771
FunctionTestWatchStreamAnnouncesAGapMidStream
TestWatchStreamAnnouncesAGapMidStream is the same binding on the user-scoped stream, whose handler is a different function with its own select loop.
internal/server/handlers_stream_gap_test.go:191
FunctionTestWatchStreamChatPayloadShape
(t *testing.T)
internal/server/chat_delivery_test.go:269
FunctionTestWatchStreamHasAConnectionLimit
TestWatchStreamHasAConnectionLimit is BUG-2726's core claim made executable: this endpoint had NO connection bound, so the first assertion here fails
internal/server/stream_admission_test.go:82
FunctionTestWatchStreamIsRefusedWhenTheInstanceHasNoSubscription
TestWatchStreamIsRefusedWhenTheInstanceHasNoSubscription is BUG-2800's binding test, driven through a REAL watchevents.RedisBus rather than a double (
internal/server/handlers_watch_events_refused_test.go:29
FunctionTestWatchStreamRateLimitsGapAnnouncements
(t *testing.T)
internal/server/handlers_stream_gap_test.go:419
FunctionTestWatchStreamSharesTheActivityCursorContracts
The watch stream's half of the two contracts this unit aligned. Both were introduced on the activity stream first, which left the two SSE handlers sil
internal/server/handlers_events_resume_test.go:287
← previousnext →26,001–26,100 of 28,840, ranked by callers