MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestMigrateRelationReferents_SameWorkspaceDropsWhatDoesNot
(t *testing.T)
internal/store/relation_referents_test.go:285
FunctionTestMigrateRelationReferents_SameWorkspaceKeepsWhatResolves
--- Migrate doors (PLAN-2857 U1: provenance, not door) ---
internal/store/relation_referents_test.go:264
FunctionTestMigrateRelationReferents_SuppliedOverrideRefusesOnEitherMode
(t *testing.T)
internal/store/relation_referents_test.go:337
FunctionTestMigrateRelationTitle_CarriedValueIgnoresTheMoversVisibility
TestMigrateRelationTitle_CarriedValueIgnoresTheMoversVisibility is this file's own standing argument, as a test. A CARRIED value was asserted by nobo
internal/store/relation_titles_test.go:372
FunctionTestMigrateScalarRelationDefault_ANonStringDefaultIsDropped
(t *testing.T)
internal/store/relation_multi_defaults_test.go:563
FunctionTestMigrateScalarRelationDefault_AWellFormedDefaultSurvives
The SCALAR arm of the migrate default bucket, which nothing covered. Found by a surviving mutant, not by reading: applying the strict list reader to
internal/store/relation_multi_defaults_test.go:542
FunctionTestMigrateToPgPreflightRefusesAndNamesTheRepair
TestMigrateToPgPreflightRefusesAndNamesTheRepair covers the preflight's whole contract: it refuses, it names the rows, it names the command, and — the
cmd/pad/cmd_db_nul_test.go:60
FunctionTestMigrate_RefusesSchemaAheadDB
TestMigrate_RefusesSchemaAheadDB is the end-to-end guard: a DB carrying a migration this binary doesn't ship must fail New(), and must succeed once th
internal/store/migration_guard_test.go:88
FunctionTestMigratedCarriedTablesAreRefused
A table the migration copies is also one whose writes the abandoned SQLite file must refuse afterwards: copied rows live in PostgreSQL, so a later wri
internal/store/nulmigrated_test.go:97
FunctionTestMigratedDatabaseRefusesEveryWriteAndEveryOpen
TestMigratedDatabaseRefusesEveryWriteAndEveryOpen is GO condition (b), plus the breadth of the trigger population. TWO LEGS, AND THE SPLIT IS FORCED
internal/store/migrated_test.go:169
FunctionTestMigratedDatabaseRefusesNeedsSnoozeWrites
TestMigratedDatabaseRefusesNeedsSnoozeWrites names item_needs_snoozes (TASK-3918) through the store's own write path. The per-verb and structural legs
internal/store/migrated_test.go:615
FunctionTestMigratedEveryLiveTableIsClassified
BUG-3958: TestMigratedRefusalTablesAllExist checks listed => exists, never exists => classified, which is how workspace_read_cursors and app_installs
internal/store/bug3958_migrated_census_test.go:14
FunctionTestMigratedExcludedTablesAllExist
An exclusion naming a table that no longer exists is stale prose in code. The marker table is created by the migration, not by store.New, so it is the
internal/store/bug3958_migrated_census_test.go:73
FunctionTestMigratedMarkerCannotBeDisarmedOrSwallowed
TestMigratedMarkerCannotBeDisarmedOrSwallowed covers the two arms of migratedRemedyIfMarked that no other test reaches, and that both fail in the same
internal/store/migrated_test.go:482
FunctionTestMigratedRefusalTablesAllExist
TestMigratedRefusalTablesAllExist keeps the population honest against the live schema. A name in that list that is not a table produces NO trigger an
internal/store/migrated_test.go:376
FunctionTestMigratedRefusedAndExcludedAreDisjoint
The two lists must not overlap: a table both refused and excluded means someone classified it twice and one of the reasons is wrong.
internal/store/bug3958_migrated_census_test.go:58
FunctionTestMigratedRemedyReadsTheMarkerIndependently
TestMigratedRemedyReadsTheMarkerIndependently covers the accessor the command uses to resolve a FAILED COMMIT, where it cannot know whether its own ma
internal/store/migrated_test.go:557
FunctionTestMigratedReminderAckCancelsLegacyNotification
(t *testing.T)
internal/store/reminder_commitment_migration_test.go:230
FunctionTestMigratedTablesCoversTheExport
TestMigratedTablesCoversTheExport pins MigratedTables against the export's own SHAPE rather than against a reading of its SQL. The preflight refuses
internal/store/nulmigrated_test.go:23
FunctionTestMigration044_BackfillProducesRFC3339
TestMigration044_BackfillParsesCorrectly ensures the SQLite/Postgres backfill writes expires_at in a shape that parseTime can round-trip. The first cu
internal/store/invitation_test.go:64
FunctionTestMigration046_DocumentsFTSTriggersExist
TestMigration046_DocumentsFTSTriggersExist verifies that after all migrations run on a fresh DB, the three documents_* triggers are present. This regr
internal/store/items_test.go:1935
FunctionTestMigration046_RebuildRecoversUnindexedDocs
TestMigration046_RebuildRecoversUnindexedDocs pins the *recovery* half of migration 046 — the part that rescues already-broken DBs. We simulate the pr
internal/store/items_test.go:1965
FunctionTestMigration063DropsEveryLegacyItemIdConstraint
TestMigration063DropsEveryLegacyItemIdConstraint exercises the LOOP in 063's DO block, which the repair-pass test above cannot: that fixture carries o
internal/store/reminder_workspace_constraint_test.go:328
FunctionTestMigration063DropsPreExistingDisagreeingRows
TestMigration063DropsPreExistingDisagreeingRows is the Postgres counterpart. The two halves repair by different means — SQLite filters the rebuild's c
internal/store/reminder_workspace_constraint_test.go:238
FunctionTestMigration086DropsPreExistingDisagreeingRows
TestMigration086DropsPreExistingDisagreeingRows exercises the migration's repair pass against the shape it was written for: a database that already ho
internal/store/reminder_workspace_constraint_test.go:116
FunctionTestMigration093RequeuesStep2RowsForTheBackfill
Rows classified under migration 091's rule keep that verdict until something re-examines them. Migration 093 re-queues them; the startup backfill then
internal/store/bug3136_step2_twin_test.go:173
FunctionTestMigration095IsNotInThePostgresChain
The repair is SQLite-only by construction: it lives in the SQLite chain, and Postgres migrates from pgmigrations/, which does not carry it. The second
internal/store/migration_095_items_fts_test.go:196
FunctionTestMigration095RecreatesAMissingTable
A damaged database with no items_fts at all used to be a startup failure for a bare 'rebuild' (the migration errors and is not recorded). 095 creates
internal/store/migration_095_items_fts_test.go:113
FunctionTestMigration095RepairsDoubleIndexedItems
BUG-2758. Migration 095 repairs the duplicate items_fts postings a workspace import used to leave behind. The fixture reproduces that state the way th
internal/store/migration_095_items_fts_test.go:16
FunctionTestMigration095ReplacesAForeignDefinition
An items_fts with ANOTHER definition is replaced rather than kept. A contentless table is the sharp case: FTS5 refuses 'rebuild' on one, so an IF NOT
internal/store/migration_095_items_fts_test.go:149
FunctionTestMigration095RestoresAMissingTrigger
A database that lost one of the three triggers (a state validateFTSInvariants only warns about) is maintained again after 095: a rebuild alone would r
internal/store/migration_095_items_fts_test.go:67
FunctionTestMigration103_BackfillsTheCreateMarker
The migration's backfill marks a legacy create row: the first row sharing the item's created_at. Run against rows whose marker was cleared.
internal/store/plan2348_u2_versions_test.go:142
FunctionTestMigrationAtomicity_FailedPostgres_RollsBackPartialDDLAndBookkeeping
TestMigrationAtomicity_FailedPostgres_RollsBackPartialDDLAndBookkeeping is the Postgres counterpart to the SQLite atomicity test. It only runs when PA
internal/store/migration_atomicity_test.go:253
FunctionTestMigrationAtomicity_FailedSQLite_RestoresForeignKeysOnError
TestMigrationAtomicity_FailedSQLite_RestoresForeignKeysOnError guards the case where once `PRAGMA foreign_keys = OFF` lands on the pinned migration co
internal/store/migration_atomicity_test.go:311
FunctionTestMigrationAtomicity_FailedSQLite_RollsBackPartialDDLAndBookkeeping
TestMigrationAtomicity_FailedSQLite_RollsBackPartialDDLAndBookkeeping guards the IDEA-1485 atomicity guarantee for SQLite migrations: when a multi-sta
internal/store/migration_atomicity_test.go:26
FunctionTestMigrationAtomicity_PragmaForeignKeysLifted
TestMigrationAtomicity_PragmaForeignKeysLifted exercises the PRAGMA-detection branch: a migration with `PRAGMA foreign_keys = OFF/ON` must succeed AND
internal/store/migration_atomicity_test.go:134
FunctionTestMigrationAtomicity_SuccessfulSQLite_RecordsBookkeeping
TestMigrationAtomicity_SuccessfulSQLite_RecordsBookkeeping is the positive control: a normal multi-statement migration commits both the DDL and the sc
internal/store/migration_atomicity_test.go:82
FunctionTestMigrationCountsOnCopy
(t *testing.T)
internal/store/commitment_dates_migration_test.go:387
FunctionTestMigrationGateAsksTheOpLogOnly
The migrate-to-pg gate asks about the OP-LOG only. Set-aside rows travel in the bundle, so an item holding only those is not refused; an item holding
internal/store/bug3244_set_aside_test.go:170
FunctionTestMigrationGuardTestsStaySerial
TestMigrationGuardTestsStaySerial is the same guard for the other file whose tests mutate package globals — store.AllowSchemaAhead and store.BinaryVer
internal/store/cascade_serial_guard_test.go:92
FunctionTestMigrationPlanSourceBackfill
The migration's backfill marks a pro user with a Stripe customer as stripe-sourced, so their Stripe cancellation still lowers them. The statement is t
internal/store/plan_source_test.go:166
FunctionTestMigrationsRunUnbounded
NewPostgres must stay unbounded whatever the environment says: the bound is applied by the server only after the startup sequence, never by the constr
internal/store/runtime_pool_test.go:295
FunctionTestMilestoneAuthArchivedAndMissingSchedule
(t *testing.T)
internal/server/handlers_milestone_test.go:153
FunctionTestMilestoneBundleJSONShapeIsAdditive
(t *testing.T)
internal/store/milestone_carry_test.go:285
FunctionTestMilestoneCancelledChildNeverCounts
RED if abandoned counts as success, a waiver needs no reason, or an open or trashed child counts.
internal/store/milestone_test.go:197
FunctionTestMilestoneCapsRefuseWhole
RED if a cap truncates instead of refusing, or the refusal is not a range.
internal/store/milestone_test.go:429
FunctionTestMilestoneChildFromAnotherWorkspaceIsNotFound
(t *testing.T)
internal/store/milestone_test.go:454
FunctionTestMilestoneChildRefsAnswerByteIdentical404
RED if a child ref's answer depends on whether it exists or may be read, or if validation runs before the visibility gate.
internal/server/handlers_milestone_test.go:69
FunctionTestMilestoneCopyAndMoveDropForecastAndChildren
RED if the carry drops silently or counts hidden children; a copy and a cross-workspace move report on preview and commit alike.
internal/store/milestone_carry_test.go:161
FunctionTestMilestoneEmptySelectionResultNull
(t *testing.T)
internal/store/milestone_test.go:358
FunctionTestMilestoneEvidenceFlagsRemovalAndLaterCancel
(t *testing.T)
internal/store/milestone_test.go:309
FunctionTestMilestoneExportImportRoundTrip
RED if export omits a member or import fails to remap or store one.
internal/store/milestone_carry_test.go:34
FunctionTestMilestoneForecastWithoutTarget
RED if a forecast requires a target (here the schedule has none beyond the legacy zero offset) or the write touches the roles.
internal/store/milestone_test.go:171
FunctionTestMilestoneGETWithHiddenChildIsUnknown
The reader never learns a hidden child's ref, kind or state; the answer is the same whether it is open or done.
internal/server/handlers_milestone_test.go:116
FunctionTestMilestoneGoneEvidenceRowIsUnverifiableForReader
RED if a hard-deleted evidence child skips the reader's visibility check: the reader's answer would move from unknown/null to a result.
internal/store/milestone_test.go:507
FunctionTestMilestoneHTTPChildCap
Over the cap is refused whole as a range, naming the cap and no hidden count.
internal/server/handlers_milestone_test.go:214
FunctionTestMilestoneHTTPHappyPath
(t *testing.T)
internal/server/handlers_milestone_test.go:34
FunctionTestMilestoneHTTPValidation
(t *testing.T)
internal/server/handlers_milestone_test.go:183
FunctionTestMilestoneHiddenChildIsUnknownAndLeaksNothing
RED if a hidden child is counted, listed, or distinguishable by state, and if the reader's answer moves when the hidden child reopens.
internal/store/milestone_test.go:373
FunctionTestMilestoneImportDropsOrphanChildren
RED if an orphaned child is kept or silent: it is dropped and reported.
internal/store/milestone_carry_test.go:73
FunctionTestMilestoneImportRejectsClearEventValueAndNUL
RED if a clear event's value, or a NUL in value/source, is not validated.
internal/store/milestone_carry_test.go:298
FunctionTestMilestoneImportRevalidates
RED if import trusts the bundle's text.
internal/store/milestone_carry_test.go:101
FunctionTestMilestoneMigrationShape
Migration shape: the partial unique index, the waiver CHECK and the PG twin.
internal/store/milestone_carry_test.go:230
FunctionTestMilestoneNULGuards
RED if a NUL reaches a free-text column: the write door and the triggers both refuse it.
internal/store/milestone_carry_test.go:261
FunctionTestMilestoneNoAutoCompletion
RED if resolving, or every child succeeding, writes the milestone item's status or resolves an occurrence.
internal/store/milestone_test.go:337
FunctionTestMilestonePendingAtResolveDoesNotFlag
RED if being pending at resolve sets the flag; a pending child that later succeeds, a removal and a later cancel do.
internal/store/milestone_test.go:290
FunctionTestMilestoneRemoveKeepsHistory
Removing keeps history; selecting again is a new row; the partial unique index allows exactly one active row per child.
internal/store/milestone_test.go:470
FunctionTestMilestoneReopenAfterCompletionFlagsEvidence
RED if completion is stored in place of derived, the snapshot is not taken at resolve, or a reopen flips the milestone back.
internal/store/milestone_test.go:247
FunctionTestMilestoneSameWorkspaceMoveKeepsForecastAndSelection
A same-workspace move keeps the item, so the forecast and selection stay.
internal/store/milestone_carry_test.go:212
FunctionTestMilestoneTrashedChildIsVisibleMissingAndRemovable
A trashed child read by a reader who could read it is a normal visible child that is missing, does not count, and can still be removed.
internal/store/milestone_test.go:542
FunctionTestMilestoneTrashedChildStaysVisibleAndRemovable
A trashed selected child stays a visible, missing, removable child; PUT still refuses it, and an unreadable trashed ref answers the same 404.
internal/server/handlers_milestone_test.go:240
FunctionTestMilestoneV1BundleWithNewMembersIsRefused
RED if a v1 bundle carrying a new member is accepted.
internal/store/milestone_carry_test.go:131
FunctionTestMinAndMaxOpLogIDEmptyAndPopulated
(t *testing.T)
internal/store/items_collab_versions_test.go:369
FunctionTestMinGapMeasuresTheGapAfterTheLastRDate
The gap AFTER the last RDATE is measured too. The only RDATE sits one minute before a rule instant, past the 2000th occurrence; the sample must read o
internal/schedule/partial_test.go:143
FunctionTestMinGapNeedsNoWindowForRDatesInsideTheSample
RDATEs inside the sampled range are already in the merged stream the sample reads, so they need no window of their own: a schedule with 1000 RDATEs cl
internal/schedule/partial_test.go:127
FunctionTestMinGapRefusesAnRDateWindowItCannotRead
An RDATE window MinGap cannot read is an error, never a silent pass: the floor would otherwise depend on how slow the walk to that RDATE was. A rule t
internal/schedule/partial_test.go:112
FunctionTestMinGapRefusesWhenTheWalkExceedsMaxDuration
The walk enforces MaxDuration between yields (merger.next), and MinGap, which walks the sample with the caller's limits, refuses a schedule it cannot
internal/schedule/partial_test.go:157
FunctionTestMirrorConvention_ChangedKeysFlowIntoTheCopy
(t *testing.T)
internal/store/items_convention_mirror_test.go:28
FunctionTestMirrorConvention_KeepsLargeIntegersExact
(t *testing.T)
internal/store/items_convention_mirror_test.go:71
FunctionTestMirrorConvention_NoCopyNoChange
(t *testing.T)
internal/store/items_convention_mirror_test.go:52
FunctionTestMirrorConvention_ReasonDoesNotEmbedLowerLevelError
The Reason is caller-safe authored text: it never embeds the lower-level validator's error string (TASK-4278).
internal/store/items_convention_mirror_test.go:86
FunctionTestMirrorConvention_ScopeAndPriorityAreTheFallbackKeys
(t *testing.T)
internal/store/items_convention_mirror_test.go:40
FunctionTestMirrorConvention_UnmirroredChangeLeavesBytesAlone
(t *testing.T)
internal/store/items_convention_mirror_test.go:62
FunctionTestMisdirectedHostWarnIsLoggedOncePerHost
The 421 logs its WARN through warnOncePerKey: one line for a host refused twice.
internal/server/middleware_mcp_host_test.go:34
FunctionTestMissedRecordNoSnapshot
(t *testing.T)
internal/store/commitment_move_test.go:447
FunctionTestMissedRowsAreBounded
Missed history is best-effort and bounded: 92 days, 500 instances, no error.
internal/store/schedule_resolve_test.go:633
FunctionTestMkdirTempHoldsTheLockAcrossGC
MkdirTemp holds the lock for the life of the process. A *os.File nobody references is closed by its finalizer, which would release the lock at the nex
internal/testtmp/lock_unix_test.go:135
FunctionTestMkdirTempLeavesALockedDirAndNoStaging
What MkdirTemp leaves behind: the named directory with a held owner.lock, and no staging directory.
internal/testtmp/lock_unix_test.go:153
FunctionTestMkdirTempNamesThePid
(t *testing.T)
internal/testtmp/testtmp_test.go:59
FunctionTestMobileContract_AttachmentDispositionCarriesAFilename
TestMobileContract_AttachmentDispositionCarriesAFilename pins the header form on BOTH dispositions (BUG-2910). The shells parse the filename out of Co
internal/server/mobile_contract_test.go:201
FunctionTestMobileContract_AuthRoutesExist
TestMobileContract_AuthRoutesExist walks the real route table rather than firing requests: a request-based check answers "did something handle this",
internal/server/mobile_contract_test.go:78
FunctionTestMobileContract_SessionCookieNames
TASK-2053. The native shells in ~/Dev/pad-mobile talk to this server over a handful of UNVERSIONED string contracts — route paths, cookie names, JSON
internal/server/mobile_contract_test.go:63
FunctionTestMobileContract_SessionPayloadKeys
TestMobileContract_SessionPayloadKeys pins the keys the shells branch on before showing any UI. A renamed key here reads on a phone as a blank screen
internal/server/mobile_contract_test.go:112
FunctionTestMobileContract_TwoFactorLoginRoundTrip
TestMobileContract_TwoFactorLoginRoundTrip is the contract with the most moving parts and the least coverage: before this file, `requires_2fa`, `chall
internal/server/mobile_contract_test.go:141
FunctionTestMonitorChatAckStopsAtUnprintedMessage
TASK-4041, DOC-4036: missing sequences still stop the fill and ack.
cmd/pad/cmd_watch_chat_test.go:550
FunctionTestMonitorChatAdapterQueryShape
(t *testing.T)
cmd/pad/chat_delivery_memory_test.go:143
FunctionTestMonitorChatConnectBaselineAndContiguousAck
(t *testing.T)
cmd/pad/cmd_watch_chat_test.go:574
FunctionTestMonitorChatDedupeAckUsesDeliveredNotSeed
(t *testing.T)
cmd/pad/chat_delivery_memory_test.go:80
FunctionTestMonitorChatDedupeRetriesFailedAck
(t *testing.T)
cmd/pad/cmd_watch_chat_test.go:379
FunctionTestMonitorChatDeliveryMemoryOutlivesSeenChat
(t *testing.T)
cmd/pad/chat_delivery_memory_test.go:45
← previousnext →21,501–21,600 of 28,840, ranked by callers