MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestTask3414_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
FunctionTestTask3414_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
FunctionTestTask3414_URLUsesTheNormalizedOrigin
The URL is built from the validated origin, not the raw stored base_url.
internal/server/task3414_item_actions_test.go:483
FunctionTestTask3595_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
FunctionTestTask3595_CloudRegisterReturnsTheNewWorkspacePath
(t *testing.T)
internal/server/task3595_signup_landing_test.go:32
FunctionTestTask3595_OAuthSignupReturnsTheWorkspacePathOnlyForANewUser
(t *testing.T)
internal/server/task3595_signup_landing_test.go:55
FunctionTestTask3601_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
FunctionTestTask3601_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
FunctionTestTask3604_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
FunctionTestTask3867AnonymousRefused
(t *testing.T)
internal/server/task3867_token_access_test.go:508
FunctionTestTask3867AuditRecordsChange
(t *testing.T)
internal/server/task3867_token_access_test.go:311
FunctionTestTask3867CLIApprovalKeepsEnrolmentPin
(t *testing.T)
internal/server/task3867_token_access_test.go:666
FunctionTestTask3867EmailFailureAndFactorMismatch
(t *testing.T)
internal/server/task3867_token_access_test.go:200
FunctionTestTask3867EmailStepUp
(t *testing.T)
internal/server/task3867_token_access_test.go:168
FunctionTestTask3867EnrolAtSessionCreationKeepsEarlierFactor
(t *testing.T)
internal/server/task3867_token_access_test.go:656
FunctionTestTask3867ForeignAndUnknownID404Identical
(t *testing.T)
internal/server/task3867_token_access_test.go:281
FunctionTestTask3867GrantExpires
(t *testing.T)
internal/server/task3867_token_access_test.go:252
FunctionTestTask3867GrantPerSession
(t *testing.T)
internal/server/task3867_token_access_test.go:238
FunctionTestTask3867LivenessClosesOnScopeChange
(t *testing.T)
internal/server/task3867_token_access_test.go:374
FunctionTestTask3867NameOnlyNoStepUp
(t *testing.T)
internal/server/task3867_token_access_test.go:96
FunctionTestTask3867NarrowingNoStepUp
(t *testing.T)
internal/server/task3867_token_access_test.go:85
FunctionTestTask3867NullBackfillUsesTOTP
(t *testing.T)
internal/server/task3867_token_access_test.go:647
FunctionTestTask3867PATAuthRefused
(t *testing.T)
internal/server/task3867_token_access_test.go:274
FunctionTestTask3867PasswordRotationKeepsEnrolmentPin
(t *testing.T)
internal/server/task3867_token_access_test.go:709
FunctionTestTask3867PasswordStepUpWithoutEmail
(t *testing.T)
internal/server/task3867_token_access_test.go:218
FunctionTestTask3867PostEnrolSessionUsesTOTP
(t *testing.T)
internal/server/task3867_token_access_test.go:611
FunctionTestTask3867ReEnrolOverExistingSecretResetsPin
(t *testing.T)
internal/server/task3867_token_access_test.go:589
FunctionTestTask3867RecoveryCodeStepUp
(t *testing.T)
internal/server/task3867_token_access_test.go:121
FunctionTestTask3867RenameDoesNotInvalidateUserAccess
(t *testing.T)
internal/server/task3867_token_access_test.go:735
FunctionTestTask3867StolenSessionEnrolStillUsesEarlierFactor
(t *testing.T)
internal/server/task3867_token_access_test.go:559
FunctionTestTask3867TOTPStepUp
(t *testing.T)
internal/server/task3867_token_access_test.go:107
FunctionTestTask3867TokenAccessWidensMatchesLevels
(t *testing.T)
internal/server/task3867_token_access_test.go:348
FunctionTestTask3867Unavailable409
(t *testing.T)
internal/server/task3867_token_access_test.go:226
FunctionTestTask3867ValidationErrors
(t *testing.T)
internal/server/task3867_token_access_test.go:300
FunctionTestTask3867VerifyRateLimits
(t *testing.T)
internal/server/task3867_token_access_test.go:485
FunctionTestTask3867WideningWithoutStepUpRefused
(t *testing.T)
internal/server/task3867_token_access_test.go:76
FunctionTestTask4031_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
FunctionTestTask4032_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
FunctionTestTask4509SetupStepUp
(t *testing.T)
cmd/pad/cmd_auth_2fa_test.go:522
FunctionTestTask4509TOTPExistingRefusals
(t *testing.T)
internal/server/task4509_totp_enrol_step_up_test.go:126
FunctionTestTask4509TOTPGrantAndExpiry
(t *testing.T)
internal/server/task4509_totp_enrol_step_up_test.go:41
FunctionTestTask4509TOTPRequiresStepUp
(t *testing.T)
internal/server/task4509_totp_enrol_step_up_test.go:10
FunctionTestTask4509TOTPUnavailableNeedsRecentSignIn
(t *testing.T)
internal/server/task4509_totp_enrol_step_up_test.go:88
FunctionTestTask4587AgendaCountsModes
(t *testing.T)
internal/server/task4587_agenda_counts_param_test.go:12
FunctionTestTask4587AgendaCountsOnlyBudget
(t *testing.T)
internal/server/task4587_agenda_counts_param_test.go:96
FunctionTestTask4587AgendaCountsOnlyUnavailable
(t *testing.T)
internal/server/task4587_agenda_counts_param_test.go:85
FunctionTestTask4587AgendaCountsValidation
(t *testing.T)
internal/server/task4587_agenda_counts_param_test.go:60
FunctionTestTemplateExpand
(t *testing.T)
internal/schedule/links_test.go:645
FunctionTestTerminalListsMatchWeb
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
FunctionTestTerminalPlaceholdersForDoneField_LowercasesArgs
(t *testing.T)
internal/models/terminal_test.go:171
FunctionTestTerminalStatusesFromSchema_CompatShim
(t *testing.T)
internal/models/terminal_test.go:251
FunctionTestTerminalValuesForDoneField_FallsBackToDefaults
(t *testing.T)
internal/models/terminal_test.go:129
FunctionTestTerminalValuesForDoneField_StatusTerminalsStillWork
(t *testing.T)
internal/models/terminal_test.go:148
FunctionTestTerminalValuesForDoneField_UsesFieldTerminals
(t *testing.T)
internal/models/terminal_test.go:108
FunctionTestTestEmailRefusesUnusableBody
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
FunctionTestTestShard_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
FunctionTestTestShard_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
FunctionTestTestStorePostgres_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
FunctionTestTestStorePostgres_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
FunctionTestTestStorePostgres_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
FunctionTestTestingCleanupIsNotStoretestCleanup
(t *testing.T)
scripts/ci-web-census/main_test.go:148
FunctionTestTextFamilyEntriesAreReachableAndNeverGainInline
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
FunctionTestTextSafeHelpersAreUsedAtEveryCallSite
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
FunctionTestThe501stLinkOfAComponentIsRefusedAtInsert
(t *testing.T)
internal/store/commitment_links_review_test.go:180
FunctionTestTheActivityResumePathRefusesTheDiscardedPeak
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
FunctionTestTheAdjacentCursorAcrossIncarnationsIsRefused
(t *testing.T)
internal/events/idspace_test.go:122
FunctionTestTheBudgetIsCheckedJustBeforeCommit
---- 7: the check just before COMMIT, isolated from the checks between writes.
internal/store/commitment_links_review_test.go:137
FunctionTestTheCadenceDoesNotDriftWithPassDuration
TestTheCadenceDoesNotDriftWithPassDuration pins the scheduling arithmetic. It exists because the mutation matrix said nothing else could: restoring t
internal/events/redis_heartbeat_test.go:1595
FunctionTestTheCadenceDoesNotDriftWithPassDuration
TestTheCadenceDoesNotDriftWithPassDuration pins the scheduling arithmetic. Breaking it is self-defeating rather than untidy: an instance whose passes
internal/watchevents/heartbeat_test.go:397
FunctionTestTheCallersConfigIsNotMutated
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
FunctionTestTheCancelMarkIsInTheSkipsTransaction
The mark and the skip commit together or not at all.
internal/store/commitment_cancel_test.go:247
FunctionTestTheCancelMarkWorksWithOneConnection
(t *testing.T)
internal/store/commitment_cancel_test.go:267
FunctionTestTheCancelPolicyNeverTouchesFinishedWork
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
FunctionTestTheCollabRoomManagerReportsToMetrics
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
FunctionTestTheCopiedDefaultStillMatchesGoRedis
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
FunctionTestTheDedupeTokenMakesARetriedPublishANoOp
(t *testing.T)
internal/events/redis_idspace_test.go:200
FunctionTestTheDialUsesTheCallersContext
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
FunctionTestTheFrameSeamFiresForEveryArm
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
FunctionTestTheGenerationCeilingIsOneUnderTheEpochCeiling
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
FunctionTestTheHeartbeatFlipReachesTheRedisBus
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
FunctionTestTheIDOnTheWireIsTheStoredOneAboveExactDoubleRange
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
FunctionTestTheMaintenanceLoopRunsBothHalves
--------------------------------------------------------------------------- Wiring (team CONVE-19: a direct-call test vouches for the component, not i
internal/events/redis_heartbeat_test.go:1653
FunctionTestTheMaintenanceLoopStartsThePublisher
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
FunctionTestTheMarkBelongsToThatOccurrenceOnly
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
FunctionTestTheMemoryBusDeclinesACancelledResumeToo
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
FunctionTestTheOriginalBackwardArmRebasesTheHighWaterMark
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
FunctionTestThePublishEpochFlipReachesTheRedisBus
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
FunctionTestThePublishedGenerationMatchesTheStoredOneAboveExactDoubleRange
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
FunctionTestTheReceiveLoopActuallyConsultsTheGeneration
TestTheReceiveLoopActuallyConsultsTheGeneration is the WIRING for the straggler fence (CONVE-19). Its sibling above asserts isCurrentGen answers corre
internal/watchevents/heartbeat_test.go:560
FunctionTestTheReceiveLoopExitIsReported
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
FunctionTestTheReplayCeilingIsAPositionNotAnID
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
FunctionTestTheResumePathRefusesACursorInsideAnAbandonedIDSpace
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
FunctionTestTheRevisionIsIndependentOfLinkReadOrder
---- 6: the revision does not depend on the order links were read in.
internal/store/commitment_links_review_test.go:104
FunctionTestTheShippedDefaultsAreThreeToOne
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
FunctionTestTheSnapshotIsTakenBeforeTheRepairWrites
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
FunctionTestTheStragglerWindowDoesNotCloseWhenOtherWorkspacesCarryTheCounter
(t *testing.T)
internal/events/redis_idspace_test.go:1263
FunctionTestTheTerminalFlagAloneChangesTheRevision
The terminal flag alone distinguishes a finished child that has no change and no descendants.
internal/store/commitment_links_round2_test.go:186
FunctionTestTheTimeoutStillBoundsAStalledHandshake
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
FunctionTestThousands
(t *testing.T)
cmd/pad/item_update_outcome_test.go:212
FunctionTestThrottledBodyEdit_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
← previousnext →25,501–25,600 of 28,840, ranked by callers