MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestInvitationEmailBinding
BUG-3282: both entry points must compare the lowercase address bytes, without EqualFold's additional equivalences (notably long s and ASCII s).
internal/server/handlers_invitation_email_test.go:31
FunctionTestInvitationEmailMatches
(t *testing.T)
internal/server/handlers_invitation_email_test.go:10
FunctionTestInvitationRegistrationFlow
(t *testing.T)
internal/server/handlers_auth_test.go:405
FunctionTestInvitationSignup_MemberAddAckLoss_KeepsTheAccountAndSucceeds
SIGNUP ACK LOSS — the membership committed and reported failure anyway. Deleting the account here destroys a signup that worked, which is the BUG-3026
internal/server/workspace_owner_compensation_test.go:543
FunctionTestInvitationSignup_MemberAddFails_RefusesAndLeavesTheInvitationRedeemable
(t *testing.T)
internal/server/workspace_owner_compensation_test.go:265
FunctionTestInvitationSignup_MemberAddFails_RollsTheAccountBack
THE ACCOUNT GOES BACK TOO. Leaving the invitation open is only half a recoverable state: the account persists holding the email, so the retry the refu
internal/server/workspace_owner_compensation_test.go:511
FunctionTestInvitationSignup_MembershipUnreadable_RefusesButKeepsTheAccount
SIGNUP, MEMBERSHIP UNREADABLE — absence and ack-loss are indistinguishable, so the account must NOT be deleted on the ambiguity, and the door must sti
internal/server/workspace_owner_compensation_test.go:599
FunctionTestInvitationSignup_NoFault_GrantsMembershipAndConsumesTheInvitation
CONTROL. Without a fault the same signup succeeds, the membership exists, and the invitation IS consumed. Without this leg the one above could pass be
internal/server/workspace_owner_compensation_test.go:299
FunctionTestInviteAccept_CodeDoesNotVerify
--------------------------------------------------------------------- DR-1: accepting an email-bound invitation verifies an unverified account, and th
internal/server/handlers_verify_email_test.go:438
FunctionTestInviteInTheSetupWindowAnswersSetupRequired
BUG-3544: before the first account exists (the setup window, where requests run without auth), `pad workspace invite` reached CreateInvitation with no
internal/server/bug3544_invite_setup_window_test.go:13
FunctionTestInvocationFramingStaysNLCanonical
TestInvocationFramingStaysNLCanonical is the drift-guard for PLAN-1858 / IDEA-1846: natural language is the canonical way to invoke a playbook, and `/
internal/collections/invocation_framing_test.go:30
FunctionTestIsAttachmentHref
(t *testing.T)
internal/server/render/attachments_test.go:12
FunctionTestIsCancellationRecognizesWrappedSentinel
TestIsCancellationRecognizesWrappedSentinel verifies that the helper works on errors that have been wrapped with fmt.Errorf("...: %w", err) — which is
cmd/pad/cancel_test.go:12
FunctionTestIsCloudReportsCloudMode
(t *testing.T)
internal/config/config_test.go:169
FunctionTestIsCloudServerOnlyOptsInViaEnv
TestIsCloudServerOnlyOptsInViaEnv guards a bug (PR #272): a `pad init`-written `mode = "cloud"` in config.toml must NOT turn the local pad server into
internal/config/config_test.go:191
FunctionTestIsCollectionNotFound
(t *testing.T)
internal/cli/collection_alias_test.go:202
FunctionTestIsDBBusy
(t *testing.T)
internal/store/runtime_pool_test.go:672
FunctionTestIsDBBusy_RealDriverErrors
The measured-evidence rule for the bound is that it was applied to what the wire really returns, not only to hand-built values: take a real 57014 and
internal/store/runtime_pool_test.go:770
FunctionTestIsDBOutcomeUnknown
(t *testing.T)
internal/store/runtime_pool_test.go:708
FunctionTestIsDiffSmaller
(t *testing.T)
internal/diff/diff_test.go:64
FunctionTestIsDiffSmallerEmptyContent
(t *testing.T)
internal/diff/diff_test.go:81
FunctionTestIsEmailVerified
TestIsEmailVerified locks in the mirror-of-IsDisabled contract: a non-empty EmailVerifiedAt means verified, empty (the zero value / NULL round-trip) m
internal/models/user_test.go:8
FunctionTestIsFTSShadowTable
(t *testing.T)
internal/store/bug3958_migrated_census_test.go:90
FunctionTestIsImageMime
(t *testing.T)
internal/server/render/attachments_test.go:65
FunctionTestIsItemStarred
(t *testing.T)
internal/store/item_stars_test.go:68
FunctionTestIsKnownCallName
BUG-2817: IsKnownCallName is the bound on the MCP metrics tool label. The server is built the way cmd/pad builds the remote one (NewServer, then Regis
internal/mcp/metrics_names_test.go:10
FunctionTestIsLineageItemLinkType
(t *testing.T)
internal/models/item_links_test.go:38
FunctionTestIsNegativeTerminal
(t *testing.T)
internal/models/terminal_test.go:281
FunctionTestIsPlausibleEmail
(t *testing.T)
internal/server/handlers_auth_ratelimit_test.go:9
FunctionTestIsPrivateIP
(t *testing.T)
internal/webhooks/validate_test.go:68
FunctionTestIsRelation_CoversBothTypesAndNothingElse
The relation-type predicates (PLAN-2857 U4). These exist so "which code decides relation behaviour?" is answerable by a SYMBOL search rather than a s
internal/models/relation_field_types_test.go:12
FunctionTestIsReservedUsernameCaseInsensitive
(t *testing.T)
internal/server/username_test.go:19
FunctionTestIsSafeBundleEntryName
TestIsSafeBundleEntryName covers isSafeBundleEntryName as a pure helper. Some inputs (NUL bytes, empty strings) can't be exercised through archive/tar
internal/server/handlers_import_bundle_test.go:620
FunctionTestIsSupportedOAuthProvider
(t *testing.T)
internal/server/handlers_oauth_provider_test.go:202
FunctionTestIsSystemCollection
(t *testing.T)
internal/store/permissions_test.go:320
FunctionTestIsTerminalItem_CaseInsensitive
(t *testing.T)
internal/models/terminal_test.go:228
FunctionTestIsTerminalItem_FalseWhenFieldMissing
(t *testing.T)
internal/models/terminal_test.go:215
FunctionTestIsTerminalItem_TrueWhenFieldMatches
(t *testing.T)
internal/models/terminal_test.go:195
FunctionTestIsTerminalStatusDefault
(t *testing.T)
internal/models/terminal_test.go:269
FunctionTestItemAckAmbiguityEmitsStructuredError
(t *testing.T)
cmd/pad/cmd_reminder_test.go:15
FunctionTestItemAckRoutesUUIDAndRef
(t *testing.T)
cmd/pad/cmd_reminder_test.go:23
FunctionTestItemAppend_ConcurrentPatchSurvives
TestItemAppend_ConcurrentPatchSurvives is the regression test. A rival commits `status: done` inside the append request's read-to-write window; the ap
internal/server/handlers_items_append_test.go:62
FunctionTestItemAppend_PlainPatchHasNoAppendedMember
TestItemAppend_PlainPatchHasNoAppendedMember: the echo is additive and omitempty, so a write without an append is byte-identical to before.
internal/server/handlers_items_append_test.go:231
FunctionTestItemAppend_RefusedWithFullFields
TestItemAppend_RefusedWithFullFields: a full `fields` replace and an append in one request have no single meaning, so the request is refused and write
internal/server/handlers_items_append_test.go:158
FunctionTestItemAppend_ServerMintsTheEntry
TestItemAppend_ServerMintsTheEntry: id, created_at and created_by come from the server, never the body — a forged id is ignored — and the response ech
internal/server/handlers_items_append_test.go:114
FunctionTestItemAppend_UnreadableStoredValueIsRefused
TestItemAppend_UnreadableStoredValueIsRefused: the Append* guard (BUG-2627 part 3) runs server-side now. An undecodable stored value answers 409 store
internal/server/handlers_items_append_test.go:192
FunctionTestItemAttribution_AgentVsHuman
BUG-2542. Two write paths took the actor from actorFromRequest and dropped it: item CREATE discarded it entirely (keeping only source), and the single
internal/server/handlers_items_attribution_test.go:23
FunctionTestItemAttribution_BodyValueDoesNotWin
A body value no longer wins (BUG-3372, reversing the BUG-2542 contract): the writer's kind is the request's, so an agent cannot file its write as a hu
internal/server/handlers_items_attribution_test.go:87
FunctionTestItemCRUD
--- Item Tests ---
internal/store/items_test.go:664
FunctionTestItemCRUD
(t *testing.T)
internal/server/handlers_items_test.go:140
FunctionTestItemClaim_BadTTLFailsLocally
An unparseable --ttl fails locally; the server is never asked.
cmd/pad/cmd_item_lease_test.go:141
FunctionTestItemClaim_ContendedExitsWithHolder
A contended claim exits non-zero with the holder and expiry in the error — the loser must be able to log WHO holds the item without a second call.
cmd/pad/cmd_item_lease_test.go:120
FunctionTestItemClaim_SendsTTLAndPrintsLease
claim sends holder + ttl (converted to ttl_seconds) and confirms the acquired lease with holder and expiry — the sweep's success signal.
cmd/pad/cmd_item_lease_test.go:90
FunctionTestItemClaim_SubSecondTTLRefused
A positive sub-second --ttl is refused locally rather than truncated to 0 and omitted (which would silently land the server's 15m default); exactly 1s
cmd/pad/cmd_item_lease_test.go:163
FunctionTestItemCodeContextIsHydratedOnRead
(t *testing.T)
internal/store/items_test.go:764
FunctionTestItemCommandRegistersOpen
(t *testing.T)
cmd/pad/item_open_test.go:175
FunctionTestItemCopyCmd_IsRegisteredWithEveryFlag
── wiring ───────────────────────────────────────────────────────────────
cmd/pad/item_copy_test.go:1710
FunctionTestItemCopyLineAndList
(t *testing.T)
cmd/pad/item_copy_test.go:374
FunctionTestItemCopyLinkSummary
A nil link map (a server that omitted the key entirely) must still render a zero, never a blank.
cmd/pad/item_copy_test.go:265
FunctionTestItemCopyMirrorsMatchServerShapes
(t *testing.T)
internal/cli/client_items_copy_mirror_test.go:34
FunctionTestItemCopyReason_UnknownCodeSurfacesVerbatim
A reason code this CLI has never heard of must reach the user verbatim rather than being flattened into a generic phrase or dropped.
cmd/pad/item_copy_test.go:400
FunctionTestItemCopyTally
The tally as a unit, including the case its callers cannot currently reach. Both call sites sit inside `if len(NeedsValue) > 0`, so `Total == 0` neve
cmd/pad/item_copy_test.go:2133
FunctionTestItemCreateError_BusyCauseIsMapped
(t *testing.T)
internal/server/task4278_error_mapping_test.go:371
FunctionTestItemCreateParent_EmptyValueStillAccepted
CREATE is deliberately NOT refused: an empty --parent there expresses nothing to ignore, since there is no parent to detach, and `--parent "$MAYBE_EMP
cmd/pad/item_parent_clear_test.go:106
FunctionTestItemCreateStdin_BlankRefused
(t *testing.T)
cmd/pad/item_stdin_blank_test.go:85
FunctionTestItemCreateStdin_BodyStillCreates
(t *testing.T)
cmd/pad/item_stdin_blank_test.go:113
FunctionTestItemCreateSucceedsAndLogsWhenThePublishFails
CONVE-19: wiring, not just the helper. A real handler whose publish fails still answers success, and the failure reaches the helper's log.
internal/server/events_publish_test.go:124
FunctionTestItemCreateUnmarshalFlexFields
TestItemCreateUnmarshalFlexFields covers BUG-1432: POST /items must accept `fields` and `tags` as either a JSON-encoded string (the canonical historic
internal/models/item_test.go:609
FunctionTestItemCreateValidation
(t *testing.T)
internal/server/handlers_items_test.go:360
FunctionTestItemCreate_HasNoClearFlags
TestItemCreate_HasNoClearFlags pins the deliberate asymmetry (IDEA-2584). Clearing at create is a request to not-set something never set; the only hon
cmd/pad/item_column_fields_test.go:481
FunctionTestItemCreate_HasNoClearParentFlag
TestItemCreate_HasNoClearParentFlag mirrors TestItemCreate_HasNoClearFlags for the same asymmetry: an item has no parent unless one is given at create
cmd/pad/item_column_fields_test.go:707
FunctionTestItemCreate_LiftsColumnFields
TestItemCreate_LiftsColumnFields covers the create half. `item create` builds its fields map and marshals it into ItemCreate.Fields, so a column-named
cmd/pad/item_column_fields_test.go:262
FunctionTestItemCrossCollectionListing
(t *testing.T)
internal/server/handlers_items_test.go:1013
FunctionTestItemDecide_RefusesUnreadableFieldWithStructuredMarker
(t *testing.T)
cmd/pad/item_reserved_field_test.go:127
FunctionTestItemDecisions_HasStateCountsOnlyTheAskedKeys
A set whose keys CHANGED at an unchanged state is not complete. A rename keeps the count equal (old key stored, new key asked), so a count over every
internal/store/decisions_test.go:383
FunctionTestItemDecisions_LatestHidesOlderStates
The read returns one row per question — the newest — and keeps the rest.
internal/store/decisions_test.go:230
FunctionTestItemDoorAfterRowsHookIsNilInProduction
(t *testing.T)
internal/server/bug3428_phase2_epoch_guard_test.go:274
FunctionTestItemDoors_EpochIsNotNewerThanTheirRows
A door must not pair rows read BEFORE a collection's delete with the epoch AFTER it. That response would hold the deleted collection's rows under the
internal/server/bug3428_phase2_epoch_guard_test.go:226
FunctionTestItemEntriesAppendTouchesOnlyNewRow
(t *testing.T)
internal/store/item_entries_index_test.go:324
FunctionTestItemEntriesFollowIDBackfill
(t *testing.T)
internal/store/item_entries_index_test.go:532
FunctionTestItemEntriesLargeNoteIsIndexed
Condition 1 (TASK-4491): the index never refuses an item write. The largest fields an item write accepts is the 2 MiB JSON body cap (defaultJSONBodyLi
internal/store/item_entries_index_test.go:564
FunctionTestItemEntriesLegacyNULDoesNotRefuseTheWrite
A legacy row can hold a NUL that items.fields now refuses (084). The index cuts each value at its first NUL, so the NUL triggers on item_entries (185)
internal/store/item_entries_index_test.go:452
FunctionTestItemEntriesLifecycle
(t *testing.T)
internal/store/item_entries_index_test.go:479
FunctionTestItemEntriesMalformed
(t *testing.T)
internal/store/item_entries_index_test.go:386
FunctionTestItemEntriesMatchGoExtraction
(t *testing.T)
internal/store/item_entries_index_test.go:131
FunctionTestItemEntriesMigration_Backfill
(t *testing.T)
internal/store/item_entries_migration_test.go:43
FunctionTestItemEntriesMigration_PGLockTimeoutDeclared
(t *testing.T)
internal/store/item_entries_migration_test.go:91
FunctionTestItemEntriesMigration_PostgresBackfillAndRepeat
(t *testing.T)
internal/store/item_entries_migration_test.go:126
FunctionTestItemEntriesMigration_PostgresBackfillTiming
The backfill is one statement, so its cost is one measurement: seed, empty the index (the recovery recipe in the migration header), and time the backf
internal/store/item_entries_migration_test.go:183
FunctionTestItemEntriesMove
(t *testing.T)
internal/store/item_entries_index_test.go:511
FunctionTestItemEntriesObjectReplacedByNonObject
An object entry replaced in place by a non-object reaches the update trigger's DELETE subquery, whose join evaluates json_type on je.value. On a bare
internal/store/item_entries_index_test.go:416
FunctionTestItemEntriesPGBackfillIsTheMigrationStatement
(t *testing.T)
internal/store/item_entries_migration_test.go:224
FunctionTestItemEntriesPGUncappedTSVectorRaises
Postgres leg of condition 1 against the pre-cap input size: the trigger's own to_tsvector must not raise on the largest note the API accepts. Runs thr
internal/store/item_entries_migration_test.go:248
FunctionTestItemEntriesRewriteAndRemoveKey
(t *testing.T)
internal/store/item_entries_index_test.go:349
FunctionTestItemFTSSearch
(t *testing.T)
internal/store/items_test.go:1009
FunctionTestItemFTSSearchViaListItems
(t *testing.T)
internal/store/items_test.go:1040
FunctionTestItemFieldDefaults
(t *testing.T)
internal/server/handlers_items_test.go:404
FunctionTestItemFieldsCoercedFromStringsAtTheHTTPDoor
BUG-2850 at the HTTP door — the door that was broken. The remote /mcp transport builds its field map in ingestFieldKVP with `dst[key] = val`, so ever
internal/server/handlers_items_field_coercion_test.go:26
FunctionTestItemFieldsCoercedFromStringsOnUpdate
The same door on UPDATE, which is a separate call site and would not have been covered by the create test above (BUG-2850 wires eight sites).
internal/server/handlers_items_field_coercion_test.go:84
FunctionTestItemFieldsCoercedOnBulkFieldUpdate
Bulk update: POST /items/bulk op=set-priority (handlers_items_bulk.go's bulkFieldUpdate — a third site, reached by set-priority and by status moves).
internal/server/handlers_items_field_coercion_test.go:617
← previousnext →20,501–20,600 of 28,840, ranked by callers