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
TestVerifiedEmail_CLISessionApprove_BlocksUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:259
Function
TestVerifiedEmail_CollabUpgrade_AllowsVerified
(t *testing.T)
internal/server/middleware_verified_email_test.go:425
Function
TestVerifiedEmail_CollabUpgrade_BlocksUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:393
Function
TestVerifiedEmail_CoreWrite_PAT_BlocksUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:184
Function
TestVerifiedEmail_CoreWrite_Session_BlocksUnverified
--------------------------------------------------------------------- Perimeter 1: /api/v1 core writes — session AND PAT. ----------------------------
internal/server/middleware_verified_email_test.go:177
Function
TestVerifiedEmail_DeleteAccount_AllowedForUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:313
Function
TestVerifiedEmail_ImportURL_BlocksUnverified
--------------------------------------------------------------------- Perimeter 3: POST /api/v1/import/url (SSRF/abuse surface). ---------------------
internal/server/middleware_verified_email_test.go:279
Function
TestVerifiedEmail_InvitationAccept_CarveOut
--------------------------------------------------------------------- Carve-out: POST /api/v1/invitations/{code}/accept works unverified. ------------
internal/server/middleware_verified_email_test.go:326
Function
TestVerifiedEmail_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
Function
TestVerifiedEmail_Logout_AllowedForUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:303
Function
TestVerifiedEmail_OAuthAuthorizeDecide_BlocksUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:471
Function
TestVerifiedEmail_OAuthAuthorize_BlocksUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:501
Function
TestVerifiedEmail_PatchMe_BlocksUnverified
(t *testing.T)
internal/server/middleware_verified_email_test.go:252
Function
TestVerifiedEmail_Reads_AllowedForUnverified
--------------------------------------------------------------------- Reads + the account-lifecycle carve-outs stay open for unverified. -------------
internal/server/middleware_verified_email_test.go:290
Function
TestVerifiedEmail_SelfHost_NoOp
--------------------------------------------------------------------- Cross-cutting invariant: self-host (!cloudMode) is entirely unaffected. --------
internal/server/middleware_verified_email_test.go:223
Function
TestVerifiedEmail_TokenCreate_BlocksUnverified
--------------------------------------------------------------------- Perimeter 2: authenticated /auth/* token-minting + profile mutations. ----------
internal/server/middleware_verified_email_test.go:245
Function
TestVerifiedEmail_VerifiedUser_PassesAllPerimeters
--------------------------------------------------------------------- Cross-cutting invariant: a VERIFIED cloud user passes every perimeter. ---------
internal/server/middleware_verified_email_test.go:195
Function
TestVerifyArmStateHeldAcceptsHeldStates
(t *testing.T)
internal/cli/session_arm_unverifiable_bug2771_test.go:240
Function
TestVerifyArmStateHeldRefusesAReapedWrite
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
Function
TestVerifyArmStateHeldRefusesASelfOwnedHeadlessWrite
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
Function
TestVerifyClaimCode_AgedOutRejected
(t *testing.T)
internal/server/claim_codes_test.go:115
Function
TestVerifyClaimCode_CurrentBucketAccepted
(t *testing.T)
internal/server/claim_codes_test.go:89
Function
TestVerifyClaimCode_PreviousBucketAccepted
(t *testing.T)
internal/server/claim_codes_test.go:99
Function
TestVerifyClaimCode_ShortSecretFailsClosed
(t *testing.T)
internal/server/claim_codes_test.go:161
Function
TestVerifyClaimCode_WrongInputsRejected
(t *testing.T)
internal/server/claim_codes_test.go:127
Function
TestVerifyConventionLandedCatchesAServerThatIgnoredTheMember
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
Function
TestVerifyPRLinkedCatchesAServerThatIgnoredTheWrite
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
Function
TestVerifyPRUnlinkedCatchesAServerThatIgnoredTheClear
(t *testing.T)
cmd/pad/bug2696_github_link_skew_test.go:30
Function
TestVersionCreation
(t *testing.T)
internal/store/store_test.go:1104
Function
TestVersionCreationActorChange
(t *testing.T)
internal/store/store_test.go:1140
Function
TestVersionNotCreatedWithoutContentChange
(t *testing.T)
internal/store/store_test.go:1161
Function
TestViewPatchOfACalendarWhoseCollectionIsGone
--- views and parameters ---
internal/server/handlers_calendar_test.go:859
Function
TestViewTypeValidation
(t *testing.T)
internal/server/handlers_calendar_test.go:488
Function
TestVisibleCollectionIDsFaultIsNilInProduction
(t *testing.T)
internal/server/bug3334_fail_closed_test.go:376
Function
TestVisibleCollectionIDs_AllAccess
(t *testing.T)
internal/store/permissions_test.go:55
Function
TestVisibleCollectionIDs_NonMember
(t *testing.T)
internal/store/permissions_test.go:162
Function
TestVisibleCollectionIDs_SpecificAccess
(t *testing.T)
internal/store/permissions_test.go:69
Function
TestVisibleCollectionIDs_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
Function
TestVisibleWorkspaceTabs_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
Function
TestWallStringRoundTrip
(t *testing.T)
internal/schedule/wall_test.go:43
Function
TestWarnContentPendingFlush
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
Function
TestWarnOncePerKey_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
Function
TestWarnPlaybookBodyStaleGating
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
Function
TestWarnStaleEditSeedGating
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
Function
TestWatchEventPayload_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
Function
TestWatchEventsObserverIgnoresNonPositiveGapSpans
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
Function
TestWatchEventsObserverMapsEachEventToItsOwnCounter
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
Function
TestWatchEventsPublishSitesAreRuled
(t *testing.T)
internal/server/publish_sites_ruled_test.go:62
Function
TestWatchEventsResetReasonsReachTheMetricWithTheirWireSpelling
TestWatchEventsResetReasonsReachTheMetricWithTheirWireSPELLING covers the two reasons BUG-2739 added, and does it with LITERAL strings rather than the
internal/metrics/watchevents_observer_test.go:141
Function
TestWatchEventsStream_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
Function
TestWatchEventsStream_AssignmentIsNotAddressedToYou
TestWatchEventsStream_AssignmentIsNotAddressedToYou is the inverted successor of TASK-2533's TestWatchEventsStream_AddressedToYou_Assignment, which as
internal/server/handlers_watch_events_test.go:304
Function
TestWatchEventsStream_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
Function
TestWatchEventsStream_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
Function
TestWatchEventsStream_CommentNotification
(t *testing.T)
internal/server/handlers_watch_events_test.go:402
Function
TestWatchEventsStream_ConnectedEvent
(t *testing.T)
internal/server/handlers_watch_events_test.go:169
Function
TestWatchEventsStream_DeliversWatchedStatusChange
(t *testing.T)
internal/server/handlers_watch_events_test.go:193
Function
TestWatchEventsStream_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
Function
TestWatchEventsStream_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
Function
TestWatchEventsStream_PredicateOnlyFiresOnMatch
(t *testing.T)
internal/server/handlers_watch_events_test.go:359
Function
TestWatchEventsStream_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
Function
TestWatchEventsStream_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
Function
TestWatchEventsStream_RequiresAuth
(t *testing.T)
internal/server/handlers_watch_events_test.go:152
Function
TestWatchEventsStream_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
Function
TestWatchEventsStream_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
Function
TestWatchEventsStream_SuppressesUnwatchedItem
(t *testing.T)
internal/server/handlers_watch_events_test.go:239
Function
TestWatchEventsStream_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
Function
TestWatchEventsStream_UpdateWithAttachedComment
TestWatchEventsStream_UpdateWithAttachedComment covers the bypass named in publishWatchNotifications' audit: `PATCH .../items/{slug}` with a `comment`
internal/server/handlers_watch_events_test.go:551
Function
TestWatchEventsStream_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
Function
TestWatchEvents_BUG3637_StalledReaderReleasesItsSlot
(t *testing.T)
internal/server/bug3637_sse_stalled_reader_test.go:237
Function
TestWatchEvents_BUG3637_WriterWithoutDeadlineIsRefused
(t *testing.T)
internal/server/bug3637_sse_stalled_reader_test.go:298
Function
TestWatchHeartbeatDefaultsOff
The default MUST be off, for the reason above.
internal/config/redis_stream_config_test.go:394
Function
TestWatchHeartbeatEnvBeatsTheConfigFile
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
Function
TestWatchHeartbeatEnvMapping
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
Function
TestWatchHeartbeatIgnoresANonBooleanValue
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
Function
TestWatchHeartbeatRoundTripsThroughTheConfigFile
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
Function
TestWatchNotificationVisible_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
Function
TestWatchNotificationVisible_AssignmentToSomeoneElseDenied
(t *testing.T)
internal/server/handlers_watch_events_test.go:820
Function
TestWatchNotificationVisible_AssignmentToSomeoneElseVisibleToWatcher
TestWatchNotificationVisible_AssignmentToSomeoneElseVisibleToWatcher pins the deliberate asymmetry between assignment and push after IDEA-2544 Phase 2
internal/server/handlers_watch_events_test.go:839
Function
TestWatchNotificationVisible_AssignmentToYouNeedsAWatch
TestWatchNotificationVisible_AssignmentToYouNeedsAWatch replaces TASK-2533's TestWatchNotificationVisible_AddressedToYouIgnoresWatchList, which assert
internal/server/handlers_watch_events_test.go:809
Function
TestWatchNotificationVisible_PredicateGatesNonStatusKinds
(t *testing.T)
internal/server/handlers_watch_events_test.go:780
Function
TestWatchNotificationVisible_PredicateMatchesOnlyTargetValue
(t *testing.T)
internal/server/handlers_watch_events_test.go:789
Function
TestWatchNotificationVisible_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
Function
TestWatchNotificationVisible_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
Function
TestWatchNotificationVisible_PushEmptySessionTargetMatchesAnySession
TestWatchNotificationVisible_PushEmptySessionTargetMatchesAnySession pins that an untargeted (broadcast) push is unaffected by S5: an empty TargetSess
internal/server/handlers_watch_events_test.go:945
Function
TestWatchNotificationVisible_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
Function
TestWatchNotificationVisible_PushSessionTargetedMismatchDenied
TestWatchNotificationVisible_PushSessionTargetedMismatchDenied is S5's core negative case: TargetUserID matching is NOT sufficient once TargetSessionI
internal/server/handlers_watch_events_test.go:926
Function
TestWatchNotificationVisible_PushStillGatedByAccess
TestWatchNotificationVisible_PushStillGatedByAccess mirrors TestWatchNotificationVisible_AddressedToYouStillGatedByAccess: the SAME current-access che
internal/server/handlers_watch_events_test.go:1007
Function
TestWatchNotificationVisible_PushToSomeoneElseDenied
TestWatchNotificationVisible_PushToSomeoneElseDenied mirrors TestWatchNotificationVisible_AssignmentToSomeoneElseDenied for KindPush: Phase 1 only eve
internal/server/handlers_watch_events_test.go:961
Function
TestWatchNotificationVisible_PushToSomeoneElseDeniedEvenWithPredicateWatch
TestWatchNotificationVisible_PushToSomeoneElseDeniedEvenWithPredicateWatch is the predicated-watch variant of the same fall-through blind spot — same
internal/server/handlers_watch_events_test.go:994
Function
TestWatchNotificationVisible_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
Function
TestWatchNotificationVisible_PushToYou
TestWatchNotificationVisible_PushToYou mirrors TestWatchNotificationVisible_AddressedToYouIgnoresWatchList for KindPush (IDEA-2544 Phase 1): a push fi
internal/server/handlers_watch_events_test.go:895
Function
TestWatchNotificationVisible_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
Function
TestWatchNotificationVisible_UnconditionalWatch
--- Pure unit tests for the visibility/predicate logic (no HTTP) ---
internal/server/handlers_watch_events_test.go:762
Function
TestWatchNotificationVisible_UnwatchedItemDenied
(t *testing.T)
internal/server/handlers_watch_events_test.go:771
Function
TestWatchStreamAnnouncesAGapMidStream
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
Function
TestWatchStreamChatPayloadShape
(t *testing.T)
internal/server/chat_delivery_test.go:269
Function
TestWatchStreamHasAConnectionLimit
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
Function
TestWatchStreamIsRefusedWhenTheInstanceHasNoSubscription
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
Function
TestWatchStreamRateLimitsGapAnnouncements
(t *testing.T)
internal/server/handlers_stream_gap_test.go:419
Function
TestWatchStreamSharesTheActivityCursorContracts
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
← previous
next →
26,001–26,100 of 28,840, ranked by callers