MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestPoster_PolicyAndPrivateOrigins
TASK-3408 (U10b): the app webhook Poster.
internal/appfetch/poster_test.go:17
FunctionTestPoster_PreSendFailuresAreNotSent
Failures before any request byte (dial, handshake) are ErrNotSent, so a ledger does not count them as requests.
internal/appfetch/poster_test.go:244
FunctionTestPoster_SkipsInterimAnswers
Interim answers are skipped, as net/http's Transport does; the final answer decides.
internal/appfetch/poster_test.go:207
FunctionTestPoster_SuccessMeansTheWholeBodyWasSent
A 2xx means the WHOLE request was sent, and a server that answers early and stops reading is a failure, never a delivery.
internal/appfetch/poster_test.go:72
FunctionTestPoster_VerifiesTheCertificate
The certificate is verified: a server the roots do not trust is refused, and so is a name the certificate does not cover.
internal/appfetch/poster_test.go:175
FunctionTestPoster_ZeroByteWriteFailureIsUnsent
A write that fails before its first byte is unsent; one that fails part-way is not.
internal/appfetch/poster_test.go:279
FunctionTestPostgresBackupAtomicOutput
(t *testing.T)
cmd/pad/cmd_db_backup_postgres_test.go:45
FunctionTestPostgresBackupPreservesGroup
(t *testing.T)
cmd/pad/db_restore_ownership_unix_test.go:38
FunctionTestPostgresBackupRestoreConnection
Use a separate source and destination database, not the suite's shared one. Set PAD_TEST_POSTGRES_TOOLS_URL to a database with matching native clients
cmd/pad/postgres_client_test.go:92
FunctionTestPostgresClientConninfo
(t *testing.T)
cmd/pad/postgres_client_test.go:17
FunctionTestPostgresClientPasswordHandoff
(t *testing.T)
cmd/pad/postgres_client_test.go:61
FunctionTestPostgresDialect
(t *testing.T)
internal/store/dialect_test.go:89
FunctionTestPostgresFTSQuery
(t *testing.T)
internal/store/search_prefix_test.go:220
FunctionTestPreServerFixtureAcceptsItsOwnStub
And the positive control: an unobstructed stub passes both proofs, so the refusal above is about the foreign listener and not a fixture that refuses e
internal/buildtools/install_refresh_test.go:1615
FunctionTestPreServerFixtureProvesEachClaimSeparately
Each proof, isolated. The foreign-listener cases above all land on the announcement on Linux, so neither of these checks would be shown to matter by t
internal/buildtools/install_refresh_test.go:1523
FunctionTestPreServerFixtureRefusesAForeignListener
THE PRE-SERVER FIXTURE REFUSES A LISTENER THAT IS NOT ITS STUB (TASK-3146). The collision the fixture exists to catch, forced rather than waited for:
internal/buildtools/install_refresh_test.go:1476
FunctionTestPreflightHierarchyTypesCoverStoreChildren
TestPreflightHierarchyTypesCoverStoreChildren is the drift alarm for the one invariant the preflight's link partition rests on: every link type store.
internal/server/handlers_items_copy_preflight_test.go:1398
FunctionTestPreflightIgnoresTablesTheMigrationDoesNotCopy
TestPreflightIgnoresTablesTheMigrationDoesNotCopy pins that the NUL preflight skips tables the migration does not copy. `migrate-to-pg` copies worksp
cmd/pad/cmd_db_nul_test.go:394
FunctionTestPreflightReadsAFloatingScheduleInTheCopiersZone
D3-f: the preflight reads a floating schedule in the zone the COPY will: the carried assignee, else the copier. The source is assigned to someone in U
internal/server/handlers_items_copy_schedule_test.go:151
FunctionTestPreflightRefusesInvalidUTF8
TestPreflightRefusesInvalidUTF8 is BUG-3222: PostgreSQL refuses a value that is not valid UTF-8 (SQLSTATE 22021), so the preflight refuses on one in a
cmd/pad/cmd_db_nul_test.go:488
FunctionTestPreflightRefusesTheShadowedNULAndPassesTheLiteral
TestPreflightRefusesTheShadowedNULAndPassesTheLiteral covers the two values the deleted SUSPECT class was built around, end to end through the preflig
cmd/pad/cmd_db_nul_test.go:234
FunctionTestPresenceActivityRedisNamespaceAndTTL
(t *testing.T)
internal/server/task4040_activity_registry_test.go:251
FunctionTestPresenceActivityRegistries
(t *testing.T)
internal/server/task4040_activity_registry_test.go:173
FunctionTestPresenceCarriesAgent
(t *testing.T)
internal/server/task4040_presence_test.go:54
FunctionTestPresenceDefaultKeepsHistoricalKeys
TestPresenceDefaultKeepsHistoricalKeys is the upgrade promise for the presence keyspace.
internal/server/session_presence_namespace_test.go:66
FunctionTestPresenceHonoursTheNamespace
TestPresenceHonoursTheNamespace covers the third keyspace of BUG-2724 — the one whose merge is the actual cross-tenant leak, since a shared registry l
internal/server/session_presence_namespace_test.go:20
FunctionTestPresenceReportsCorruptEntriesAsListFailures
TestPresenceReportsCorruptEntriesAsListFailures covers the paths that were once uncounted: a session entry that is unparseable returns the SAME 503-pr
internal/server/session_presence_observer_test.go:112
FunctionTestPresenceReportsFailedOps
TestPresenceReportsFailedOps drives REAL failures — a dead Redis — rather than calling the reporter, and asserts the premise that a working Redis repo
internal/server/session_presence_observer_test.go:48
FunctionTestPresenceReportsRenewAndDeregisterFailures
TestPresenceReportsRenewAndDeregisterFailures covers the two ops the earlier tests left uninstrumented. They matter for opposite reasons, which is exa
internal/server/session_presence_observer_test.go:155
FunctionTestPreserveReservedUnparentedViewFilter
(t *testing.T)
internal/server/handlers_views_unparented_test.go:42
FunctionTestPreserveReservedUnparentedViewFilter_EmptyReset
(t *testing.T)
internal/server/handlers_views_unparented_test.go:66
FunctionTestPreviewInvitation_HasAccountTrue
TestPreviewInvitation_HasAccountTrue flips has_account when an account already exists for the invited address — the signal the /join page uses to defa
internal/server/handlers_invitation_preview_test.go:91
FunctionTestPreviewInvitation_RateLimited
TestPreviewInvitation_RateLimited proves the endpoint is wired to its dedicated per-IP limiter (burst 20) so it can't be used to enumerate the code sp
internal/server/handlers_invitation_preview_test.go:146
FunctionTestPreviewInvitation_ReturnsMetadataWithoutConsuming
TestPreviewInvitation_ReturnsMetadataWithoutConsuming is the canonical happy path: an unauthenticated caller gets the invited email + workspace name,
internal/server/handlers_invitation_preview_test.go:45
FunctionTestPreviewInvitation_UnknownCodeIsFoundFalse
TestPreviewInvitation_UnknownCodeIsFoundFalse pins enumeration safety: an unknown code returns 200 with {found:false} and leaks no email — the same sh
internal/server/handlers_invitation_preview_test.go:123
FunctionTestPreviewReadsAFloatingScheduleInTheDestinationZone
D3-f, floating: the preview reads the schedule in the zone the COPY will, the DESTINATION recipient's: the carried assignee, else the copier. The sour
internal/store/schedule_copy_test.go:530
FunctionTestPreviewScheduleCarryMatchesTheCopy
The preflight asks the same store function the copy runs, so both agree on every outcome.
internal/store/schedule_copy_test.go:468
FunctionTestPrintGroupedTemplatesIncludesEveryVisibleTemplate
TestPrintGroupedTemplatesIncludesEveryVisibleTemplate is a smoke test that the grouped printer covers each visible template's name.
cmd/pad/templates_picker_test.go:128
FunctionTestPrintImportDrops
BUG-3825: each unique value the import dropped is printed on its own line in move's `dropped:` shape, led by the item that lost it.
cmd/pad/import_summary_test.go:74
FunctionTestPrintImportSummary
(t *testing.T)
cmd/pad/import_summary_test.go:12
FunctionTestPrintItemMeta_LeaseLineOnlyWhenLive
(t *testing.T)
internal/cli/format_lease_test.go:53
FunctionTestPrintRawJSON_NonJSONIsEmittedVerbatim
(t *testing.T)
internal/cli/client_items_copy_test.go:596
FunctionTestPrintRawJSON_PreservesShapeAndPrecision
(t *testing.T)
internal/cli/client_items_copy_test.go:568
FunctionTestProbeBUG2804_ConstantDependsOnTitleLengthParity
TestProbeBUG2804_ConstantDependsOnTitleLengthParity checks whether the measured 2.01x-body-per-bracket constant is really TWO O(C) operations per brac
internal/store/items_rename_probe_test.go:388
FunctionTestProbeBUG2804_OutboxPayloadCarriesEveryBody
TestProbeBUG2804_OutboxPayloadCarriesEveryBody isolates the third copy. The peak-residency figures are consistent with three simultaneous copies of t
internal/store/items_rename_probe_test.go:324
FunctionTestProbeBUG2804_QuadraticInOneBodySize
TestProbeBUG2804_QuadraticInOneBodySize is the load-bearing measurement. The bracket count is not an independent knob in an attack — it is a FUNCTION
internal/store/items_rename_probe_test.go:259
FunctionTestProbeBUG2804_ScalesWithBracketCount
TestProbeBUG2804_ScalesWithBracketCount sweeps the number of brackets inside ONE linker at a fixed body size. This isolates the per-bracket rescan: th
internal/store/items_rename_probe_test.go:221
FunctionTestProbeBUG2804_ScalesWithLinkerCount
TestProbeBUG2804_ScalesWithLinkerCount sweeps the number of linking items at a fixed body size, establishing whether the cascade's cost is linear in k
internal/store/items_rename_probe_test.go:169
FunctionTestProbeBUG2804_SelectMaterialisesContentPerLinkRow
TestProbeBUG2804_SelectMaterialisesContentPerLinkRow isolates the SECOND O(C)-per-bracket cost, which is not in the rewriter at all. links.RewriteBra
internal/store/items_rename_probe_test.go:437
FunctionTestProbeRewriteBracketAtAllocation
Isolates RewriteBracketAt's own allocation per call, away from the cascade loop, to establish where the measured ~2x-body-per-bracket constant lives.
internal/links/probe_alloc_test.go:11
FunctionTestProcStartToken_CurrentProcess
TestProcStartToken_CurrentProcess: on Linux the token is readable and stable for a live process (a sanity check that the /proc parsing works).
internal/cli/proc_start_linux_test.go:13
FunctionTestProcessIsGone_LiveAndDead
TestProcessIsGone_LiveAndDead pins the confirmation predicate. The old wait loop asked whether the PORT was quiet, which a port nothing ever served an
internal/cli/pid_file_test.go:145
FunctionTestProcessor_Capabilities_PureGo
(t *testing.T)
internal/attachments/processor_test.go:65
FunctionTestProcessor_Crop
(t *testing.T)
internal/attachments/processor_test.go:238
FunctionTestProcessor_Crop_ClipsToImageBounds
(t *testing.T)
internal/attachments/processor_test.go:251
FunctionTestProcessor_Crop_RejectsEmptyIntersection
(t *testing.T)
internal/attachments/processor_test.go:265
FunctionTestProcessor_Decode_RejectsTooLarge
(t *testing.T)
internal/attachments/processor_test.go:127
FunctionTestProcessor_Decode_RejectsUnsupportedFormat
(t *testing.T)
internal/attachments/processor_test.go:113
FunctionTestProcessor_Decode_RoundTrip
(t *testing.T)
internal/attachments/processor_test.go:86
FunctionTestProcessor_Encode_PNGAndJPEG
(t *testing.T)
internal/attachments/processor_test.go:273
FunctionTestProcessor_Encode_RejectsUnknownFormat
(t *testing.T)
internal/attachments/processor_test.go:295
FunctionTestProcessor_Resize_PreservesAspectAndShorterEdgePassThrough
(t *testing.T)
internal/attachments/processor_test.go:160
FunctionTestProcessor_Resize_TallerThanWide
(t *testing.T)
internal/attachments/processor_test.go:188
FunctionTestProcessor_Rotate
(t *testing.T)
internal/attachments/processor_test.go:204
FunctionTestProcessor_Rotate_RejectsNon90Multiple
(t *testing.T)
internal/attachments/processor_test.go:232
FunctionTestProductionGapCooldownIsNotDisabled
The production cooldown is a real number with a stated reason (a delta-sync round trip), and every handler test overrides it — so nothing else would n
internal/server/stream_gap_announcer_test.go:86
FunctionTestProductionRegistryRegisters
(t *testing.T)
internal/decision/attention_test.go:90
FunctionTestProfileChangedReservedUsername
(t *testing.T)
internal/server/handlers_auth_username_test.go:45
FunctionTestProfileUnchangedReservedUsername
(t *testing.T)
internal/server/handlers_auth_username_test.go:11
FunctionTestProgressAbandonedParityVector
TestProgressAbandonedParityVector is the Go half of the progress parity vector (BUG-3195). KEEP-IN-SYNC: the web half is web/src/lib/collections/child
internal/models/progress_abandoned_parity_test.go:18
FunctionTestProgressLeavesAbandonedChildrenOut
BUG-3195: an ABANDONED child (a terminal value that closes without delivering) is left out of both a parent's done count and its total. Before, one do
internal/server/progress_abandoned_test.go:31
FunctionTestProjectChangelogEndpoint_DisabledConventionNotCompleted
(t *testing.T)
internal/server/handlers_project_intel_test.go:738
FunctionTestProjectChangelogEndpoint_GuestParentFilter_ItemGrantOnlyCollection
TestProjectChangelogEndpoint_GuestParentFilter_ItemGrantOnlyCollection pins how ?parent= treats an item-grant guest whose granted item's PARENT they w
internal/server/handlers_project_intel_test.go:560
FunctionTestProjectChangelogEndpoint_HappyPath
── changelog ────────────────────────────────────────────────────────────────
internal/server/handlers_project_intel_test.go:194
FunctionTestProjectChangelogEndpoint_InvalidSinceReturns400
(t *testing.T)
internal/server/handlers_project_intel_test.go:267
FunctionTestProjectChangelogEndpoint_ParentFilter
TestProjectChangelogEndpoint_ParentFilter pins the parent-ref filter via itemMatchesParentFilter: case-insensitive match against the item's parent ref
internal/server/handlers_project_intel_test.go:281
FunctionTestProjectChangelogEndpoint_RequiresAuth
(t *testing.T)
internal/server/handlers_project_intel_test.go:316
FunctionTestProjectChangelogEndpoint_SinceOverridesDays
TestProjectChangelogEndpoint_SinceOverridesDays pins the CLI's silent since-wins behavior (cmd/pad/main.go changelogCmd's if/else): both since and day
internal/server/handlers_project_intel_test.go:242
FunctionTestProjectIntelEndpoints_BearerAdminRestrictedMemberIsScoped
TestProjectIntelEndpoints_BearerAdminRestrictedMemberIsScoped pins that projectIntelVisibility must be bearer-aware (mirrors reportVisibleCollections
internal/server/handlers_project_intel_test.go:410
FunctionTestProjectIntelEndpoints_ScopeToVisibleCollections
── ACL scoping ────────────────────────────────────────────────────────────── TestProjectIntelEndpoints_ScopeToVisibleCollections pins collection visi
internal/server/handlers_project_intel_test.go:335
FunctionTestProjectNextEndpoint_EmptyWorkspaceReturnsEmptyArrayNotNull
TestProjectNextEndpoint_EmptyWorkspaceReturnsEmptyArrayNotNull pins the bare-array response shape (matches the CLI's `PrintJSON(dash.SuggestedNext)` a
internal/server/handlers_project_intel_test.go:55
FunctionTestProjectNextEndpoint_MatchesDashboardSuggestedNext
── next ───────────────────────────────────────────────────────────────────── TestProjectNextEndpoint_MatchesDashboardSuggestedNext pins the "same dat
internal/server/handlers_project_intel_test.go:18
FunctionTestProjectNextEndpoint_RequiresAuth
(t *testing.T)
internal/server/handlers_project_intel_test.go:69
FunctionTestProjectReplaceTitleIsReplaceTitlesLength
ProjectReplaceTitle must agree with what ReplaceTitle builds.
internal/links/bug2806_title_link_scan_test.go:54
FunctionTestProjectRewrittenLenDoesNotAllocatePerBracket
TestProjectRewrittenLenDoesNotAllocatePerBracket pins a past defect. ProjectRewrittenLen runs once per rewrite BEFORE the cascade's cap can fire. An
internal/links/probe_alloc_test.go:48
FunctionTestProjectRewrittenLen_IsLockstepWithTheRealPass
TestProjectRewrittenLen_IsLockstepWithTheRealPass pins the invariant the cap depends on: what the projection PREDICTS must be exactly what the rewrite
internal/links/rewrite_brackets_diff_test.go:572
FunctionTestProjectStandupEndpoint_DaysParam_FiltersOldCompletions
TestProjectStandupEndpoint_DaysParam_FiltersOldCompletions pins the days cutoff and the "malformed days silently falls back to the default" semantics
internal/server/handlers_project_intel_test.go:140
FunctionTestProjectStandupEndpoint_DisabledConventionNotCompleted
TestProjectStandupEndpoint_DisabledConventionNotCompleted pins BUG-1049: disabling a convention is not completed work. The stock Conventions schema de
internal/server/handlers_project_intel_test.go:666
FunctionTestProjectStandupEndpoint_HappyPath
(t *testing.T)
internal/server/handlers_project_intel_test.go:95
FunctionTestProjectStandupEndpoint_HonorsCollectionTerminalOptions
TestProjectStandupEndpoint_HonorsCollectionTerminalOptions pins the mechanical half of BUG-1049: listTerminalItemsSince must resolve terminal values p
internal/server/handlers_project_intel_test.go:702
FunctionTestProjectStandupEndpoint_RequiresAuth
(t *testing.T)
internal/server/handlers_project_intel_test.go:180
FunctionTestPromptBody_UnknownNameErrors
(t *testing.T)
internal/mcp/prompts_test.go:51
FunctionTestPromptForModeAtoiSafe
(t *testing.T)
cmd/pad/configure_test.go:85
FunctionTestPromptsLockstep_CoreCommands
TestPromptsLockstep_CoreCommands locks the link to skills/pad/SKILL.md. If SKILL.md drops one of these CLI invocations, the prompt should be updated a
internal/mcp/prompts_test.go:60
FunctionTestPromptsLockstep_NoBashBlocks
TestPromptsLockstep_NoBashBlocks asserts every prompt body is surface-neutral (TASK-2016): no ```bash fenced code blocks, which instruct shell-less MC
internal/mcp/prompts_test.go:100
FunctionTestPromptsLockstep_SkillSourceExists
TestPromptsLockstep_SkillSourceExists is the inverse check — fail if SKILL.md has been removed/renamed under our feet, so the next person updating pro
internal/mcp/prompts_test.go:115
FunctionTestProtectedResourceMetadataURL
TestProtectedResourceMetadataURL pins RFC 9728 §3.1's shape for the 401's resource_metadata, including byte identity for a path-less resource in any s
internal/server/mcp_capability_test.go:99
FunctionTestProvisionAppInstall_InTransactionRecheck
The single-transaction re-derivation is the guarantee: a write that lands AFTER the pre-transaction comparison passed is still refused inside the tran
internal/server/handlers_apps_provision_test.go:258
FunctionTestProvisionAppInstall_PendingRecordGuards
The store re-checks the pending record itself: not staged, expired, or another owner's or workspace's record is refused with nothing written.
internal/server/handlers_apps_provision_test.go:632
FunctionTestProvisionAppInstall_RefusesAnUnreviewedManifest
The store re-checks the reviewed manifest hash itself, so a caller that skipped the handler's comparison still cannot provision another record.
internal/server/handlers_apps_provision_test.go:531
← previousnext →22,701–22,800 of 28,840, ranked by callers