MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestDispatcher_EventFiltering
(t *testing.T)
internal/webhooks/dispatcher_test.go:137
FunctionTestDispatcher_FailureOnNon2xx
(t *testing.T)
internal/webhooks/dispatcher_test.go:236
FunctionTestDispatcher_InactiveWebhookSkipped
(t *testing.T)
internal/webhooks/dispatcher_test.go:207
FunctionTestDispatcher_RedirectBlockIsPermanent
TestDispatcher_RedirectBlockIsPermanent asserts a redirect rejected by the SSRF guard (surfaced via CheckRedirect through client.Do) is classified as
internal/webhooks/dispatcher_test.go:515
FunctionTestDispatcher_RedirectToInternalBlocked
TestDispatcher_RedirectToInternalBlocked proves a 302 from an allowed public endpoint cannot bounce a delivery to an internal IP: the initial URL is a
internal/webhooks/dispatcher_test.go:309
FunctionTestDispatcher_RetriesThenSucceeds
TestDispatcher_RetriesThenSucceeds asserts a transient failure that later recovers is recorded as success (failed=false).
internal/webhooks/dispatcher_test.go:468
FunctionTestDispatcher_RetriesTransientFailure
TestDispatcher_RetriesTransientFailure asserts a 5xx (transient) response is retried up to maxDeliveryAttempts and the final failure is recorded.
internal/webhooks/dispatcher_test.go:406
FunctionTestDispatcher_UsesInjectedSpawn
TestDispatcher_UsesInjectedSpawn verifies deliveries run on the injected spawn func (the server wires Server.goAsync here so Stop() can drain them).
internal/webhooks/dispatcher_test.go:371
FunctionTestDispatcher_WildcardEvent
(t *testing.T)
internal/webhooks/dispatcher_test.go:176
FunctionTestDisplayWidth_IgnoresNonSGRSequences
displayWidth drives the table column maths, so a zero-width control sequence must not be counted as visible columns.
internal/cli/format_ansi_test.go:43
FunctionTestDisplayWidth_StripsANSIAndCountsRunes
(t *testing.T)
internal/cli/format_test.go:22
FunctionTestDmKeyUnique
(t *testing.T)
internal/store/conversations_test.go:957
FunctionTestDocumentActivityStoresBindableUserAgent
TestDocumentActivityStoresBindableUserAgent is the WIRING leg for the User-Agent sanitiser (CONVE-19; a unit test vouches for the helper, not for anyt
internal/server/decode_json_nul_test.go:663
FunctionTestDocumentCRUD
--- Document Tests ---
internal/store/store_test.go:995
FunctionTestDocumentEndpoints
(t *testing.T)
internal/server/server_test.go:243
FunctionTestDocumentLinkRename
(t *testing.T)
internal/store/store_test.go:1178
FunctionTestDocumentListFilters
(t *testing.T)
internal/store/store_test.go:1074
FunctionTestDocumentRenameFollowsEscapedLinks
BUG-2806. A legacy document title containing `|`, `\` or `]` (refused for new titles since BUG-2798) is linked in the grammar's ESCAPED form, and the
internal/store/bug2806_document_rename_escaped_test.go:19
FunctionTestDocumentRenameLock_DoesNotContendWithTheSeqLock
TestDocumentRenameLock_DoesNotContendWithTheSeqLock pins the reason the rename key is its own key. A half-fix that reused acquireWorkspaceSeqLock's ba
internal/store/documents_rename_deadlock_test.go:293
FunctionTestDocumentRename_BusyClassification
BUG-2778 reconciled: a busy rename is database_busy now; a cascade that ran out of retries keeps its own lock_contention code.
internal/server/task4278_error_mapping_test.go:387
FunctionTestDocumentTitleBoundIsTheRuledNumber
TestDocumentTitleBoundIsTheRuledNumber pins the VALUE, not just the behaviour around it. Every other length test derives its inputs from MaxDocumentT
internal/models/document_title_test.go:115
FunctionTestDocumentTitleLengthBoundCountsRunesNotBytes
TestDocumentTitleLengthBoundCountsRunesNotBytes pins the bound at 255 CHARACTERS, which is what the bound means and what a UI counter shows. The mult
internal/models/document_title_test.go:131
FunctionTestDocumentTitleRejectsFormsTheCascadeCannotFind
TestDocumentTitleRejectsFormsTheCascadeCannotFind covers the two characters whose refusal the round-trip property above does NOT explain — and that ga
internal/models/document_title_test.go:170
FunctionTestDocumentTitleValidationMatchesTheRoundTripProperty
TestDocumentTitleValidationMatchesTheRoundTripProperty is the justification for the SYNTAX rule, in executable form: of the titles this table covers —
internal/models/document_title_test.go:66
FunctionTestDocumentTitleValidation_IsWiredOnBothWriteDoors
TestDocumentTitleValidation_IsWiredOnBothWriteDoors covers create and update with the same table. The update legs are the ones that would have caught
internal/server/handlers_documents_title_test.go:41
FunctionTestDocumentValidation
(t *testing.T)
internal/server/server_test.go:304
FunctionTestDocumentWrites_StampAttachmentRefs
The write half. The scan protects references that exist when the sweep runs; the stamp is what covers a reference landing DURING a sweep, and it only
internal/store/attachments_document_refs_test.go:130
FunctionTestDoneFieldKey_DefaultsToStatus
(t *testing.T)
internal/models/terminal_test.go:9
FunctionTestDoneFieldKey_FallsBackForNonSelectField
(t *testing.T)
internal/models/terminal_test.go:48
FunctionTestDoneFieldKey_FallsBackWhenFieldMissing
(t *testing.T)
internal/models/terminal_test.go:34
FunctionTestDoneFieldKey_HonorsBoardGroupBy
(t *testing.T)
internal/models/terminal_test.go:21
FunctionTestDoneFieldKey_RejectsMultiSelect
(t *testing.T)
internal/models/terminal_test.go:90
FunctionTestDoneFieldKey_RejectsUnsafeKeys
(t *testing.T)
internal/models/terminal_test.go:63
FunctionTestDownloadAttachment_DerivedHeader
(t *testing.T)
internal/server/handlers_attachments_variant_headers_test.go:64
FunctionTestDownloadAttachment_ServedVariantHeader
BUG-2964 — the byte endpoint must SAY which variant it served and whether any derived variant exists. The fallback at the top of the variant block is
internal/server/handlers_attachments_variant_headers_test.go:25
FunctionTestDownload_BUG2818_LegacyRowIsNotServedAsABlockedExtension
A LEGACY row, stored before ingest normalised, is served under a name that cannot be the blocked type, whatever its stored bytes say.
internal/server/handlers_attachments_bug2818_test.go:102
FunctionTestDownload_BUG2822_LegacyDeviceNameIsServedPrefixed
A row stored before BUG-2822 keeps its device name in the table; the download header serves it prefixed.
internal/server/handlers_attachments_bug2822_test.go:43
FunctionTestDownload_BUG3153_LegacyBidiRowIsServedClean
A LEGACY row is served without the characters, and one hiding a blocked extension is served as .bin, before the startup backfill has rewritten it.
internal/server/handlers_attachments_bug3153_test.go:53
FunctionTestDownload_BlobMissingOnDisk
(t *testing.T)
internal/server/handlers_attachments_download_test.go:295
FunctionTestDownload_CollectionGrantGuestCanFetch
TestDownload_CollectionGrantGuestCanFetch — same, one level up the grant chain. The guest holds no item grant; visibility comes from the collection.
internal/server/handlers_attachments_download_authz_test.go:248
FunctionTestDownload_CrossWorkspaceAttachmentIs404
TestDownload_CrossWorkspaceAttachmentIs404 — the pre-existing wrong-workspace guard, re-pinned with the cache directive the denial now carries.
internal/server/handlers_attachments_download_authz_test.go:612
FunctionTestDownload_CrossWorkspaceReturns404
(t *testing.T)
internal/server/handlers_attachments_download_test.go:159
FunctionTestDownload_DirectVariantFetchHonorsTheGate
TestDownload_DirectVariantFetchHonorsTheGate — a derived row can be addressed by its OWN id, not just via ?variant= on the parent. That path must run
internal/server/handlers_attachments_download_authz_test.go:277
FunctionTestDownload_FilenameSanitized
(t *testing.T)
internal/server/handlers_attachments_download_test.go:320
FunctionTestDownload_ForeignItemParentIs404
TestDownload_ForeignItemParentIs404 — attachments.item_id has no same-workspace constraint, so a row in workspace A can name an item in B. A view gran
internal/server/handlers_attachments_download_authz_test.go:367
FunctionTestDownload_ForeignVariantIsNotServed
TestDownload_ForeignVariantIsNotServed pins DR-16. GetAttachmentVariant used to scope on parent_id + variant + deleted_at only, so a variant row in A
internal/server/handlers_attachments_download_authz_test.go:414
FunctionTestDownload_HEADCrossWorkspaceReturns404
(t *testing.T)
internal/server/handlers_attachments_download_test.go:141
FunctionTestDownload_HEADReturnsHeadersWithoutBody
(t *testing.T)
internal/server/handlers_attachments_download_test.go:102
FunctionTestDownload_HTMLForcedAsAttachment
(t *testing.T)
internal/server/handlers_attachments_download_test.go:71
FunctionTestDownload_HappyPathPNG
(t *testing.T)
internal/server/handlers_attachments_download_test.go:36
FunctionTestDownload_InvisibleItemIs404NotForbidden
TestDownload_InvisibleItemIs404NotForbidden pins the non-disclosure posture AND the byte-identical-denial rule TASK-2400 established. The actor is an
internal/server/handlers_attachments_download_authz_test.go:302
FunctionTestDownload_ItemGrantGuestCanFetch
TestDownload_ItemGrantGuestCanFetch is the core BUG-2386 regression: a guest holding an item VIEW grant (no workspace viewer role) can fetch the attac
internal/server/handlers_attachments_download_authz_test.go:219
FunctionTestDownload_NotFound
(t *testing.T)
internal/server/handlers_attachments_download_test.go:90
FunctionTestDownload_OrphanKeepsFlatViewerGate
TestDownload_OrphanKeepsFlatViewerGate — an orphan carries no item context to authorize against, so it keeps the flat viewer-role gate. A guest with a
internal/server/handlers_attachments_download_authz_test.go:489
FunctionTestDownload_OrphanRefusedToRestrictedMember
TestDownload_OrphanRefusedToRestrictedMember — an orphan belongs to no collection, so collection visibility cannot gate it, and the storage LISTING al
internal/server/handlers_attachments_download_authz_test.go:537
FunctionTestDownload_PDFStaysInline
PDF stays inline (browser preview) — the fix must not break legitimate inline types.
internal/server/handlers_attachments_download_mime_test.go:188
FunctionTestDownload_PlainTextStaysInline
Plain text stays inline.
internal/server/handlers_attachments_download_mime_test.go:206
FunctionTestDownload_Range_206
(t *testing.T)
internal/server/handlers_attachments_download_test.go:180
FunctionTestDownload_SVGLabeledRowForcedAsAttachment
A legacy row stored as image/svg+xml is force-downloaded — GET and HEAD both.
internal/server/handlers_attachments_download_mime_test.go:128
FunctionTestDownload_SoftDeletedParentIs404
TestDownload_SoftDeletedParentIs404 — DR-13. The read path loads the parent with GetItem (not GetItemIncludeDeleted), so archiving an item takes its a
internal/server/handlers_attachments_download_authz_test.go:332
FunctionTestDownload_TextXMLForcedAsAttachment
An extensionless SVG that was sniffed and stored as text/xml (on the upload allowlist as a RenderChip type) is force-downloaded.
internal/server/handlers_attachments_download_mime_test.go:144
FunctionTestDownload_UnknownMIMEForcedAsAttachmentOctetStream
An unrecognized stored MIME is force-downloaded AND served as opaque octet-stream bytes, never echoed back as a type the browser might act on.
internal/server/handlers_attachments_download_mime_test.go:157
FunctionTestDownload_VariantFallbackToOriginal
(t *testing.T)
internal/server/handlers_attachments_download_test.go:221
FunctionTestDownload_VariantForcedAsAttachment
The variant endpoint shares the read handler, so the same disposition gate applies: a derived row wearing a non-inline-safe MIME is force-downloaded t
internal/server/handlers_attachments_download_mime_test.go:174
FunctionTestDownload_VariantHitsDerivedRow
(t *testing.T)
internal/server/handlers_attachments_download_test.go:255
FunctionTestDownload_VariantUnknown
(t *testing.T)
internal/server/handlers_attachments_download_test.go:242
FunctionTestDownload_ViewerStillReadsItemBoundAttachment
TestDownload_ViewerStillReadsItemBoundAttachment — the gate replaced a role check with a visibility check; an ordinary unrestricted viewer must still
internal/server/handlers_attachments_download_authz_test.go:595
FunctionTestDraggingAChildKeepsTheLinkAtTheNewOffset
(t *testing.T)
internal/store/commitment_links_test.go:398
FunctionTestDropCarriedUniqueCollisions_HolderNamedOnlyWhenVisible
BUG-2367. The not_unique report names the item holding the value ONLY when the caller may see it: the drop already says the value is taken, but the ho
internal/store/unique_fields_test.go:13
FunctionTestDropCoercionOnlyKeys
The over-drop control: a key the CALLER sets is never dropped, and a stored value that is already canonical is untouched.
internal/server/bug3831_bulk_field_prelock_test.go:166
FunctionTestDropInvisibleMultiRelationDefault_ControlAllVisibleSurvives
(t *testing.T)
internal/store/relation_multi_defaults_test.go:151
FunctionTestDropInvisibleMultiRelationDefault_OneUnseenElementDropsTheKey
(t *testing.T)
internal/store/relation_multi_defaults_test.go:129
FunctionTestDropIsReportedToTheObserver
TestDropIsReportedToTheObserver pins the metric half. The condition was log-only on this bus until BUG-2730 — internal/watchevents has counted it sinc
internal/events/gap_signal_test.go:68
FunctionTestDropSignalsOnlyTheSubscriberItHappenedTo
TestDropSignalsOnlyTheSubscriberItHappenedTo is the per-subscriber half of BUG-2730. The control leg carries the claim: a full channel is a fact about
internal/events/gap_signal_test.go:25
FunctionTestDuplicateRegistration
(t *testing.T)
internal/server/handlers_auth_test.go:613
FunctionTestE
(t *testing.T)
internal/buildtools/testdata/shardpkg/shard_test.go:11
FunctionTestE2EAppCADoorIsNotInDefaultBuilds
TASK-3415: the e2e harness's app-CA door exists only in a build with the e2etest tag. A default build, which is what release and production ship, must
cmd/pad/e2e_app_ca_guard_test.go:21
FunctionTestE2E_ClaudeDesktopFlow
===================================================================== E2E simulation: discovery → DCR → authorize → token → /mcp call ================
internal/server/handlers_mcp_test.go:994
FunctionTestE2E_HTTPSSelfHostFlow
TestE2E_HTTPSSelfHostFlow is PLAN-2310 DR-4's acceptance for an https self-host, off cloud, with MCP turned on through the stored setting: the 401 poi
internal/server/mcp_capability_test.go:29
FunctionTestEBMLDocTypeIsParsedNotSearched
TestEBMLDocTypeIsParsedNotSearched pins the DocType read in all four directions. The first two are the ordinary files. The last two are the pair that
internal/attachments/mime_magic_test.go:84
FunctionTestEBMLDocTypeSurvivesPaddingPastTheHead
TestEBMLDocTypeSurvivesPaddingPastTheHead covers a case that the magic-only decision does not touch, because the DocType parse stays: a header declari
internal/attachments/mime_magic_test.go:727
FunctionTestEBMLParseDetails
TestEBMLParseDetails covers the two DocType-walk properties that survive the magic-only decision untouched. They were lost when the structural-validat
internal/attachments/mime_magic_test.go:746
FunctionTestEachMutationRefusesAStragglerOnItsOwn
TestEachMutationRefusesAStragglerOnItsOwn is the per-mutation half of the fence, and the mutation matrix is why it exists as four separate assertions
internal/watchevents/heartbeat_test.go:723
FunctionTestEditAnyFailedSavePreservesTheEditedText
(t *testing.T)
cmd/pad/bug3035_edit_guard_test.go:253
FunctionTestEditConflictPreservesTheEditedText
(t *testing.T)
cmd/pad/bug3035_edit_guard_test.go:226
FunctionTestEditCurrentRowSavesWithTheSeedSeq
CONTROL for the refusal: a current row opens the editor and saves. Without this leg a command that refused EVERYTHING would pass the test above.
cmd/pad/bug3035_edit_guard_test.go:150
FunctionTestEditFallsBackToUpdatedAtWhenNoSeq
(t *testing.T)
cmd/pad/bug3035_edit_guard_test.go:183
FunctionTestEditForceOpensAStaleSeedAndStillSendsTheToken
(t *testing.T)
cmd/pad/bug3035_edit_guard_test.go:197
FunctionTestEditNoChangesSendsNothing
(t *testing.T)
cmd/pad/bug3035_edit_guard_test.go:286
FunctionTestEditNonzeroEditorExitAbortsWithoutSaving
A nonzero editor exit aborts (vim's :cq), even after the file was written: nothing is sent, and the error says nothing was saved (dispositioned as abo
cmd/pad/bug3035_edit_guard_test.go:314
FunctionTestEditRefusesStaleSeed
(t *testing.T)
cmd/pad/bug3035_edit_guard_test.go:128
FunctionTestEditRefusesWhenTheBodyWentStaleWhileEditing
A tab starts typing while $EDITOR is open: the op-log moves, the row's seq does not, so only the re-read can see it.
cmd/pad/bug3035_edit_guard_test.go:266
FunctionTestEditWarnsBeforeLaunchingTheEditor
TestEditWarnsBeforeLaunchingTheEditor is the BINDING half of the test above (CONVE-19), and it guards the one claim the gating table cannot: the warni
cmd/pad/cmd_playbook_stale_body_test.go:235
FunctionTestEditWithoutForceDoesNotOverwritePendingEdits
Control for the leg above: without --force the save never asks to overwrite.
cmd/pad/bug3035_edit_guard_test.go:216
FunctionTestEffectiveAccessEpoch
TestEffectiveAccessEpoch pins the two rules effectiveAccessEpoch adds over computeAccessEpoch (BUG-3347): with item grants the collection half is the
internal/server/access_epoch_test.go:78
FunctionTestEffectivePlanEnforcesExpiry
(t *testing.T)
internal/store/bug3356_plan_revision_test.go:85
FunctionTestEffortBackfillDryRunOnFile
Dry run against a database FILE (a copy of the live one), for measuring the backfill before it ships. It calls no provider and writes nothing but the
internal/decision/effort_backfill_test.go:371
FunctionTestEffortBackfill_CancelStopsBetweenChunksAndWritesNoMarker
A cancel between chunks stops the run with ctx.Err(), owes nothing more and never writes the marker; a pre-cancelled context reads no candidate either
internal/decision/effort_backfill_test.go:473
FunctionTestEffortBackfill_DebouncedChunkDoesNotHoldTheNext
A chunk whose jobs are ALL debounced (not_before ahead) cannot be claimed and so must not hold the next chunk; the run completes and marks.
internal/decision/effort_backfill_test.go:627
FunctionTestEffortBackfill_DisableCancelsARunningBackfill
Disabling decisions while a backfill is parked before its first chunk cancels it: no job is owed (rows counted, not just the marker) and no marker is
internal/server/effort_backfill_lifecycle_test.go:172
← previousnext →19,401–19,500 of 28,840, ranked by callers