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
TestMigrateRelationReferents_SameWorkspaceDropsWhatDoesNot
(t *testing.T)
internal/store/relation_referents_test.go:285
Function
TestMigrateRelationReferents_SameWorkspaceKeepsWhatResolves
--- Migrate doors (PLAN-2857 U1: provenance, not door) ---
internal/store/relation_referents_test.go:264
Function
TestMigrateRelationReferents_SuppliedOverrideRefusesOnEitherMode
(t *testing.T)
internal/store/relation_referents_test.go:337
Function
TestMigrateRelationTitle_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
Function
TestMigrateScalarRelationDefault_ANonStringDefaultIsDropped
(t *testing.T)
internal/store/relation_multi_defaults_test.go:563
Function
TestMigrateScalarRelationDefault_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
Function
TestMigrateToPgPreflightRefusesAndNamesTheRepair
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
Function
TestMigrate_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
Function
TestMigratedCarriedTablesAreRefused
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
Function
TestMigratedDatabaseRefusesEveryWriteAndEveryOpen
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
Function
TestMigratedDatabaseRefusesNeedsSnoozeWrites
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
Function
TestMigratedEveryLiveTableIsClassified
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
Function
TestMigratedExcludedTablesAllExist
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
Function
TestMigratedMarkerCannotBeDisarmedOrSwallowed
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
Function
TestMigratedRefusalTablesAllExist
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
Function
TestMigratedRefusedAndExcludedAreDisjoint
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
Function
TestMigratedRemedyReadsTheMarkerIndependently
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
Function
TestMigratedReminderAckCancelsLegacyNotification
(t *testing.T)
internal/store/reminder_commitment_migration_test.go:230
Function
TestMigratedTablesCoversTheExport
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
Function
TestMigration044_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
Function
TestMigration046_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
Function
TestMigration046_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
Function
TestMigration063DropsEveryLegacyItemIdConstraint
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
Function
TestMigration063DropsPreExistingDisagreeingRows
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
Function
TestMigration086DropsPreExistingDisagreeingRows
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
Function
TestMigration093RequeuesStep2RowsForTheBackfill
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
Function
TestMigration095IsNotInThePostgresChain
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
Function
TestMigration095RecreatesAMissingTable
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
Function
TestMigration095RepairsDoubleIndexedItems
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
Function
TestMigration095ReplacesAForeignDefinition
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
Function
TestMigration095RestoresAMissingTrigger
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
Function
TestMigration103_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
Function
TestMigrationAtomicity_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
Function
TestMigrationAtomicity_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
Function
TestMigrationAtomicity_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
Function
TestMigrationAtomicity_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
Function
TestMigrationAtomicity_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
Function
TestMigrationCountsOnCopy
(t *testing.T)
internal/store/commitment_dates_migration_test.go:387
Function
TestMigrationGateAsksTheOpLogOnly
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
Function
TestMigrationGuardTestsStaySerial
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
Function
TestMigrationPlanSourceBackfill
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
Function
TestMigrationsRunUnbounded
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
Function
TestMilestoneAuthArchivedAndMissingSchedule
(t *testing.T)
internal/server/handlers_milestone_test.go:153
Function
TestMilestoneBundleJSONShapeIsAdditive
(t *testing.T)
internal/store/milestone_carry_test.go:285
Function
TestMilestoneCancelledChildNeverCounts
RED if abandoned counts as success, a waiver needs no reason, or an open or trashed child counts.
internal/store/milestone_test.go:197
Function
TestMilestoneCapsRefuseWhole
RED if a cap truncates instead of refusing, or the refusal is not a range.
internal/store/milestone_test.go:429
Function
TestMilestoneChildFromAnotherWorkspaceIsNotFound
(t *testing.T)
internal/store/milestone_test.go:454
Function
TestMilestoneChildRefsAnswerByteIdentical404
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
Function
TestMilestoneCopyAndMoveDropForecastAndChildren
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
Function
TestMilestoneEmptySelectionResultNull
(t *testing.T)
internal/store/milestone_test.go:358
Function
TestMilestoneEvidenceFlagsRemovalAndLaterCancel
(t *testing.T)
internal/store/milestone_test.go:309
Function
TestMilestoneExportImportRoundTrip
RED if export omits a member or import fails to remap or store one.
internal/store/milestone_carry_test.go:34
Function
TestMilestoneForecastWithoutTarget
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
Function
TestMilestoneGETWithHiddenChildIsUnknown
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
Function
TestMilestoneGoneEvidenceRowIsUnverifiableForReader
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
Function
TestMilestoneHTTPChildCap
Over the cap is refused whole as a range, naming the cap and no hidden count.
internal/server/handlers_milestone_test.go:214
Function
TestMilestoneHTTPHappyPath
(t *testing.T)
internal/server/handlers_milestone_test.go:34
Function
TestMilestoneHTTPValidation
(t *testing.T)
internal/server/handlers_milestone_test.go:183
Function
TestMilestoneHiddenChildIsUnknownAndLeaksNothing
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
Function
TestMilestoneImportDropsOrphanChildren
RED if an orphaned child is kept or silent: it is dropped and reported.
internal/store/milestone_carry_test.go:73
Function
TestMilestoneImportRejectsClearEventValueAndNUL
RED if a clear event's value, or a NUL in value/source, is not validated.
internal/store/milestone_carry_test.go:298
Function
TestMilestoneImportRevalidates
RED if import trusts the bundle's text.
internal/store/milestone_carry_test.go:101
Function
TestMilestoneMigrationShape
Migration shape: the partial unique index, the waiver CHECK and the PG twin.
internal/store/milestone_carry_test.go:230
Function
TestMilestoneNULGuards
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
Function
TestMilestoneNoAutoCompletion
RED if resolving, or every child succeeding, writes the milestone item's status or resolves an occurrence.
internal/store/milestone_test.go:337
Function
TestMilestonePendingAtResolveDoesNotFlag
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
Function
TestMilestoneRemoveKeepsHistory
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
Function
TestMilestoneReopenAfterCompletionFlagsEvidence
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
Function
TestMilestoneSameWorkspaceMoveKeepsForecastAndSelection
A same-workspace move keeps the item, so the forecast and selection stay.
internal/store/milestone_carry_test.go:212
Function
TestMilestoneTrashedChildIsVisibleMissingAndRemovable
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
Function
TestMilestoneTrashedChildStaysVisibleAndRemovable
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
Function
TestMilestoneV1BundleWithNewMembersIsRefused
RED if a v1 bundle carrying a new member is accepted.
internal/store/milestone_carry_test.go:131
Function
TestMinAndMaxOpLogIDEmptyAndPopulated
(t *testing.T)
internal/store/items_collab_versions_test.go:369
Function
TestMinGapMeasuresTheGapAfterTheLastRDate
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
Function
TestMinGapNeedsNoWindowForRDatesInsideTheSample
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
Function
TestMinGapRefusesAnRDateWindowItCannotRead
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
Function
TestMinGapRefusesWhenTheWalkExceedsMaxDuration
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
Function
TestMirrorConvention_ChangedKeysFlowIntoTheCopy
(t *testing.T)
internal/store/items_convention_mirror_test.go:28
Function
TestMirrorConvention_KeepsLargeIntegersExact
(t *testing.T)
internal/store/items_convention_mirror_test.go:71
Function
TestMirrorConvention_NoCopyNoChange
(t *testing.T)
internal/store/items_convention_mirror_test.go:52
Function
TestMirrorConvention_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
Function
TestMirrorConvention_ScopeAndPriorityAreTheFallbackKeys
(t *testing.T)
internal/store/items_convention_mirror_test.go:40
Function
TestMirrorConvention_UnmirroredChangeLeavesBytesAlone
(t *testing.T)
internal/store/items_convention_mirror_test.go:62
Function
TestMisdirectedHostWarnIsLoggedOncePerHost
The 421 logs its WARN through warnOncePerKey: one line for a host refused twice.
internal/server/middleware_mcp_host_test.go:34
Function
TestMissedRecordNoSnapshot
(t *testing.T)
internal/store/commitment_move_test.go:447
Function
TestMissedRowsAreBounded
Missed history is best-effort and bounded: 92 days, 500 instances, no error.
internal/store/schedule_resolve_test.go:633
Function
TestMkdirTempHoldsTheLockAcrossGC
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
Function
TestMkdirTempLeavesALockedDirAndNoStaging
What MkdirTemp leaves behind: the named directory with a held owner.lock, and no staging directory.
internal/testtmp/lock_unix_test.go:153
Function
TestMkdirTempNamesThePid
(t *testing.T)
internal/testtmp/testtmp_test.go:59
Function
TestMobileContract_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
Function
TestMobileContract_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
Function
TestMobileContract_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
Function
TestMobileContract_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
Function
TestMobileContract_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
Function
TestMonitorChatAckStopsAtUnprintedMessage
TASK-4041, DOC-4036: missing sequences still stop the fill and ack.
cmd/pad/cmd_watch_chat_test.go:550
Function
TestMonitorChatAdapterQueryShape
(t *testing.T)
cmd/pad/chat_delivery_memory_test.go:143
Function
TestMonitorChatConnectBaselineAndContiguousAck
(t *testing.T)
cmd/pad/cmd_watch_chat_test.go:574
Function
TestMonitorChatDedupeAckUsesDeliveredNotSeed
(t *testing.T)
cmd/pad/chat_delivery_memory_test.go:80
Function
TestMonitorChatDedupeRetriesFailedAck
(t *testing.T)
cmd/pad/cmd_watch_chat_test.go:379
Function
TestMonitorChatDeliveryMemoryOutlivesSeenChat
(t *testing.T)
cmd/pad/chat_delivery_memory_test.go:45
← previous
next →
21,501–21,600 of 28,840, ranked by callers