MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestParse
(t *testing.T)
internal/acceptance/acceptance_test.go:8
FunctionTestParseAttachmentFilename_AppliesBasenameDefense
(t *testing.T)
internal/mcp/dispatch_http_attachments_test.go:396
FunctionTestParseAttachmentFilename_HandlesQuotedAndUnquoted
(t *testing.T)
internal/mcp/dispatch_http_attachments_test.go:367
FunctionTestParseAttachmentFilename_PrefersFilenameStarOverFilename
(t *testing.T)
internal/mcp/dispatch_http_attachments_test.go:357
FunctionTestParseAttachmentFilename_PreservesSemicolonsInQuotedFilename
(t *testing.T)
internal/mcp/dispatch_http_attachments_test.go:385
FunctionTestParseAttachmentFilename_StandardForm
--- parseAttachmentFilename ---
internal/mcp/dispatch_http_attachments_test.go:350
FunctionTestParseAttachmentHref
(t *testing.T)
internal/server/render/attachments_test.go:31
FunctionTestParseCORSOrigins
(t *testing.T)
internal/server/middleware_security_test.go:44
FunctionTestParseCollectionFieldsDSL_EmptyReturnsEmptyFields
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:676
FunctionTestParseCollectionFieldsDSL_LabelTitleCasesUnderscoredKey
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:644
FunctionTestParseCollectionFieldsDSL_RejectsMalformedEntry
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:669
FunctionTestParseCollectionTraitsEmptyForms
TestParseCollectionTraitsEmptyForms locks the "declares nothing" cases. A collection with no traits is the common case, so none of these may error — a
internal/models/collection_traits_test.go:12
FunctionTestParseCollectionTraitsRejectsTrailingContent
TestParseCollectionTraitsRejectsTrailingContent closes the gap between the "strict parsing" claim and what json.Decoder actually does: Decode stops at
internal/models/collection_traits_test.go:202
FunctionTestParseCollectionTraitsRejectsUnknownFields
TestParseCollectionTraitsRejectsUnknownFields is the fail-loud half (SPEC-0 L6). A typo in a declaration must surface AS a parse failure rather than a
internal/models/collection_traits_test.go:28
FunctionTestParseExamplesFromLong_BasicBlock
(t *testing.T)
internal/cmdhelp/json_test.go:486
FunctionTestParseExamplesFromLong_DropsCommentLines
(t *testing.T)
internal/cmdhelp/json_test.go:576
FunctionTestParseExamplesFromLong_EmptyOrMalformed
(t *testing.T)
internal/cmdhelp/json_test.go:539
FunctionTestParseExamplesFromLong_NoHeader
(t *testing.T)
internal/cmdhelp/json_test.go:507
FunctionTestParseExamplesFromLong_StopsAtUnindentedProse
(t *testing.T)
internal/cmdhelp/json_test.go:553
FunctionTestParseExamplesFromLong_StripsSameLineComments
(t *testing.T)
internal/cmdhelp/example_validation_test.go:289
FunctionTestParseExamplesFromLong_VariantHeaders
(t *testing.T)
internal/cmdhelp/json_test.go:523
FunctionTestParseExamples_FiltersBlankAndComments
(t *testing.T)
internal/cmdhelp/json_test.go:636
FunctionTestParseExamples_MatchesLongForTheSameBlock
TASK-2865: the Example field reads a block the way Long does, so a block moved from Long to Example emits the same examples. A `#` inside quotes is a
internal/cmdhelp/example_validation_test.go:311
FunctionTestParseFieldChange
(t *testing.T)
internal/store/status_transitions_test.go:283
FunctionTestParseFieldFlagKeepsNumberLiterals
BUG-3202: `--field n=<integer above 2^53>` is sent with every digit. The value is typed client-side before the request exists, so a float64 here round
cmd/pad/field_flag_number_literal_test.go:13
FunctionTestParseFieldFlag_MultiRelationLeavesUnparseableTextAlone
(t *testing.T)
cmd/pad/multi_relation_field_flag_test.go:29
FunctionTestParseFieldFlag_MultiRelationParsesAJSONArray
P14 — `pad item create ... --field 'members=["PEOPL-1"]'` (PLAN-2857 U4). This function runs BEFORE the request exists, so it is a second copy of the
cmd/pad/multi_relation_field_flag_test.go:15
FunctionTestParseFieldFlag_ScalarRelationStillTakesABareString
(t *testing.T)
cmd/pad/multi_relation_field_flag_test.go:38
FunctionTestParseFieldKVP_PaddedKeyRefused
BUG-2870: the remote /mcp door and the CLI doors must answer the same way for the same `key=value` entry. The three BUG-2850 tests that mention this d
internal/mcp/field_entry_door_parity_test.go:21
FunctionTestParseFieldKVP_PaddedValueVerbatim
A padded VALUE reaches the item verbatim now. This is the behaviour change a caller can notice: this door used to trim it (and therefore type it), so
internal/mcp/field_entry_door_parity_test.go:42
FunctionTestParseFieldKVP_RefusalAbortsTheCall
A refusal must abort the whole call rather than dropping one entry: a caller that asked for two fields and silently got one has no way to tell.
internal/mcp/field_entry_door_parity_test.go:66
FunctionTestParseFieldKVP_Variants
(t *testing.T)
internal/mcp/dispatch_http_test.go:773
FunctionTestParseFieldsDSL_BareMultiRelationIsRefused
(t *testing.T)
internal/collections/dsl_relation_test.go:113
FunctionTestParseFieldsDSL_BareRelationIsRefused
A bare `owner:relation` is REFUSED rather than producing the unusable field the old parser built. The error names the expected shape, because a caller
internal/collections/dsl_relation_test.go:37
FunctionTestParseFieldsDSL_MultiRelationRefusesAnOptionsList
(t *testing.T)
internal/collections/dsl_relation_test.go:129
FunctionTestParseFieldsDSL_MultiRelationTakesTheTargetCollection
`multi_relation` (PLAN-2857 U4) takes the third part as its TARGET COLLECTION, exactly as `relation` does. The reason it is a real test and not a for
internal/collections/dsl_relation_test.go:92
FunctionTestParseFieldsDSL_MultiSelectStillTakesOptions
The counterfactual for the pair above: an ordinary multi-valued type is UNTOUCHED and still takes its options list. Without this leg, a change that ro
internal/collections/dsl_relation_test.go:144
FunctionTestParseFieldsDSL_NonRelationStillTakesOptions
CONTROL: the change must not have altered how every OTHER type reads its third part. Without this, moving the options branch could break select and no
internal/collections/dsl_relation_test.go:68
FunctionTestParseFieldsDSL_RelationRefusesAnOptionsList
A comma means the caller wrote an OPTIONS list — the pre-U6 shape. Refusing names the mistake; taking the first entry would silently pick a target the
internal/collections/dsl_relation_test.go:54
FunctionTestParseFieldsDSL_RelationTakesTheTargetCollection
The `--fields` DSL and relation targets (PLAN-2857 U6). The gap this closes was not "the DSL cannot declare a target". It was worse: `owner:relation:
internal/collections/dsl_relation_test.go:16
FunctionTestParseGoSumSkipsGoModOnlyLines
TASK-1391: depages dates what a change adds and fails on anything younger than --days. These pin each source, the base diff, the allowlist and the exi
cmd/depages/main_test.go:20
FunctionTestParseItemNumber
TestParseItemNumber covers the helper that gates the bare-numeric search path.
internal/store/store_test.go:1886
FunctionTestParseItemRef_AcceptsTheGrammarTheDoorsEnforce
The parser half of the claim, stated as a round trip rather than as a restatement of the rule: what the doors accept, the parser resolves.
internal/store/prefix_doors_test.go:97
FunctionTestParseLineRange
(t *testing.T)
internal/bodypatch/lines_test.go:5
FunctionTestParseMCPAuditPaging_CapsAt200
(t *testing.T)
internal/server/handlers_mcp_audit_test.go:190
FunctionTestParseMCPEnabledEnv
(t *testing.T)
internal/config/mcp_test.go:113
FunctionTestParseMCPRequestBodyWithSource
BUG-2819: every branch of the audit parser records where the tool name came from, decided at the branch itself. The discriminating rows are the forged
internal/server/bug2819_audit_source_test.go:15
FunctionTestParseMemLimit
--------------------------------------------------------------------------- 6. env knobs
internal/materialize/supervisor_test.go:731
FunctionTestParseMentions
(t *testing.T)
internal/links/mentions_test.go:11
FunctionTestParsePSRSS
The parser alone: fixed strings, nothing executed, so it runs everywhere including the Nix build sandbox.
internal/materialize/memcap_ps_test.go:13
FunctionTestParsePackageLockTakesRegistryPackagesOnly
(t *testing.T)
cmd/depages/main_test.go:28
FunctionTestParsePadURI_Forms
(t *testing.T)
internal/mcp/resources_test.go:40
FunctionTestParsePlaybookCLIArgsErrors
TestParsePlaybookCLIArgsErrors verifies the strict parser surfaces the right errors for each malformed-input class. The CLI relays these to the user v
internal/server/handlers_playbooks_test.go:285
FunctionTestParsePlaybookCLIArgsOptionalNotPositional
TestParsePlaybookCLIArgsOptionalNotPositional verifies the strict rule that ONLY required args are positional. With an optional arg declared before a
internal/server/handlers_playbooks_test.go:351
FunctionTestParseRejectsNamesThatCouldForgeAKeyPath
(t *testing.T)
internal/redisns/redisns_test.go:64
FunctionTestParseRetryAfterSeconds
BUG-3147: Retry-After arrives in either of RFC 9110's two forms, and a value that cannot be honoured must read as "no suggestion" (0), never as a nega
internal/cli/bug3147_retry_after_test.go:12
FunctionTestParseSessionIdentity_AbsentHeadersAreTheS1Shape
TestParseSessionIdentity_AbsentHeadersAreTheS1Shape covers the compatibility leg that matters most: a pre-S2 client (or any client that just doesn't s
internal/server/session_identity_test.go:133
FunctionTestParseSessionIdentity_ArmedQueryParam
TestParseSessionIdentity_ArmedQueryParam is PLAN-2613 S1's wiring check for the `armed` query param — deliberately a query param, not a third header,
internal/server/session_identity_test.go:165
FunctionTestParseSessionIdentity_GarbageDegradesRatherThanRejects
TestParseSessionIdentity_GarbageDegradesRatherThanRejects pins the no-fail contract. There is no error return by design: a client with a mangled heade
internal/server/session_identity_test.go:146
FunctionTestParseSessionIdentity_ReadsBothHeaders
TestParseSessionIdentity_ReadsBothHeaders is the wiring check: the right header feeds the right field. Cheap, and it is what catches a copy-paste that
internal/server/session_identity_test.go:112
FunctionTestParseSessionPID
(t *testing.T)
internal/server/session_identity_test.go:81
FunctionTestParseStatVsize
(t *testing.T)
internal/materialize/refuse_test.go:134
FunctionTestParseTrustedProxyCIDRs
(t *testing.T)
internal/server/middleware_realip_test.go:10
FunctionTestParseWall
(t *testing.T)
internal/schedule/wall_test.go:9
FunctionTestParseWatchPredicate
(t *testing.T)
internal/server/handlers_watch_events_test.go:1308
FunctionTestParseWorkflowSharesTheRepoSHA
(t *testing.T)
cmd/depages/main_test.go:74
FunctionTestParseWorkspaceListJSON
TestParseWorkspaceListJSON locks the JSON shape ExecDispatcher's ListWorkspaces consumes. Emits the same fields `pad workspace list --format json` wou
internal/mcp/errors_test.go:225
FunctionTestParseWorkspaceSettingsEmpty
(t *testing.T)
internal/models/workspace_settings_test.go:5
FunctionTestParseWorkspaceSettingsExtractsStructuredContext
(t *testing.T)
internal/models/workspace_settings_test.go:18
FunctionTestParse_Refusals
Each mutation breaks one rule; Parse must refuse it at the named path.
internal/appmanifest/manifest_test.go:63
FunctionTestParse_SizeAndTrailingData
(t *testing.T)
internal/appmanifest/manifest_test.go:145
FunctionTestParse_Valid
(t *testing.T)
internal/appmanifest/manifest_test.go:46
FunctionTestPartialAnswerSetIsAnError
(t *testing.T)
internal/decision/decision_test.go:479
FunctionTestPartialBodyReadIsCarriedOnTheError
A body read that failed partway was discarded, so a caller could not tell an absent ErrorType from an unread one.
internal/decision/review_test.go:141
FunctionTestPartialBodyReadIsReachableWithErrorsIs
The partial-read failure sat on BodyReadErr but was invisible to errors.Is, so a caller could not ask "did this fail because the read was cut off" wit
internal/decision/review2_test.go:150
FunctionTestPassThrough_ForwardsToDispatcher
TestPassThrough_ForwardsToDispatcher exercises the helper end-to-end against a fake dispatcher. The dispatched cmdPath + cliArgs prove that the input
internal/mcp/catalog_test.go:322
FunctionTestPasswordChange_InvalidatesOtherSessions
TestPasswordChange_InvalidatesOtherSessions verifies that rotating a password (a) deletes every existing session for the user except the caller's, and
internal/server/handlers_auth_session_rotation_test.go:14
FunctionTestPasswordChange_RejectsPasswordDerivedFromPendingName
TestPasswordChange_RejectsPasswordDerivedFromPendingName verifies that a PATCH /auth/me that changes BOTH name and password is checked against the NEW
internal/server/password_strength_test.go:103
FunctionTestPasswordResetLogsRedactCredentials
(t *testing.T)
internal/server/log_redaction_test.go:37
FunctionTestPasswordReset_UsesIdentityContext
TestPasswordReset_UsesIdentityContext verifies the reset endpoint refuses a password derived from the target user's identity. A regression would mean
internal/server/password_strength_test.go:129
FunctionTestPastCascadeCancelsAnArmedReminderAndFiresNothing
Item 1 is the parent (03-05) and item 0 its child (03-04): a day before it.
internal/store/commitment_cascade_past_test.go:34
FunctionTestPastCascadeKeepsTheChildDeadlineAndItsOccurrenceKey
A recurring child with a deadline: the cascade moves its target behind the clock, the occurrence stays, and the tick records one miss at the deadline
internal/store/commitment_cascade_past_test.go:93
FunctionTestPastCascadeOnAFloatingChildKeepsItsInstantAcrossAZoneChange
A floating child, armed and then fired, with a deadline override: a past cascade and a later change of the recipient zone leave the occurrence's insta
internal/store/commitment_cascade_past_test.go:136
FunctionTestPastDeadlineAndDependentBoundsAreIndependent
(t *testing.T)
internal/store/commitment_past_deadline_test.go:122
FunctionTestPastDeadlineHTTPContract
(t *testing.T)
internal/server/commitment_past_deadline_test.go:9
FunctionTestPastDeadlineHTTPVisibilityAndEditGates
(t *testing.T)
internal/server/commitment_past_deadline_test.go:63
FunctionTestPastDeadlineMCPDispatch
(t *testing.T)
internal/mcp/schedule_past_deadline_test.go:26
FunctionTestPastDeadlineMCPErrorParity
(t *testing.T)
internal/mcp/schedule_past_deadline_test.go:11
FunctionTestPastDeadlineMCPValidation
(t *testing.T)
internal/mcp/schedule_past_deadline_test.go:50
FunctionTestPastMoveRecordsPassedOverInstances
(t *testing.T)
internal/store/commitment_move_test.go:265
FunctionTestPatchCollection_FlexibleSettingsShape
TestPatchCollection_FlexibleSettingsShape exercises CollectionUpdate.UnmarshalJSON (IDEA-1488). The PATCH route is api/v1/workspaces/{ws}/collections/
internal/server/handlers_views_collections_jsonb_test.go:175
FunctionTestPatchItemConflictWinsOverOpenChildrenGuard
TestPatchItemConflictWinsOverOpenChildrenGuard: when a stale expected_updated_at AND a guarded terminal transition both apply, the optimistic-concurre
internal/server/handlers_items_fieldpatch_test.go:341
FunctionTestPatchItemEmptyTitleRefused
HTTP-layer regressions for item title validation (BUG-2833 empty, BUG-2831 length). These sit alongside the store-level tests in internal/store rathe
internal/server/handlers_items_title_test.go:35
FunctionTestPatchItemExpectedUpdatedAtConflict
TestPatchItemExpectedUpdatedAtConflict is the HTTP-layer conflict-envelope test (TASK-2022): a stale expected_updated_at yields a 409 with the pad-str
internal/server/handlers_items_fieldpatch_test.go:150
FunctionTestPatchItemExpectedUpdatedAtMalformed
TestPatchItemExpectedUpdatedAtMalformed: a non-RFC3339 token is a 400, not a 500 or a silent pass.
internal/server/handlers_items_fieldpatch_test.go:217
FunctionTestPatchItemExpectedUpdatedAtMatchSucceeds
TestPatchItemExpectedUpdatedAtMatchSucceeds: round-tripping the item's real updated_at lets the update through.
internal/server/handlers_items_fieldpatch_test.go:199
FunctionTestPatchItemFieldsAndFieldsPatchMutuallyExclusive
TestPatchItemFieldsAndFieldsPatchMutuallyExclusive: sending both is a 400.
internal/server/handlers_items_fieldpatch_test.go:91
FunctionTestPatchItemFieldsPatchAllowsOrdinaryKeys
TestPatchItemFieldsPatchAllowsOrdinaryKeys is the over-breadth control leg. Without it, a gate that refused EVERY fields_patch would pass every assert
internal/server/handlers_items_reserved_fieldpatch_test.go:256
FunctionTestPatchItemFieldsPatchAutoFillsEmptyDate
TestPatchItemFieldsPatchAutoFillsEmptyDate: when end_date is empty, a status→completed patch DOES auto-fill it (the feature still works).
internal/server/handlers_items_fieldpatch_test.go:308
FunctionTestPatchItemFieldsPatchMerges
TestPatchItemFieldsPatchMerges is the HTTP-layer regression for the field-level merge (IDEA-1480 / TASK-2022): a PATCH carrying `fields_patch` changes
internal/server/handlers_items_fieldpatch_test.go:42
← previousnext →22,401–22,500 of 28,840, ranked by callers