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
TestTask3414_RevokedBetweenMintAndRedeem
Access revoked between mint and redeem refuses the redeem, read from the viewer's CURRENT memberships, not the mint's.
internal/server/task3414_item_actions_test.go:278
Function
TestTask3414_StoreGuardsWorkspace
Store-level guards the HTTP routing happens to shadow: a mint for another workspace than the install's, and a redeem in a soft-deleted workspace.
internal/store/task3414_redeem_race_test.go:188
Function
TestTask3414_URLUsesTheNormalizedOrigin
The URL is built from the validated origin, not the raw stored base_url.
internal/server/task3414_item_actions_test.go:483
Function
TestTask3595_AutoCreateReturnsNilWhenItFailsAndOffCloud
A workspace that could not be made usable is no destination: every failure arm returns nil, so the doors omit workspace_path and the user lands where
internal/server/task3595_signup_landing_test.go:95
Function
TestTask3595_CloudRegisterReturnsTheNewWorkspacePath
(t *testing.T)
internal/server/task3595_signup_landing_test.go:32
Function
TestTask3595_OAuthSignupReturnsTheWorkspacePathOnlyForANewUser
(t *testing.T)
internal/server/task3595_signup_landing_test.go:55
Function
TestTask3601_LimitChecksNameThePayer
TASK-3601: a limit check names its payer: the workspace owner for a workspace limit, the user for a user limit.
internal/store/task3601_payer_test.go:11
Function
TestTask3601_PlanLimitDetailsNameThePayer
TASK-3601: a plan-limit refusal says who can lift it. The payer sees payer_is_you=true (the client offers checkout); anyone else sees payer_is_you=fal
internal/server/task3601_payer_details_test.go:15
Function
TestTask3604_CrossWorkspaceSearchLabelsOnlyAdmittedWorkspaces
TASK-3604: a search with no workspace named spans every workspace the caller may see, and each result names the workspace it lives in, taken from the
internal/server/task3604_search_workspace_test.go:15
Function
TestTask3867AnonymousRefused
(t *testing.T)
internal/server/task3867_token_access_test.go:508
Function
TestTask3867AuditRecordsChange
(t *testing.T)
internal/server/task3867_token_access_test.go:311
Function
TestTask3867CLIApprovalKeepsEnrolmentPin
(t *testing.T)
internal/server/task3867_token_access_test.go:666
Function
TestTask3867EmailFailureAndFactorMismatch
(t *testing.T)
internal/server/task3867_token_access_test.go:200
Function
TestTask3867EmailStepUp
(t *testing.T)
internal/server/task3867_token_access_test.go:168
Function
TestTask3867EnrolAtSessionCreationKeepsEarlierFactor
(t *testing.T)
internal/server/task3867_token_access_test.go:656
Function
TestTask3867ForeignAndUnknownID404Identical
(t *testing.T)
internal/server/task3867_token_access_test.go:281
Function
TestTask3867GrantExpires
(t *testing.T)
internal/server/task3867_token_access_test.go:252
Function
TestTask3867GrantPerSession
(t *testing.T)
internal/server/task3867_token_access_test.go:238
Function
TestTask3867LivenessClosesOnScopeChange
(t *testing.T)
internal/server/task3867_token_access_test.go:374
Function
TestTask3867NameOnlyNoStepUp
(t *testing.T)
internal/server/task3867_token_access_test.go:96
Function
TestTask3867NarrowingNoStepUp
(t *testing.T)
internal/server/task3867_token_access_test.go:85
Function
TestTask3867NullBackfillUsesTOTP
(t *testing.T)
internal/server/task3867_token_access_test.go:647
Function
TestTask3867PATAuthRefused
(t *testing.T)
internal/server/task3867_token_access_test.go:274
Function
TestTask3867PasswordRotationKeepsEnrolmentPin
(t *testing.T)
internal/server/task3867_token_access_test.go:709
Function
TestTask3867PasswordStepUpWithoutEmail
(t *testing.T)
internal/server/task3867_token_access_test.go:218
Function
TestTask3867PostEnrolSessionUsesTOTP
(t *testing.T)
internal/server/task3867_token_access_test.go:611
Function
TestTask3867ReEnrolOverExistingSecretResetsPin
(t *testing.T)
internal/server/task3867_token_access_test.go:589
Function
TestTask3867RecoveryCodeStepUp
(t *testing.T)
internal/server/task3867_token_access_test.go:121
Function
TestTask3867RenameDoesNotInvalidateUserAccess
(t *testing.T)
internal/server/task3867_token_access_test.go:735
Function
TestTask3867StolenSessionEnrolStillUsesEarlierFactor
(t *testing.T)
internal/server/task3867_token_access_test.go:559
Function
TestTask3867TOTPStepUp
(t *testing.T)
internal/server/task3867_token_access_test.go:107
Function
TestTask3867TokenAccessWidensMatchesLevels
(t *testing.T)
internal/server/task3867_token_access_test.go:348
Function
TestTask3867Unavailable409
(t *testing.T)
internal/server/task3867_token_access_test.go:226
Function
TestTask3867ValidationErrors
(t *testing.T)
internal/server/task3867_token_access_test.go:300
Function
TestTask3867VerifyRateLimits
(t *testing.T)
internal/server/task3867_token_access_test.go:485
Function
TestTask3867WideningWithoutStepUpRefused
(t *testing.T)
internal/server/task3867_token_access_test.go:76
Function
TestTask4031_RegSeqBackfillKeepsEveryOwner
Migration 157 / pg 125 backfill must not change any current owner. The database is put back in the pre-migration shape (no reg_seq), rows are seeded w
internal/store/task4031_push_reg_seq_test.go:112
Function
TestTask4032_TicksNeverOverlapAcrossStopStart
Stop does not wait for the tick in flight, so Start can run a second loop beside it. Ticks are serialized: while one is blocked inside a gateway send,
internal/server/task4032_push_record_failure_test.go:434
Function
TestTask4509SetupStepUp
(t *testing.T)
cmd/pad/cmd_auth_2fa_test.go:522
Function
TestTask4509TOTPExistingRefusals
(t *testing.T)
internal/server/task4509_totp_enrol_step_up_test.go:126
Function
TestTask4509TOTPGrantAndExpiry
(t *testing.T)
internal/server/task4509_totp_enrol_step_up_test.go:41
Function
TestTask4509TOTPRequiresStepUp
(t *testing.T)
internal/server/task4509_totp_enrol_step_up_test.go:10
Function
TestTask4509TOTPUnavailableNeedsRecentSignIn
(t *testing.T)
internal/server/task4509_totp_enrol_step_up_test.go:88
Function
TestTask4587AgendaCountsModes
(t *testing.T)
internal/server/task4587_agenda_counts_param_test.go:12
Function
TestTask4587AgendaCountsOnlyBudget
(t *testing.T)
internal/server/task4587_agenda_counts_param_test.go:96
Function
TestTask4587AgendaCountsOnlyUnavailable
(t *testing.T)
internal/server/task4587_agenda_counts_param_test.go:85
Function
TestTask4587AgendaCountsValidation
(t *testing.T)
internal/server/task4587_agenda_counts_param_test.go:60
Function
TestTemplateExpand
(t *testing.T)
internal/schedule/links_test.go:645
Function
TestTerminalListsMatchWeb
The web mirrors both fallback lists (web/src/lib/types/index.ts) and they must not drift: a value the server treats as closed and the board treats as
internal/models/bug3546_terminal_spellings_test.go:50
Function
TestTerminalPlaceholdersForDoneField_LowercasesArgs
(t *testing.T)
internal/models/terminal_test.go:171
Function
TestTerminalStatusesFromSchema_CompatShim
(t *testing.T)
internal/models/terminal_test.go:251
Function
TestTerminalValuesForDoneField_FallsBackToDefaults
(t *testing.T)
internal/models/terminal_test.go:129
Function
TestTerminalValuesForDoneField_StatusTerminalsStillWork
(t *testing.T)
internal/models/terminal_test.go:148
Function
TestTerminalValuesForDoneField_UsesFieldTerminals
(t *testing.T)
internal/models/terminal_test.go:108
Function
TestTestEmailRefusesUnusableBody
TestTestEmailRefusesUnusableBody is the handler-level leg that was missing. Reverting handlers_admin.go to `err != nil || input.To == ""` — which defa
internal/server/decode_json_nul_test.go:795
Function
TestTestShard_SpreadDealsPinnedTestsFirst
TASK-4648: pinned tests are dealt first, one per shard in file order, so the heaviest tests stay apart however the sorted list shifts; the rest follow
internal/buildtools/test_shard_spread_test.go:35
Function
TestTestShard_SpreadRefusesBadPins
A pin that names no test in the package, names one twice, or is not two fields fails the run rather than being skipped, so it cannot go stale.
internal/buildtools/test_shard_spread_test.go:66
Function
TestTestStorePostgres_ClonesAreIsolated
TestTestStorePostgres_ClonesAreIsolated proves each caller gets its own writable database rather than a shared one — the failure a template optimisati
internal/store/pg_template_test.go:76
Function
TestTestStorePostgres_DatabasesAreClonedNotMigrated
TASK-2900. The in-package mirror of storetest/postgres_test.go's mechanism tests, and the reason there are two is the reason there are two helpers: in
internal/store/pg_template_test.go:30
Function
TestTestStorePostgres_TemplateBuildsOnce
TestTestStorePostgres_TemplateBuildsOnce asserts the migration chain runs at most once per test binary. It is NOT a substitute for the test above — de
internal/store/pg_template_test.go:60
Function
TestTestingCleanupIsNotStoretestCleanup
(t *testing.T)
scripts/ci-web-census/main_test.go:148
Function
TestTextFamilyEntriesAreReachableAndNeverGainInline
BUG-2841: an allowlisted text type that no upload can produce. Before BUG-2963 (#1309) every text-family entry but text/plain was dead by construction
internal/attachments/mime_text_reachability_test.go:23
Function
TestTextSafeHelpersAreUsedAtEveryCallSite
TestTextSafeHelpersAreUsedAtEveryCallSite closes a gap: reverting a single call site back to the unsafe form leaves every behavioural test green, beca
internal/server/decode_json_nul_test.go:850
Function
TestThe501stLinkOfAComponentIsRefusedAtInsert
(t *testing.T)
internal/store/commitment_links_review_test.go:180
Function
TestTheActivityResumePathRefusesTheDiscardedPeak
The refusal reaches the resume path the SSE handler uses, not only the local read above (team CONVE-19). A nil replay is the handler's sync_required;
internal/events/redis_discarded_peak_test.go:50
Function
TestTheAdjacentCursorAcrossIncarnationsIsRefused
(t *testing.T)
internal/events/idspace_test.go:122
Function
TestTheBudgetIsCheckedJustBeforeCommit
---- 7: the check just before COMMIT, isolated from the checks between writes.
internal/store/commitment_links_review_test.go:137
Function
TestTheCadenceDoesNotDriftWithPassDuration
TestTheCadenceDoesNotDriftWithPassDuration pins the scheduling arithmetic. It exists because the mutation matrix said nothing else could: restoring t
internal/events/redis_heartbeat_test.go:1595
Function
TestTheCadenceDoesNotDriftWithPassDuration
TestTheCadenceDoesNotDriftWithPassDuration pins the scheduling arithmetic. Breaking it is self-defeating rather than untidy: an instance whose passes
internal/watchevents/heartbeat_test.go:397
Function
TestTheCallersConfigIsNotMutated
TestTheCallersConfigIsNotMutated is the reason the fallback clones. A shared tls.Config is dialled through many times; writing the first host's name i
internal/redisdial/redisdial_test.go:148
Function
TestTheCancelMarkIsInTheSkipsTransaction
The mark and the skip commit together or not at all.
internal/store/commitment_cancel_test.go:247
Function
TestTheCancelMarkWorksWithOneConnection
(t *testing.T)
internal/store/commitment_cancel_test.go:267
Function
TestTheCancelPolicyNeverTouchesFinishedWork
Finished work is history: a done child, a child whose series ended, and a removed child are left alone.
internal/store/commitment_cancel_test.go:176
Function
TestTheCollabRoomManagerReportsToMetrics
TASK-3501, CONVE-19: wiring is a claim. The collab package proves the Join path reports and the metrics package proves the adapter maps it, and both p
cmd/pad/collab_metrics_wiring_test.go:23
Function
TestTheCopiedDefaultStillMatchesGoRedis
TestTheCopiedDefaultStillMatchesGoRedis is the drift guard. Both constants in this package are copies of unexported or internal go-redis values, and a
internal/redisdial/redisdial_test.go:433
Function
TestTheDedupeTokenMakesARetriedPublishANoOp
(t *testing.T)
internal/events/redis_idspace_test.go:200
Function
TestTheDialUsesTheCallersContext
TestTheDialUsesTheCallersContext is a WIRING assertion (CONVE-19): the timing benefit of dialling on the caller's context cannot be observed against a
internal/events/redis_subscribe_cancel_test.go:406
Function
TestTheFrameSeamFiresForEveryArm
TestTheFrameSeamFiresForEveryArm pins what the seam's comment claims, after the comment was found claiming more than the code did. The arms that decli
internal/watchevents/heartbeat_test.go:1088
Function
TestTheGenerationCeilingIsOneUnderTheEpochCeiling
A generation at or above the guard's ceiling is repaired ONCE, not rotated twice inside one publish (BUG-2740). The two ceilings interact, and that i
internal/events/redis_generation_guard_test.go:373
Function
TestTheHeartbeatFlipReachesTheRedisBus
TestTheHeartbeatFlipReachesTheRedisBus is the same claim for BUG-2738's phase-2 flip, and it needs its own test for the same reason the epoch one does
cmd/pad/event_bus_wiring_test.go:219
Function
TestTheIDOnTheWireIsTheStoredOneAboveExactDoubleRange
The precision half: a 17-digit counter is usable (no repair), and the id on the wire is the one the key holds. Through a Lua double, 99999999999999999
internal/events/bug2744_seq_guard_test.go:215
Function
TestTheMaintenanceLoopRunsBothHalves
--------------------------------------------------------------------------- Wiring (team CONVE-19: a direct-call test vouches for the component, not i
internal/events/redis_heartbeat_test.go:1653
Function
TestTheMaintenanceLoopStartsThePublisher
TestTheMaintenanceLoopStartsThePublisher is the wiring (CONVE-19) for ONE of the loop's two halves: every test above calls publishHeartbeats directly,
internal/watchevents/heartbeat_test.go:361
Function
TestTheMarkBelongsToThatOccurrenceOnly
The mark is for one occurrence: once the child's moves on, the next is a normal occurrence that can record a miss.
internal/store/commitment_cancel_test.go:208
Function
TestTheMemoryBusDeclinesACancelledResumeToo
TestTheMemoryBusDeclinesACancelledResumeToo pins the parity. The two implementations answer the same question and must not disagree about whether a de
internal/watchevents/redis_bus_resume_test.go:439
Function
TestTheOriginalBackwardArmRebasesTheHighWaterMark
The same rebase obligation on the ORIGINAL backward arm — the one that fires when lastAppendedID is still set — which is a separate site with the iden
internal/watchevents/redis_reconnect_test.go:616
Function
TestThePublishEpochFlipReachesTheRedisBus
The phase-2 flip has to REACH the bus, which is a separate claim from the bus honouring it (BUG-2736). internal/events proves a bus constructed with p
cmd/pad/event_bus_wiring_test.go:144
Function
TestThePublishedGenerationMatchesTheStoredOneAboveExactDoubleRange
The generation reaching the wire must be the one in the key, at every magnitude the guard admits (BUG-2740). Redis hands an integer reply to Lua as a
internal/events/redis_generation_guard_test.go:311
Function
TestTheReceiveLoopActuallyConsultsTheGeneration
TestTheReceiveLoopActuallyConsultsTheGeneration is the WIRING for the straggler fence (CONVE-19). Its sibling above asserts isCurrentGen answers corre
internal/watchevents/heartbeat_test.go:560
Function
TestTheReceiveLoopExitIsReported
The receive-loop-exit counter, wired end to end. It is not a should-never-fire alarm here — unlike the watch stream's twin, this bus has one loop PER
internal/events/redis_reconnect_test.go:255
Function
TestTheReplayCeilingIsAPositionNotAnID
TestTheReplayCeilingIsAPositionNotAnID covers the replay ceiling directly on the buffer, where the out-of-order case can be constructed exactly rather
internal/events/redis_subscribe_confirm_test.go:914
Function
TestTheResumePathRefusesACursorInsideAnAbandonedIDSpace
The refusal must reach the one caller whose answer a client depends on: the resume path the SSE handler uses (team CONVE-19 — the local read above vou
internal/watchevents/redis_bus_ambiguity_test.go:177
Function
TestTheRevisionIsIndependentOfLinkReadOrder
---- 6: the revision does not depend on the order links were read in.
internal/store/commitment_links_review_test.go:104
Function
TestTheShippedDefaultsAreThreeToOne
TestTheShippedDefaultsAreThreeToOne pins the RELATIONSHIP the ruling is made of, not the numbers. The threshold is not a tuned constant: it is three p
internal/events/redis_heartbeat_test.go:1855
Function
TestTheSnapshotIsTakenBeforeTheRepairWrites
TestTheSnapshotIsTakenBeforeTheRepairWrites pins the ORDER of two startup steps, which is the whole of what it asserts. The repair changes data — it
internal/store/trait_dedupe_test.go:618
Function
TestTheStragglerWindowDoesNotCloseWhenOtherWorkspacesCarryTheCounter
(t *testing.T)
internal/events/redis_idspace_test.go:1263
Function
TestTheTerminalFlagAloneChangesTheRevision
The terminal flag alone distinguishes a finished child that has no change and no descendants.
internal/store/commitment_links_round2_test.go:186
Function
TestTheTimeoutStillBoundsAStalledHandshake
TestTheTimeoutStillBoundsAStalledHandshake is the other half, and the direction that is easy to lose while fixing the first. If the timeout bounded o
internal/redisdial/redisdial_test.go:264
Function
TestThousands
(t *testing.T)
cmd/pad/item_update_outcome_test.go:212
Function
TestThrottledBodyEdit_MarkerReachesTimeline
The marker is the only record of a throttled body edit, so the timeline must serve it (PLAN-2348 U3 flipped the U2 rule that hid it).
internal/server/plan2348_u2_versions_test.go:63
← previous
next →
25,501–25,600 of 28,840, ranked by callers