MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestGatePopulationEqualsTheBundlesMarkedPopulation
The gate and the bundle must agree about WHICH rows are stale, or the migration passes while the bundle it is about to write carries a stale body. The
internal/store/export_content_state_test.go:182
FunctionTestGateReadsWorkWithOneConnection
(t *testing.T)
internal/store/commitment_gates_outcome_test.go:489
FunctionTestGateStoresTheBlockersOutstandingOccurrenceKey
The blocker's outstanding occurrence is fixed at creation and stored as its key.
internal/store/commitment_gates_test.go:245
FunctionTestGateUnflushedEditsPassesACleanMigrationSilently
(t *testing.T)
cmd/pad/cmd_db_unflushed_test.go:30
FunctionTestGateUnflushedEditsRefusesAndNamesEveryAffectedItem
(t *testing.T)
cmd/pad/cmd_db_unflushed_test.go:44
FunctionTestGateUnflushedEditsUnderTheFlagProceedsButRecordsTheLoss
(t *testing.T)
cmd/pad/cmd_db_unflushed_test.go:86
FunctionTestGateWriteAgainstACascadeDoesNotDeadlock
A gate write against a cascade of the blocker's own links: the cascade holds the blocker item and the gate write holds the gated item, each waiting fo
internal/store/commitment_gates_pg_test.go:55
FunctionTestGateWriteAgainstAResolveOfTheBlockerDoesNotDeadlock
A gate write against a resolve of its BLOCKER: the resolve holds the blocker item and waits for the workspace; the gate write holds the gated item and
internal/store/commitment_gates_pg_test.go:95
FunctionTestGateWriteAgainstAResolveOfTheGatedChildDoesNotDeadlock
A gate write against a resolve of the gated child: both want the child item row, the gate write as its root, and the pin takes it first.
internal/store/commitment_gates_pg_test.go:76
FunctionTestGateWriteAnswersOneNotFoundForAnyEndTheCallerCannotUse
A missing, unreadable, soft-deleted or other-workspace end all answer the one ErrScheduleLinkNotFound value, so the answer cannot say which it was.
internal/store/commitment_gates_test.go:82
FunctionTestGateWriteNeedsEditOnBothEnds
(t *testing.T)
internal/store/commitment_gates_test.go:41
FunctionTestGateWritesWorkWithOneConnection
A gate write is one transaction behind the pin: the SQLite one-connection rule (no pool query inside it) holds.
internal/store/commitment_gates_test.go:321
FunctionTestGatesAreRefusedForSelfDuplicateAndCycle
(t *testing.T)
internal/store/commitment_gates_test.go:171
FunctionTestGateway_ErrorsNeverCarrySecretOrToken
(t *testing.T)
internal/notify/gateway_test.go:173
FunctionTestGateway_LocalBatchRules
(t *testing.T)
internal/notify/gateway_test.go:150
FunctionTestGateway_NoSecretOrTokenInErrorsOrLogs
A pin, not a kill (TASK-3939): Send logs nothing and puts no response body in its errors today, so this passes by construction. It guards the invarian
internal/notify/gateway_test.go:235
FunctionTestGateway_Non200BodyIsDrained
Kills (TASK-3939): closing a non-200 body without draining it. Loopback buffers hide an early close from the server, so this asserts the observable ef
internal/notify/gateway_test.go:299
FunctionTestGateway_RedirectNotFollowed_SecretNotForwarded
(t *testing.T)
internal/notify/gateway_test.go:88
FunctionTestGateway_RequestShapeAndHeader
(t *testing.T)
internal/notify/gateway_test.go:39
FunctionTestGateway_ResponseBodyCapped
(t *testing.T)
internal/notify/gateway_test.go:139
FunctionTestGateway_ResultValidation
(t *testing.T)
internal/notify/gateway_test.go:109
FunctionTestGateway_WholeRequestStatusMapping
(t *testing.T)
internal/notify/gateway_test.go:65
FunctionTestGenerateLegacySkillHashes
TestGenerateLegacySkillHashes regenerates skill_legacy_hashes.go: the hash of every skill text a pad release wrote, per output format, before skill fi
internal/cli/skill_legacy_hashes_gen_test.go:32
FunctionTestGenerateNULTriggerMigration
TestGenerateNULTriggerMigration regenerates the Layer B migration from the shared column list. It is a TEST rather than a deleted scratch script: the
internal/store/nultriggers_gen_test.go:20
FunctionTestGenerateRecoveryCodes_EntropyShape
TestGenerateRecoveryCodes_EntropyShape asserts that recovery codes are the 16-char base32 form expected by TASK-658 (10 bytes / 80 bits of entropy, un
internal/server/handlers_2fa_recovery_test.go:31
FunctionTestGenericBootstrapIncludeIsBudgeted
TestGenericBootstrapIncludeIsBudgeted locks the SPEC-0 L4 boot budget on the generic include path. Without a cap, one declaration — bodies mode, no fi
internal/server/handlers_collection_traits_test.go:390
FunctionTestGenericInternalErrorStillClassifiesAsServerError
TestGenericInternalErrorStillClassifiesAsServerError is the negative control for the test above, and the measurement of the defect itself. Without it
internal/mcp/collection_refusal_classification_test.go:63
FunctionTestGetBacklinks_ExcludesSourcesFromSoftDeletedCollections
BUG-3344: a soft-deleted COLLECTION leaves its items live (deleted_at is set on the collection row only), so the wiki backlink queries, which checked
internal/store/bug3344_backlinks_deleted_collection_test.go:17
FunctionTestGetBillingConfig_SendsTheSecretAndFailsOnNon200
(t *testing.T)
internal/billing/offer_test.go:145
FunctionTestGetBillingMetrics_HappyPath
(t *testing.T)
internal/billing/cloud_client_test.go:23
FunctionTestGetBillingMetrics_MalformedJSON
(t *testing.T)
internal/billing/cloud_client_test.go:162
FunctionTestGetBillingMetrics_NilClient
(t *testing.T)
internal/billing/cloud_client_test.go:148
FunctionTestGetBillingMetrics_NonOK_ReturnsSidecarError
(t *testing.T)
internal/billing/cloud_client_test.go:98
FunctionTestGetBillingMetrics_ServerError
(t *testing.T)
internal/billing/cloud_client_test.go:117
FunctionTestGetBillingMetrics_StripeNotConfigured
(t *testing.T)
internal/billing/cloud_client_test.go:81
FunctionTestGetBillingMetrics_TransportError
(t *testing.T)
internal/billing/cloud_client_test.go:130
FunctionTestGetBillingMetrics_UnconfiguredClient
(t *testing.T)
internal/billing/cloud_client_test.go:155
FunctionTestGetBlocksEdges
(t *testing.T)
internal/store/dashboard_batch_test.go:126
FunctionTestGetBlocksEdgesExcludesDeleted
(t *testing.T)
internal/store/dashboard_batch_test.go:163
FunctionTestGetBlocksEdges_CarriesTheTarget
(t *testing.T)
internal/store/needs_scoring_test.go:220
FunctionTestGetBlocksEdges_ExcludesSoftDeletedCollections
(t *testing.T)
internal/store/bug3434_relationship_reads_test.go:123
FunctionTestGetChildItemsForParents
(t *testing.T)
internal/store/dashboard_batch_test.go:32
FunctionTestGetChildItemsForParentsEmpty
(t *testing.T)
internal/store/dashboard_batch_test.go:114
FunctionTestGetChildItemsForParentsExcludesDeleted
(t *testing.T)
internal/store/dashboard_batch_test.go:86
FunctionTestGetChildItemsTx_ExcludesSoftDeletedCollections
The open-children guard reads children through GetChildItemsTx. (BUG-3428 phase 2): an open child in a soft-deleted collection no longer blocks closin
internal/store/bug3428_deleted_collection_reads_test.go:168
FunctionTestGetCommitmentJournalRowsAndNoSchedule
(t *testing.T)
internal/store/commitment_c1_test.go:131
FunctionTestGetCommitmentLegacyBackfillMatchesLegacyRoles
(t *testing.T)
internal/store/commitment_c1_test.go:75
FunctionTestGetCommitmentMoveAndAssigneeJournal
(t *testing.T)
internal/store/commitment_reader_test.go:8
FunctionTestGetCommitmentNativeReadsColumnsAndOverrides
(t *testing.T)
internal/store/commitment_c1_test.go:107
FunctionTestGetCommitmentRoleOffsetsEnded
(t *testing.T)
internal/store/commitment_role_offsets_test.go:91
FunctionTestGetCommitmentRoleOffsetsLegacy
(t *testing.T)
internal/store/commitment_role_offsets_test.go:56
FunctionTestGetCommitmentRoleOffsetsNative
(t *testing.T)
internal/store/commitment_role_offsets_test.go:15
FunctionTestGetCrossWorkspaceBacklinks_ExcludesSourcesFromSoftDeletedCollections
(t *testing.T)
internal/store/bug3344_backlinks_deleted_collection_test.go:92
FunctionTestGetInvitationByCode_SoftDeletedWorkspace
TestGetInvitationByCode_SoftDeletedWorkspace is BUG-3104's reproduction. DeleteAccountAtomic soft-deletes the departing owner's workspaces but remove
internal/store/invitation_deleted_workspace_test.go:20
FunctionTestGetItemIncludesCodeContext
(t *testing.T)
internal/server/handlers_items_test.go:762
FunctionTestGetItemIncludesConventionMetadata
(t *testing.T)
internal/server/handlers_items_test.go:837
FunctionTestGetItemIncludesDerivedClosureForImplementedItems
(t *testing.T)
internal/server/handlers_items_test.go:714
FunctionTestGetItemIncludesDerivedClosureForSupersededItems
(t *testing.T)
internal/server/handlers_items_test.go:609
FunctionTestGetItemIncludesDerivedClosureWhenSplitChildrenAreDone
(t *testing.T)
internal/server/handlers_items_test.go:660
FunctionTestGetItemIncludesStructuredNotes
(t *testing.T)
internal/server/handlers_items_test.go:798
FunctionTestGetItemLease_ExpiredReadsAsAbsent
GetItemLease returns nil for absent AND for expired leases — expiry is absence on every read path.
internal/store/item_lease_test.go:139
FunctionTestGetItemLineageByIDs
TestGetItemLineageByIDs covers the skinny batch parent-lineage fetch that replaced the per-parent GetItem N+1 in enrichItemsWithParent (BUG-2003): a s
internal/store/items_test.go:1455
FunctionTestGetItemLinksIncludesEnrichedMetadata
(t *testing.T)
internal/server/handlers_item_links_test.go:116
FunctionTestGetItemLinks_ExcludesSoftDeletedCollections
(t *testing.T)
internal/store/bug3434_relationship_reads_test.go:42
FunctionTestGetItemPassesThroughOtherErrors
TestGetItemPassesThroughOtherErrors makes sure the wrapper only special-cases "not_found": any other API error (e.g. a 500) reaches the caller unchang
internal/cli/item_notfound_test.go:102
FunctionTestGetItemProgress_DefaultsToStatusWithoutSettings
TestGetItemProgress_DefaultsToStatusWithoutSettings verifies back-compat: a collection without board_group_by (i.e. shipped today) should have its `st
internal/store/done_field_test.go:114
FunctionTestGetItemProgress_DoneFieldFollowsBoardGroupBy
TestGetItemProgress_DoneFieldFollowsBoardGroupBy verifies the core TASK-604 acceptance criterion: when a child collection's settings.board_group_by po
internal/store/done_field_test.go:14
FunctionTestGetItemProgress_HonorsSoftDeletedChildCollections
TestGetItemProgress_HonorsSoftDeletedChildCollections verifies a regression: a child whose collection was soft-deleted must never be counted as ACTIVE
internal/store/done_field_test.go:173
FunctionTestGetItemProgress_MixedChildCollections
TestGetItemProgress_MixedChildCollections verifies that when children come from multiple collections with different done-field configurations, each ch
internal/store/done_field_test.go:229
FunctionTestGetItemVersionDiff_PairsEachRowWithItsOwnChange
(t *testing.T)
internal/store/plan2348_u2_versions_test.go:105
FunctionTestGetItemVersionDiff_RefusesABrokenChain
A body the chain walk cannot reconstruct is refused, never served as one side of a diff.
internal/store/plan2348_u2_versions_test.go:217
FunctionTestGetItemWrapsNotFound
TestGetItemWrapsNotFound verifies TASK-2031b: a bare "not_found" APIError from the item-by-ref endpoint is rewritten to echo the failing ref and works
internal/cli/item_notfound_test.go:35
FunctionTestGetItem_AdminBearer_RestrictedMemberBlockedOnHiddenCollection
TestGetItem_AdminBearer_RestrictedMemberBlockedOnHiddenCollection pins the read-path side of BUG-1918: checkItemVisible's unconditional admin bypass p
internal/server/handlers_items_test.go:2635
FunctionTestGetItemsByIDsIncludeDeleted
(t *testing.T)
internal/store/dashboard_batch_test.go:186
FunctionTestGetItemsByIDsIncludeDeletedEmpty
(t *testing.T)
internal/store/dashboard_batch_test.go:225
FunctionTestGetNotificationForUser
Kills: dropping `user_id = ?` (another user reads the row).
internal/store/task3939_push_dispatch_test.go:543
FunctionTestGetParentForItem_HidesSoftDeletedParent
TestGetParentForItem_HidesSoftDeletedParent ensures lineage / breadcrumb queries don't surface a soft-deleted ancestor. See BUG-734.
internal/store/items_test.go:1241
FunctionTestGetParentMap_ExcludesSoftDeletedEndpoints
TestGetParentMap_ExcludesSoftDeletedEndpoints covers the dashboard orphan-detection path: a task whose parent has been soft-deleted should NOT appear
internal/store/items_test.go:1392
FunctionTestGetReminderIsWorkspaceScoped
TestGetReminderIsWorkspaceScoped. An unscoped lookup would answer "does this id exist" for every workspace on the instance. MUTANT: dropping `AND wor
internal/store/reminders_test.go:520
FunctionTestGetReport_CollectionFilter
(t *testing.T)
internal/store/reports_test.go:126
FunctionTestGetReport_CompletedItems
(t *testing.T)
internal/store/reports_test.go:531
FunctionTestGetReport_CompletedItemsRespectsCurrentCollectionVisibility
(t *testing.T)
internal/store/reports_test.go:587
FunctionTestGetReport_CycleTime
(t *testing.T)
internal/store/reports_test.go:291
FunctionTestGetReport_DayWindowBucketsByHour
(t *testing.T)
internal/store/reports_test.go:266
FunctionTestGetReport_DeclaredAbandonedOptionNotCompleted
BUG-2347: report throughput takes "abandoned" from the collection's own abandoned_options, through the same resolver as the changelog. "overturned" is
internal/store/reports_test.go:763
FunctionTestGetReport_DefaultExcludesSystemCollections
BUG-2410: a default report excludes SYSTEM collections, keyed on IsSystem. The fixture is built so that a rule keyed on slugs would fail both ways: th
internal/store/reports_test.go:861
FunctionTestGetReport_DisabledConventionNotCompleted
(t *testing.T)
internal/store/reports_test.go:720
FunctionTestGetReport_EmptyScopeWellFormedJSON
(t *testing.T)
internal/store/reports_test.go:374
FunctionTestGetReport_ExcludesOutOfWindow
(t *testing.T)
internal/store/reports_test.go:245
FunctionTestGetReport_NegativeTerminalNotCompleted
(t *testing.T)
internal/store/reports_test.go:76
FunctionTestGetReport_NonStatusDoneField
(t *testing.T)
internal/store/reports_test.go:212
FunctionTestGetReport_OffsetShiftsWindow
(t *testing.T)
internal/store/reports_test.go:398
FunctionTestGetReport_ScopeToVisibleExcludesHidden
(t *testing.T)
internal/store/reports_test.go:177
FunctionTestGetReport_SoftDeletedExcludedFromCompleted
(t *testing.T)
internal/store/reports_test.go:147
FunctionTestGetReport_StatusDistribution
(t *testing.T)
internal/store/reports_test.go:100
FunctionTestGetReport_TZ_HalfHourZoneUsesMinutes
(t *testing.T)
internal/store/reports_tz_test.go:63
FunctionTestGetReport_TZ_LateEveningLandsOnItsLocalDay
(t *testing.T)
internal/store/reports_tz_test.go:31
FunctionTestGetReport_TZ_MonthAcrossDSTChange
(t *testing.T)
internal/store/reports_tz_test.go:88
FunctionTestGetReport_ThroughputAndTotals
(t *testing.T)
internal/store/reports_test.go:30
FunctionTestGetReport_WIPAndAging
(t *testing.T)
internal/store/reports_test.go:316
← previousnext →19,901–20,000 of 28,840, ranked by callers