MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestBackfillDoesNotApplyTheStep2Rule
The step2 rule is applied at append only. A legacy row the backfill classifies keeps the pre-BUG-3523 rule: a step2 with no twin is content.
internal/store/bug3136_step2_twin_test.go:123
FunctionTestBackfillEncryptTOTPSecrets_WriteDuringPassSurvives
(t *testing.T)
internal/store/bug3805_secret_backfill_race_test.go:131
FunctionTestBackfillOAuthConnections_AtomicOnMidLoopFailure
TestBackfillOAuthConnections_AtomicOnMidLoopFailure verifies that the per-chain transaction rolls BOTH the parent oauth_connections row AND any join r
internal/store/oauth_connections_backfill_test.go:367
FunctionTestBackfillOAuthConnections_DoesNotResurrectRemovedWorkspace
TestBackfillOAuthConnections_DoesNotResurrectRemovedWorkspace is the regression guard (#583): a user who removes a slug from their connection's allow-
internal/store/oauth_connections_backfill_test.go:304
FunctionTestBackfillOAuthConnections_EmptyDatabase
(t *testing.T)
internal/store/oauth_connections_backfill_test.go:111
FunctionTestBackfillOAuthConnections_ExplicitList
(t *testing.T)
internal/store/oauth_connections_backfill_test.go:181
FunctionTestBackfillOAuthConnections_Idempotent
(t *testing.T)
internal/store/oauth_connections_backfill_test.go:410
FunctionTestBackfillOAuthConnections_NewestRowDrivesShape
(t *testing.T)
internal/store/oauth_connections_backfill_test.go:245
FunctionTestBackfillOAuthConnections_PreTASK952_WildcardSemantic
(t *testing.T)
internal/store/oauth_connections_backfill_test.go:123
FunctionTestBackfillOAuthConnections_RefreshOnlyChain
(t *testing.T)
internal/store/oauth_connections_backfill_test.go:275
FunctionTestBackfillOAuthConnections_UnresolvedSlugIsCounted
(t *testing.T)
internal/store/oauth_connections_backfill_test.go:220
FunctionTestBackfillOAuthConnections_Wildcard
(t *testing.T)
internal/store/oauth_connections_backfill_test.go:159
FunctionTestBackfillSQLMatchesCanonicalTraits
TestBackfillSQLMatchesCanonicalTraits pins the migration's hardcoded JSON to the single Go definition every other surface uses. The SQL cannot import
internal/store/collection_traits_backfill_test.go:389
FunctionTestBackfillSelfHosted_MarkedCloudDatabaseRefuses
A database a cloud boot marked converts nothing.
internal/store/task3551_instance_mode_test.go:45
FunctionTestBackfillSelfHosted_SelfHostedDatabaseConverts
Control: an unmarked database with no billing state converts, as before.
internal/store/task3551_instance_mode_test.go:29
FunctionTestBackfillSelfHosted_UnmarkedDatabaseWithBillingStateRefuses
A Cloud database that predates the marker is recognised by billing state: a Stripe plan source, or a stored Stripe customer id, each on its own.
internal/store/task3551_instance_mode_test.go:65
FunctionTestBackfillStatusTransitions
(t *testing.T)
internal/store/status_transitions_test.go:309
FunctionTestBackfillStatusTransitions_SeedSeqBelowHop
(t *testing.T)
internal/store/reports_test.go:671
FunctionTestBackfillStructuredEntryIDs
(t *testing.T)
internal/store/bug2788_entry_id_backfill_test.go:29
FunctionTestBackfillTwinMustBeEarlier
The backfill compares a legacy row only against EARLIER rows. A frame appended after the migration (already hashed) must not make the legacy ORIGINAL
internal/store/bug3124_content_bearing_test.go:233
FunctionTestBackfillUserPlans_TakesSourceOver
BackfillUserPlans writes a plan, so it takes the source over as manual: a free user carrying a stripe source (their Stripe subscription ended) must no
internal/store/plan_source_test.go:230
FunctionTestBackfillUsernamesSkipsReserved
(t *testing.T)
internal/store/reserved_usernames_test.go:35
FunctionTestBackfillWikiLinks_ContentEmptiedAfterScanStaysEmpty
The content emptied after the scan: the write cleared the rows, and the backfill must not put them back from the old body.
internal/store/wiki_links_backfill_race_test.go:99
FunctionTestBackfillWikiLinks_HoldsWorkspaceLockFromTheReread
The re-read only helps if nothing can change the item between it and the replacement. Every content write takes the workspace seq lock, so the item's
internal/store/wiki_links_backfill_race_test.go:146
FunctionTestBackfillWikiLinks_LinkRemovedAfterScanIsNotResurrected
BUG-3666, the filed scenario: the link is removed after the scan read the item. The backfill used to rebuild the row from the body it had buffered, an
internal/store/wiki_links_backfill_race_test.go:56
FunctionTestBackfillWikiLinks_SourceDeletedAfterScanIsSkipped
The source deleted after the scan gets no rows.
internal/store/wiki_links_backfill_race_test.go:119
FunctionTestBackfillWikiLinks_UntouchedSourceIsIndexed
Control for the test above: with no write in the window, the same setup does produce the row, so a zero there is not a backfill that does nothing.
internal/store/wiki_links_backfill_race_test.go:81
FunctionTestBackfillWikiLinks_WriteAfterTheRereadWaitsAndWins
End to end, for the interval the lock probe above covers: a content write started after the re-read must wait for the backfill to commit, and then its
internal/store/wiki_links_backfill_race_test.go:199
FunctionTestBacklinkSnippetsCarryTheMarkerBothWays
BUG-3033 — backlink snippets, the door this unit's sweep missed because its vantage point was internal/server, internal/mcp and internal/cli. This sha
internal/store/backlink_content_state_test.go:23
FunctionTestBackoff_OwnerScheduleUnchanged
Parity: the owner path keeps its attempt count and its 500 ms x n schedule.
internal/webhooks/app_delivery_test.go:233
FunctionTestBackoff_StopEndsTheWait
A stopped dispatcher ends a pending backoff without another attempt, on both paths.
internal/webhooks/app_delivery_test.go:188
FunctionTestBaseURLIgnoresPublicURL
TestBaseURLIgnoresPublicURL pins the CLI-only contract for BaseURL(): the function backs the local `pad` CLI's choice of API endpoint and must NOT be
internal/config/config_test.go:408
FunctionTestBasesAreShiftedFarEnoughToHoldAMillisecondOfIDs
(t *testing.T)
internal/idspace/idspace_test.go:22
FunctionTestBasesDoNotOverflowAtTheDocumentedInstant
(t *testing.T)
internal/idspace/idspace_test.go:34
FunctionTestBasesStrictlyIncreaseWithinAProcess
(t *testing.T)
internal/idspace/idspace_test.go:5
FunctionTestBatchSiblingQueryIsBoundedInSQL
(t *testing.T)
internal/store/event_outbox_bounds_test.go:664
FunctionTestBeginRestoreDrainsAdmissionGap
TestBeginRestoreDrainsAdmissionGap is the P1(2) guard: a round-trip admitted by enterApplierGate BEFORE beginRestore, but which registers its pending
internal/collab/restore_coord_test.go:658
FunctionTestBestEffortProducerSucceedsWhenThePublishFails
TestBestEffortProducerSucceedsWhenThePublishFails (coverage-gap sweep). publishWatchNotification's whole contract is that a producer layered on a com
internal/server/handlers_push_publish_result_test.go:210
FunctionTestBetweenCapStallBeforeTheWindowPromisesNothing
A stall at or before the window's start examined nothing in the window, so it promises nothing: no Resume, no occurrences.
internal/schedule/partial_test.go:83
FunctionTestBetweenCapStallReturnsTheRDateBelowTheStallAndResume
(t *testing.T)
internal/schedule/partial_test.go:62
FunctionTestBetweenCapTimeInADSTZoneKeepsTheResumeContract
The same contract in a zone with DST, where the walk is ordered by wall reading and Resume carries the 26-hour slack.
internal/schedule/partial_test.go:98
FunctionTestBetweenCapTimeReturnsWhatItExaminedAndWhereToResume
(t *testing.T)
internal/schedule/partial_test.go:49
FunctionTestBetweenDedupesByInstant
(t *testing.T)
internal/schedule/nextbetween_test.go:202
FunctionTestBetweenEmptyAndInverted
(t *testing.T)
internal/schedule/nextbetween_test.go:138
FunctionTestBetweenEqualsChainedNextAfter
(t *testing.T)
internal/schedule/nextbetween_test.go:164
FunctionTestBetweenGapPopulationKeepsEarlierRDate
TestBetweenGapPopulationKeepsEarlierRDate is the New York repro of a gap holding more than the old constant slack (TASK-4100): 1,800 gap readings sort
internal/schedule/untilbounds_test.go:14
FunctionTestBetweenHalfOpen
(t *testing.T)
internal/schedule/nextbetween_test.go:129
FunctionTestBidiControlRunesIsTheProperty
The SQL selection is built from bidiControlRunes and the Go check from unicode.Bidi_Control; this keeps them the same set.
internal/store/attachment_bidi_backfill_test.go:13
FunctionTestBillingUsersPagesTheUsersTheSweepNeeds
TASK-3564: GET /admin/billing-users pages every user the reconcile sweep must re-sync (a stored Stripe customer, or a stripe-sourced plan), and only t
internal/server/task3564_billing_users_test.go:15
FunctionTestBinaryColumnCensus
TestBinaryColumnCensus pins the one assumption the write guard's classing rests on: that []byte parameters in this store are BINARY, so exempting them
internal/store/nulguard_test.go:33
FunctionTestBindableText
(t *testing.T)
internal/server/middleware_request_text_test.go:189
FunctionTestBlankTemplateAppearsInPicker
TestBlankTemplateAppearsInPicker verifies the blank template is surfaced by GroupTemplatesByCategory under a Custom group. The picker iterates this he
internal/collections/templates_test.go:776
FunctionTestBlankTemplateExcludesSoftwareCollections
TestBlankTemplateExcludesSoftwareCollections verifies the blank template doesn't accidentally inherit the standard software user-facing collections (t
internal/collections/templates_test.go:706
FunctionTestBlankTemplateShape
TestBlankTemplateShape verifies the blank template (IDEA-1479) ships only the two system collections (Conventions, Playbooks) with no seed items, conv
internal/collections/templates_test.go:656
FunctionTestBlankTemplateUsesMinimalVocabularies
TestBlankTemplateUsesMinimalVocabularies locks in the design choice from PLAN-1496 / TASK-1498: the blank template's seeded system collections use del
internal/collections/templates_test.go:733
FunctionTestBlankWorkspaceSurvivesSeedDefaultCollections
TestBlankWorkspaceSurvivesSeedDefaultCollections is the regression guard for the bug where the server runs SeedDefaultCollections against every worksp
internal/store/collections_test.go:724
FunctionTestBlindInventory
The pre-update hook is blind to virtual tables and to SQLite's own system tables. DOC-3371 §4 states that inventory exactly; a new virtual or system t
internal/store/storetest/writecapture_test.go:128
FunctionTestBlocked
(t *testing.T)
internal/netpolicy/netpolicy_test.go:8
FunctionTestBlockedExtensionAgreesWithValidateUpload
(t *testing.T)
internal/attachments/filename_test.go:150
FunctionTestBlocked_CloudMetadataCensus
BUG-3660: the provider metadata endpoints we know of, each with the range that blocks it. A new provider endpoint goes here first; if no existing rang
internal/netpolicy/netpolicy_test.go:63
FunctionTestBodyDecodesNUL
(t *testing.T)
internal/server/decode_json_nul_test.go:41
FunctionTestBodyDecodesNULAgainstAnIndependentOracle
TestBodyDecodesNULAgainstAnIndependentOracle checks the WALKER, which the gate differential structurally cannot (shared-oracle blind spot). Disagreeme
internal/server/decode_json_nul_test.go:1367
FunctionTestBodyDecodesNULAgreesWithTheDecoder
TestBodyDecodesNULAgreesWithTheDecoder is the differential check: for every case above, the verdict must match what actually lands in a decoded Go val
internal/server/decode_json_nul_test.go:93
FunctionTestBodyDecodesNULDescendsExactlyOneLevel
TestBodyDecodesNULDescendsExactlyOneLevel replaces an earlier depth-bound test. The walk no longer carries a depth counter, because it no longer needs
internal/server/decode_json_nul_test.go:401
FunctionTestBodyDecodesNULGateAgreesWithAnUngatedWalk
TestBodyDecodesNULGateAgreesWithAnUngatedWalk is the instrument that keeps the fast path honest. The gate is an argument, not an observation: to manu
internal/server/decode_json_nul_test.go:589
FunctionTestBodyDecodesNULLeavesTextFieldsAlone
TestBodyDecodesNULLeavesTextFieldsAlone pins a finding on BUG-2803, so it cannot come back. The first version of the nesting check recursed into ANY
internal/server/decode_json_nul_test.go:331
FunctionTestBodyDecodesNULMatchesKeysLikeTheDecoder
TestBodyDecodesNULMatchesKeysLikeTheDecoder covers this: encoding/json matches an incoming key to a struct field by an exact match first and a CASE-IN
internal/server/decode_json_nul_test.go:994
FunctionTestBodyDecodesNULNestedDocuments
TestBodyDecodesNULNestedDocuments covers a BUG-2803 case: several fields arrive as JSON-ENCODED STRINGS, so the escape survives the OUTER decode as li
internal/server/decode_json_nul_test.go:243
FunctionTestBodyDecodesNULUnderAJSONEncodedKeyChecksBothWays
TestBodyDecodesNULUnderAJSONEncodedKeyChecksBothWays guards against a REGRESSION that an earlier restructure of this branch introduced. Taking the JS
internal/server/decode_json_nul_test.go:731
FunctionTestBodyDerivedTextSitesAreAllRuledOn
BUG-3033, CONVE-35 — the ENUMERATION guard. This unit repeatedly turned up another door of the same class, and one had its precedent already in the t
internal/server/content_state_population_test.go:84
FunctionTestBodyReaderCensusSeesTheFormsTheParserMissed
TestBodyReaderCensusSeesTheFormsTheParserMissed is the census's control: a fixture package with one function per form the old parser could not see, an
internal/server/body_reader_census_test.go:207
FunctionTestBodyRepairMirrorsTheGateOverTheCorpus
TestBodyRepairMirrorsTheGateOverTheCorpus is the guard on the one risk the decoded walk introduces: repairDecodedNULs and bodyDecodesNUL are two trave
internal/server/nul_repair_differential_test.go:293
FunctionTestBodyRepairPreservesEverythingElse
TestBodyRepairPreservesEverythingElse pins the parts of a body the repair must not disturb when it DOES re-encode. Re-encoding is the cost of walking
internal/server/nul_repair_differential_test.go:343
FunctionTestBodyScanClosesTheMapModelGaps
TestBodyScanClosesTheMapModelGaps pins the answers to the four measured disagreements between the old map[string]any scan and encoding/json's typed de
internal/server/decode_json_nul_test.go:1024
FunctionTestBodyScanRefusesRepeatedRequestMembers
TestBodyScanRefusesRepeatedRequestMembers pins where a repeat counts (BUG-2812), and that it is judged on EVERY body rather than only on one that carr
internal/server/decode_json_nul_test.go:1078
FunctionTestBody_FixedAndContentFree
(t *testing.T)
internal/notify/gateway_test.go:199
FunctionTestBootPlanBackfill_CloudBootThenSelfHostedBootLeavesFreeUsersFree
(t *testing.T)
cmd/pad/task3551_boot_plan_backfill_test.go:39
FunctionTestBootPlanBackfill_SelfHostedBootConverts
Control: a self-hosted database (never booted as cloud) converts.
cmd/pad/task3551_boot_plan_backfill_test.go:59
FunctionTestBootstrapAgendaAllDayByDate
An all-day occurrence belongs to its date in the caller's zone, whatever zone the schedule is pinned to.
internal/store/schedule_bootstrap_test.go:221
FunctionTestBootstrapAgendaAudienceAndRecipient
The audience picks the agenda by the caller's kind, the recipient by the user.
internal/store/schedule_bootstrap_test.go:165
FunctionTestBootstrapAgendaAudienceByCallerKind
An agent sees agent and both; a human sees human and both.
internal/server/bootstrap_agenda_test.go:152
FunctionTestBootstrapAgendaCarryForward
An unresolved occurrence stays in every read; done, skipped and moved (to a later day) take it out.
internal/store/schedule_bootstrap_test.go:55
FunctionTestBootstrapAgendaCompactGroups
(t *testing.T)
internal/server/bootstrap_agenda_compact_test.go:10
FunctionTestBootstrapAgendaDeadlineOverrideIntoToday
A deadline overridden into today, with the target still far ahead, must reach the role membership check: next_at alone does not bound it.
internal/store/schedule_bootstrap_test.go:127
FunctionTestBootstrapAgendaEmptyAbsent
(t *testing.T)
internal/server/bootstrap_agenda_compact_test.go:45
FunctionTestBootstrapAgendaFarFutureMovedIntoToday
A far-future occurrence moved into today keeps next_at at its seed instant and reads at next_override_at, so the near-term bound must admit either.
internal/store/schedule_bootstrap_test.go:113
FunctionTestBootstrapAgendaFuturePriorityWithoutDueRows
Nothing to show: the key is absent, not an empty header.
internal/server/bootstrap_agenda_test.go:128
FunctionTestBootstrapAgendaFutureSchedulesDoNotConsumeDueScan
(t *testing.T)
internal/server/bootstrap_agenda_bounds_test.go:8
FunctionTestBootstrapAgendaLabelsFromRoles
(t *testing.T)
cmd/pad/task4237_agenda_test.go:129
FunctionTestBootstrapAgendaLeavesOutTheRest
A resolved one-shot (it ended), a future occurrence and an item that is done are not on the agenda; the one open, past occurrence beside them is.
internal/store/schedule_bootstrap_test.go:243
FunctionTestBootstrapAgendaLimits
12 carried: 10 shown oldest first and "+2 more"; a 21-day-old one is only counted, and points at --stale; today's is listed apart.
internal/server/bootstrap_agenda_test.go:87
FunctionTestBootstrapAgendaMovedComesBackWhenDue
A moved occurrence is deferred: it is due again at its new time.
internal/store/schedule_bootstrap_test.go:96
FunctionTestBootstrapAgendaOrder
Oldest first, then by ref.
internal/store/schedule_bootstrap_test.go:290
FunctionTestBootstrapAgendaResolutionHints
(t *testing.T)
cmd/pad/bootstrap_groups_test.go:52
FunctionTestBootstrapAgendaRespectsScope
A restricted caller's scope bounds the agenda: a collection they cannot see, or an empty grant, lists nothing.
internal/store/schedule_bootstrap_test.go:261
FunctionTestBootstrapAgendaRoleWindowCountsOnceAfterMove
(t *testing.T)
internal/server/bootstrap_agenda_test.go:357
FunctionTestBootstrapAgendaRolesAndNoKind
(t *testing.T)
internal/server/bootstrap_agenda_test.go:302
FunctionTestBootstrapAgendaSkipsUnreadableSchedule
(t *testing.T)
internal/server/agenda_unreadable_test.go:9
FunctionTestBootstrapAgendaSnoozePreservesMovedTarget
A snooze changes reminder timing only; the sparse target override survives.
internal/store/schedule_bootstrap_test.go:305
FunctionTestBootstrapAgendaStaleAfterFourteenDays
Past 14 days an occurrence leaves the list and is only counted.
internal/store/schedule_bootstrap_test.go:146
← previousnext →17,501–17,600 of 28,840, ranked by callers