MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestExtractItemDecisionLog
(t *testing.T)
internal/models/item_test.go:166
FunctionTestExtractItemImplementationNotes
(t *testing.T)
internal/models/item_test.go:153
FunctionTestExtractMentionsLinearAfterCodeSpans
The code-range check walks the spans once per call, not once per match: a body of many inline code spans followed by many mentions was quadratic (TASK
internal/links/mentions_test.go:124
FunctionTestExtractMentionsLinearOnSlashRuns
ExtractMentions stays linear in the body: a backward scan per "@" made "/@a" repeated quadratic (TASK-3917, 240 KB took ~10 s).
internal/links/mentions_test.go:115
FunctionTestExtractPragmas
TestExtractPragmas validates the lifter in isolation.
internal/store/migration_atomicity_test.go:221
FunctionTestExtractUnknownWorkspaceSlug
TestExtractUnknownWorkspaceSlug covers the small regex helper used to pull a slug name out of CLI stderr like "workspace 'foo' does not exist". Only Q
internal/mcp/errors_test.go:284
FunctionTestExtractUpstreamMessage
TestExtractUpstreamMessage covers each shape the helper handles — envelope happy path, chi default 404, and the safe-fallback cases. #387: the pre-fi
internal/mcp/dispatch_http_envelope_uniform_test.go:237
FunctionTestExtractWikiLinksAroundCodeSpans
The cursor must give the same answers as a full scan: links before, between, inside and after inline and fenced code, and at span edges.
internal/links/bug3968_wikilink_code_spans_test.go:56
FunctionTestExtractWikiLinksLinearAfterCodeSpans
The code-range check walks the spans once per call, not once per match (BUG-3968). Relative, not an absolute bound, so a slow runner (-race, a loaded
internal/links/bug3968_wikilink_code_spans_test.go:44
FunctionTestExtractWikiLinks_CodeBlocksExcluded
TestExtractWikiLinks_CodeBlocksExcluded asserts the headline behavior decision from PLAN-1593: [[REF]] inside fenced or inline code is NOT a real link
internal/links/extract_test.go:276
FunctionTestExtractWikiLinks_Edge
TestExtractWikiLinks_Edge covers malformed/weird inputs the renderer gracefully falls through on. Our extractor must do the same.
internal/links/extract_test.go:550
FunctionTestExtractWikiLinks_EscapedBodyChars
TestExtractWikiLinks_EscapedBodyChars regresses a bug: the editor's wikiLinksToMarkdown can produce bodies containing `\]`, `\|`, `\\` escapes (markdo
internal/links/extract_test.go:664
FunctionTestExtractWikiLinks_PositionByteVsRune
Sanity check: position is BYTE offset, not rune offset. A leading multi-byte rune shifts the [[ to a position > its rune index.
internal/links/extract_test.go:888
FunctionTestExtractWikiLinks_PositionIsByteOffset
TestExtractWikiLinks_PositionIsByteOffset asserts that Position points at the opening `[[` in the ORIGINAL content — the handler uses this to extract
internal/links/extract_test.go:592
FunctionTestExtractWikiLinks_RefForm
TestExtractWikiLinks_RefForm covers the Phase 1 happy path: ref-form links outside any code region are extracted with correct kind, ref, display, and
internal/links/extract_test.go:11
FunctionTestExtractWikiLinks_RefVsTitleFallback
TestExtractWikiLinks_RefVsTitleFallback exercises the parseBody decision tree. The refPattern is case-insensitive — `[[Task-5]]` and `[[task-5]]` now
internal/links/extract_test.go:610
FunctionTestExtractWikiLinks_TitleCodeBlockExclusion
TestExtractWikiLinks_TitleCodeBlockExclusion ensures Phase 2a titles are excluded from fenced / inline code just like refs were in Phase 1. The exclus
internal/links/extract_test.go:257
FunctionTestExtractWikiLinks_TitleForms
TestExtractWikiLinks_TitleForms covers Phase 2a title emission: plain `[[Title]]` and `[[collection/Title]]` are now returned with kind=title and the
internal/links/extract_test.go:71
FunctionTestExtractWikiLinks_TitlePreservesWhitespace
TestExtractWikiLinks_TitlePreservesWhitespace regresses a bug in PR #621. The renderer doesn't trim before title matching (web/src/lib/utils/markdown.
internal/links/extract_test.go:145
FunctionTestExtractWikiLinks_WorkspaceRefForms
TestExtractWikiLinks_WorkspaceRefForms covers Phase 2b emission (TASK-1597). The gate that suppressed workspace_ref kinds in Phase 2a is lifted now th
internal/links/extract_test.go:189
FunctionTestExtractWorkspaceContextIgnoresInvalidSettings
(t *testing.T)
internal/models/workspace_settings_test.go:98
FunctionTestF
(t *testing.T)
internal/buildtools/testdata/shardpkg/shard_test.go:12
FunctionTestFSStore_ConcurrentPutSameHashConverges
(t *testing.T)
internal/attachments/fs_store_test.go:170
FunctionTestFSStore_DeleteMissingIsNoop
(t *testing.T)
internal/attachments/fs_store_test.go:90
FunctionTestFSStore_GetMissingReturnsErrNotFound
(t *testing.T)
internal/attachments/fs_store_test.go:81
FunctionTestFSStore_GetStatDeleteRejectBadKeys
(t *testing.T)
internal/attachments/fs_store_test.go:219
FunctionTestFSStore_HashMismatchRejected
(t *testing.T)
internal/attachments/fs_store_test.go:98
FunctionTestFSStore_ListBlobs
TestFSStore_ListBlobs pins the Lister capability (BUG-2406): every Put blob is enumerated with its routable key, hash, and size — and NOTHING else is.
internal/attachments/fs_store_test.go:294
FunctionTestFSStore_PutFastPathStillVerifiesHash
(t *testing.T)
internal/attachments/fs_store_test.go:245
FunctionTestFSStore_PutGetStatDelete
(t *testing.T)
internal/attachments/fs_store_test.go:31
FunctionTestFSStore_PutIdempotent
(t *testing.T)
internal/attachments/fs_store_test.go:141
FunctionTestFSStore_PutInvalidHashRejected
(t *testing.T)
internal/attachments/fs_store_test.go:124
FunctionTestFTSSearch
(t *testing.T)
internal/store/store_test.go:1199
FunctionTestFTSSearchScoped
(t *testing.T)
internal/store/store_test.go:1228
FunctionTestFTS_WhitespaceOnlyQuery_DoesNotCrash
TestFTS_WhitespaceOnlyQuery_DoesNotCrash exercises the whitespace-only guard on each FTS entry point. sanitizeFTSQuery turns " " into "" and SQLite
internal/store/items_test.go:2143
FunctionTestFailDecisionJob_BothWritesRefusedReturnsBoth
(t *testing.T)
internal/store/decisions_failopen_test.go:105
FunctionTestFailDecisionJob_EmptyMessageIsAFailureNotASupersede
(t *testing.T)
internal/store/decisions_failopen_test.go:126
FunctionTestFailDecisionJob_FirstWriteCommittedIsNotCountedTwice
An error from the first UPDATE does not prove it did not commit (a reply lost after the commit). The fallback must then not count the attempt again, a
internal/store/decisions_failopen_test.go:185
FunctionTestFailDecisionJob_RecordsAnyMessage
A failure message is arbitrary provider bytes. Whatever it holds, the failure is recorded: attempts counted, the set reads as failing, and the job is
internal/store/decisions_test.go:453
FunctionTestFailDecisionJob_RefusedMessageIsRecordedFixed
(t *testing.T)
internal/store/decisions_failopen_test.go:74
FunctionTestFailDecisionJob_SanitiseBeforeCut
Sanitising can grow a message (NUL or an invalid byte becomes a 3-byte U+FFFD), so it must run BEFORE the cut or the stored value can exceed the limit
internal/store/decisions_test.go:537
FunctionTestFallbackTerminalsCoverEveryWontFixSpelling
BUG-3546: a collection whose status option is the hyphenated `wont-fix`, with no terminal_options declared, never closed those items, because the fall
internal/models/bug3546_terminal_spellings_test.go:15
FunctionTestFamilySharedGroceries
(t *testing.T)
internal/collections/templates_family_test.go:155
FunctionTestFamilyTemplatesShareSchemas
Both family templates share one schema per collection.
internal/collections/templates_family_test.go:184
FunctionTestFamilyTemplates_HiddenAndShape
(t *testing.T)
internal/collections/templates_family_test.go:45
FunctionTestFencedTx_AdmitsOnlyTheCurrentEpochOfAnActiveInstall
The fence admits only the install, epoch and workspace the request was admitted under, while the install is active.
internal/store/fenced_tx_test.go:65
FunctionTestFencedTx_AllocatesWhatTheHumanPathWould
The numbers a fenced write would allocate are the human create's own.
internal/store/fenced_tx_test.go:136
FunctionTestFencedTx_CannotBeMadeOutsideBeginFenced
No package but this one can make a usable FencedTx: every field is unexported (so a literal elsewhere does not compile), and a zero value, the only th
internal/store/fenced_tx_test.go:302
FunctionTestFencedTx_CompanionChecks
Writes are fenced on companion collections, and a derived row on the CURRENT collection of the live item it hangs off, in this workspace.
internal/store/fenced_tx_test.go:101
FunctionTestFencedTx_DisableWaitsForAnOpenFence
Postgres: the fence's shared lock and the disable's exclusive lock serialize. A disable waits for an open FencedTx; once it commits, the next BeginFen
internal/store/fenced_tx_test.go:183
FunctionTestFencedTx_FinishedTransactionRefusesWork
(t *testing.T)
internal/store/fenced_tx_test.go:155
FunctionTestFencedTx_OnlyAppstoreOpensOne
Only internal/appstore opens a FencedTx (SPEC-6 §4). Every other package in the module, its tests included, is parsed and must not reference BeginFenc
internal/store/fenced_tx_test.go:254
FunctionTestFencedTx_SeqLockBlocksAHumanCreate
Postgres: a FencedTx holding the workspace seq lock makes a human create in the same workspace wait, so the two cannot allocate the same seq.
internal/store/fenced_tx_test.go:224
FunctionTestFetch_ContextCancel
(t *testing.T)
internal/urlimport/fetch_test.go:225
FunctionTestFetch_DialerBlocksLoopbackHostname
(t *testing.T)
internal/urlimport/fetch_test.go:208
FunctionTestFetch_HappyPath
(t *testing.T)
internal/urlimport/fetch_test.go:81
FunctionTestFetch_Non2xx
(t *testing.T)
internal/urlimport/fetch_test.go:157
FunctionTestFetch_RedirectRevalidated
(t *testing.T)
internal/urlimport/fetch_test.go:174
FunctionTestFetch_SSRFRejected
(t *testing.T)
internal/urlimport/fetch_test.go:105
FunctionTestFetch_SizeCap
(t *testing.T)
internal/urlimport/fetch_test.go:115
FunctionTestFetch_Timeout
(t *testing.T)
internal/urlimport/fetch_test.go:141
FunctionTestFieldConflictProperty_AliasGroupsRefuseAcrossEverySourcePair
TestFieldConflictProperty_AliasGroupsRefuseAcrossEverySourcePair is the PROPERTY the case tests above are instances of (the whole population, not one
internal/mcp/catalog_item_fields_test.go:1446
FunctionTestFieldConflictProperty_SourcesDerivedFromTheDeclaredSchema
TestFieldConflictProperty_SourcesDerivedFromTheDeclaredSchema closes the gap in the case tests: the property above enumerates its sources by hand, and
internal/mcp/catalog_item_fields_test.go:1647
FunctionTestFieldKeysForKind
(t *testing.T)
internal/artifact/decode_test.go:109
FunctionTestFieldRange_BothShapes
(t *testing.T)
internal/store/items_field_range_test.go:114
FunctionTestFieldRange_Completed
(t *testing.T)
internal/store/items_field_range_test.go:170
FunctionTestFieldRange_Created
(t *testing.T)
internal/store/items_field_range_test.go:157
FunctionTestFieldRange_UnsafeKeyMatchesNothing
A caller-supplied key reaches the SQL text on both dialects (JSONExtractText interpolates it), so the store itself must refuse what is not a plain key
internal/store/items_field_range_test.go:221
FunctionTestFieldSortOrdersNumbersByValue
Sorting on a number field orders by value, so equal values in different spellings sit together (SQLite; json_extract yields a number).
internal/server/bug3202_semantic_compare_test.go:113
FunctionTestFieldSpan_InvalidKeyVoidsTheWholeSpan
An invalid non-empty key on either end of a span voids the whole span filter: the start-range clause must not still return items.
internal/store/items_field_range_test.go:252
FunctionTestFieldSpan_Overlap
(t *testing.T)
internal/store/items_field_range_test.go:275
FunctionTestFieldUsage_TASK2188_Counts
(t *testing.T)
internal/server/task2188_field_usage_test.go:88
FunctionTestFieldUsage_TASK2188_Gates
The read has the PATCH's gates: an editor cannot read it, and an owner restricted away from a collection gets the 404 the PATCH gives.
internal/server/task2188_field_usage_test.go:213
FunctionTestFieldUsage_TASK2188_NothingOrphanedNoWarning
An edit that removes nothing carries no orphan report, and neither does a removal no item holds a value for: the response is byte-identical to before.
internal/server/task2188_field_usage_test.go:152
FunctionTestFieldUsage_TASK2188_OrphanedOptionOnLaterWrites
What an orphaned option value does to later writes, which is what the editor's notice says (measured, not assumed): an edit to ANOTHER field keeps it,
internal/server/task2188_field_usage_test.go:178
FunctionTestFieldUsage_TASK2188_UpdateNamesWhatItOrphaned
(t *testing.T)
internal/server/task2188_field_usage_test.go:106
FunctionTestFieldValueDialectResidual
The residual dialect_fieldvalue.go states: a NON-integer number renders with each dialect's own number text. Equality stays numeric, so the filter agr
internal/store/field_value_dialect_test.go:365
FunctionTestFieldValueEqualityIsTypeAware
(A) equality: list filters, the any-of filter, the search filter, the uniqueness probe and the option-rename migration.
internal/store/field_value_dialect_test.go:118
FunctionTestFieldValueNumberExtremes
Number extremes. A literal beyond float64 range still equals its own spelling on both dialects. The residual class stated in dialect_fieldvalue.go, on
internal/store/field_value_dialect_test.go:397
FunctionTestFieldValueRenderedTextAgrees
(C) values: the link status projection, the search status facet and the report distribution render the same canonical text on both dialects.
internal/store/field_value_dialect_test.go:257
FunctionTestFieldValueSortAgrees
(C) sort, and BUG-3218's lexical number sort: numbers numerically, then strings, booleans, other shapes, and NULLs last in both directions.
internal/store/field_value_dialect_test.go:321
FunctionTestFieldValueTerminalCountsAgree
(B) terminal-list counts: a boolean or number is done exactly when its canonical text is a terminal option. Done: "done", "5", 5, true, 1e3, 1000.0. O
internal/store/field_value_dialect_test.go:222
FunctionTestFieldValuesRefusesSecondDecode
The FieldValues backstop: a struct that forgets RefuseRepeatedMember still cannot silently keep only the last occurrence.
internal/models/repeated_member_test.go:74
FunctionTestFieldWriteDoorsKeepIntegersAbove2Pow53
BUG-3202. Every door that writes an item's `fields` decoded the blob into map[string]any, so each JSON number became a float64 and the re-encode round
internal/server/bug3202_field_number_precision_test.go:22
FunctionTestFieldsPatchDeleteIsNotReportedAsUndeclared
A nil value in fields_patch DELETES the key, so it must not be reported as an undeclared field that was stored (BUG-2850). The warning would otherwise
internal/server/handlers_items_field_coercion_test.go:441
FunctionTestFieldsPatchFromMerge
TestFieldsPatchFromMerge covers the diff helper directly: what it carries, what it omits, and what it deletes. The omission is the whole point — every
internal/server/bug3049_bulk_field_patch_test.go:101
FunctionTestFieldsPatchNormalisesCarriedBlankUnderTheLock
(t *testing.T)
internal/store/bug3028_relation_blank_test.go:69
FunctionTestFilenameFromContentDisposition
TestFilenameFromContentDisposition covers the header-parsing helper, including the empty-header fallback path and path-traversal defense (a hostile se
internal/cli/artifact_test.go:134
FunctionTestFilterAgentAttentionKeepsOnlyActionableBuckets
(t *testing.T)
cmd/pad/query_test.go:10
FunctionTestFilterKeyRuleMatchesStoreSanitizer
TestFilterKeyRuleMatchesStoreSanitizer pins CollectionTraits.Validate's filter-key rule to the store's own field-key sanitizer. The two are duplicate
internal/store/collection_traits_backfill_test.go:212
FunctionTestFilterWatchesByCurrentAccess_ExcludesRevokedMembership
TestFilterWatchesByCurrentAccess_ExcludesRevokedMembership covers A watch row survives a workspace membership removal (nothing deletes it), so without
internal/server/handlers_watch_access_test.go:26
FunctionTestFilterWatchesByCurrentAccess_GuestItemGrantKeepsWatch
TestFilterWatchesByCurrentAccess_GuestItemGrantKeepsWatch exercises the item-level-grant branch: a non-member guest with an explicit item grant (not a
internal/server/handlers_watch_access_test.go:82
FunctionTestFilterWatchesByCurrentAccess_ItemGrantDoesNotWidenToSiblingItem
TestFilterWatchesByCurrentAccess_ItemGrantDoesNotWidenToSiblingItem covers TASK-2533: VisibleCollectionIDs / GuestVisibleCollectionIDs deliberately ov
internal/server/handlers_watch_access_test.go:181
FunctionTestFilterWatchesByCurrentAccess_KeepsActiveMembership
TestFilterWatchesByCurrentAccess_KeepsActiveMembership is the happy-path sanity check alongside the revocation test above.
internal/server/handlers_watch_access_test.go:66
FunctionTestFinalFoldInsCredentialNamesAndURLNamesInWalks
(t *testing.T)
internal/logging/redaction_followups_test.go:1174
FunctionTestFindAgent_NameAndAliases
(t *testing.T)
internal/mcp/install_test.go:14
FunctionTestFindMatchingLinkIDMatchesCanonicalType
(t *testing.T)
cmd/pad/lineage_test.go:9
FunctionTestFindMatchingLinkIDSkipsOtherRelationships
(t *testing.T)
cmd/pad/lineage_test.go:21
FunctionTestFireAndReanchorDoNotJournal
(t *testing.T)
internal/store/commitment_journal_test.go:301
FunctionTestFireDueRemindersFiresOnlyArrivedReminders
TestFireDueRemindersFiresOnlyArrivedReminders is the core pass: an arrived reminder fires and a future one is untouched. MUTANT: flipping the candida
internal/store/reminders_test.go:55
← previousnext →19,701–19,800 of 28,840, ranked by callers