Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
28,840 in github.com/PerpetualSoftware/pad
⨍
Functions
28,840
◇
Types & classes
3,245
Function
TestBuildCLIArgs_ExplicitWorkspaceOverridesSession
(t *testing.T)
internal/mcp/dispatch_test.go:260
Function
TestBuildCLIArgs_ExplicitWorkspaceWhenNotInCmdInfoFlags
Tests covering BUG-985 (Pad MCP v0.2 Issue Report). Three regressions reported by Claude Desktop after v0.1.0-rc.2: - Bug 1: explicit `workspace` par
internal/mcp/bug985_test.go:34
Function
TestBuildCLIArgs_HyphenatedFlagAcceptedAsSnakeCase
(t *testing.T)
internal/mcp/dispatch_test.go:58
Function
TestBuildCLIArgs_HyphenatedRepeatableFlagRoundTrips
(t *testing.T)
internal/mcp/dispatch_test.go:90
Function
TestBuildCLIArgs_InjectsSessionWorkspace
(t *testing.T)
internal/mcp/dispatch_test.go:249
Function
TestBuildCLIArgs_KebabInputKeyIsIgnored
(t *testing.T)
internal/mcp/dispatch_test.go:109
Function
TestBuildCLIArgs_ObjectFlagValueIsJSONEncoded
TestBuildCLIArgs_ObjectFlagValueIsJSONEncoded covers TASK-1335: when an MCP client passes a structured object as a flag value (e.g. `schema` for `pad
internal/mcp/dispatch_test.go:420
Function
TestBuildCLIArgs_OptionalArgMissingOK
(t *testing.T)
internal/mcp/dispatch_test.go:234
Function
TestBuildCLIArgs_PositionalsAndScalarFlags
(t *testing.T)
internal/mcp/dispatch_test.go:10
Function
TestBuildCLIArgs_RepeatableArgExpands
(t *testing.T)
internal/mcp/dispatch_test.go:288
Function
TestBuildCLIArgs_RepeatableFlag
(t *testing.T)
internal/mcp/dispatch_test.go:302
Function
TestBuildCLIArgs_RequiredArgMissingErrors
(t *testing.T)
internal/mcp/dispatch_test.go:221
Function
TestBuildCLIArgs_RootFlagsDoNotOverrideExplicitInput
(t *testing.T)
internal/mcp/dispatch_test.go:194
Function
TestBuildCLIArgs_RootFlagsEmptyValueSkipped
(t *testing.T)
internal/mcp/dispatch_test.go:178
Function
TestBuildCLIArgs_RootFlagsInjected
(t *testing.T)
internal/mcp/dispatch_test.go:163
Function
TestBuildCLIArgs_StdinFlagDroppedDefensively
(t *testing.T)
internal/mcp/dispatch_test.go:133
Function
TestBuildCLIArgs_StringSliceTypeAlsoRepeats
(t *testing.T)
internal/mcp/dispatch_test.go:321
Function
TestBuildCommentState_ClipsAtTheBodyBound
A comment is clipped at the BODY bound, not the trail's 2,000 runes: a credential at rune 2,786 of a long status update must reach the provider.
internal/decision/comment_state_test.go:29
Function
TestBuildCommentState_ShapeAndHash
The comment subject's state is exactly title, collection and the comment, hashed over the bytes that are sent.
internal/decision/comment_state_test.go:12
Function
TestBuildHTMLShellCloudIncludesMarketingFooter
TestBuildHTMLShellCloudIncludesMarketingFooter pins the Cloud-mode marketing-footer link order from docs/brand.md §7 and the copyright line. Full cano
internal/email/shell_test.go:51
Function
TestBuildHTMLShellSelfHostedNeutral
TestBuildHTMLShellSelfHostedNeutral pins that self-hosted output carries no getpad.dev marketing footer. Operators ship Pad under their own brand and
internal/email/shell_test.go:12
Function
TestBuildHTTPRequest_StripsChiRouteCtx
TestBuildHTTPRequest_StripsChiRouteCtx is the unit-level pin for the strip itself: feed a context carrying a chi RouteCtxKey, confirm the resulting re
internal/mcp/dispatch_http_chi_route_ctx_test.go:116
Function
TestBuildMetaPayload_FallbackVersion
TestBuildMetaPayload_FallbackVersion guarantees an empty padVersion resolves to FallbackVersion — same invariant the handshake's serverInfo.version ho
internal/mcp/meta_test.go:16
Function
TestBuildMetaPayload_JSONFieldNames
TestBuildMetaPayload_JSONFieldNames locks the wire-level field names. External consumers (the future Pad Cloud remote MCP, third-party agents) pin aga
internal/mcp/meta_test.go:81
Function
TestBuildMetaPayload_PassesThroughExplicit
TestBuildMetaPayload_PassesThroughExplicit verifies the runtime version is faithfully forwarded into the meta payload.
internal/mcp/meta_test.go:70
Function
TestBuildPlainShellMatchesHTMLBranching
TestBuildPlainShellMatchesHTMLBranching ensures the plain-text shell follows the same self-hosted vs Cloud branching as the HTML helper. Plain text ha
internal/email/shell_test.go:95
Function
TestBuildQuery_HandlesJSONNumber
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:173
Function
TestBuildQuery_RenamesAndTypes
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:147
Function
TestBuildQuery_SkipsEmptyAndMissing
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:125
Function
TestBuildReconcileFindingsMergedPROpenTask
(t *testing.T)
cmd/pad/reconcile_test.go:10
Function
TestBuildReconcileFindingsMissingBranchOnOpenPR
(t *testing.T)
cmd/pad/reconcile_test.go:63
Function
TestBuildReconcileFindingsOpenPRDoneTask
(t *testing.T)
cmd/pad/reconcile_test.go:42
Function
TestBuildRelatedGroupsIncludesLineageAndDependencySections
(t *testing.T)
cmd/pad/query_test.go:45
Function
TestBuildTimeline_AttributionOnlyRowAcrossASecondBoundary
The flake behind TestTimeline_AgentBodyOnlyEditHasNoEmptyCard, made deterministic: an agent's attribution-only row whose version landed in the NEXT se
internal/server/plan2348_timeline_drops_test.go:252
Function
TestBuildToolFromDef_ActionRequiredAndEnumerated
TestBuildToolFromDef_ActionRequiredAndEnumerated verifies that every tool's input schema enforces `action` as required and enumerates the declared act
internal/mcp/catalog_test.go:68
Function
TestBuildWorkspaceContext
(t *testing.T)
internal/cli/workspace_context_detect_test.go:47
Function
TestBuild_AlternationProducesEnum
(t *testing.T)
internal/cmdhelp/json_test.go:177
Function
TestBuild_AppliesResolver
(t *testing.T)
internal/cmdhelp/dynamic_test.go:355
Function
TestBuild_CommandPathKeysAreSpaceJoined
(t *testing.T)
internal/cmdhelp/json_test.go:341
Function
TestBuild_DescriptionVsSummary
(t *testing.T)
internal/cmdhelp/json_test.go:328
Function
TestBuild_EmbeddedFlagFragmentsFiltered
(t *testing.T)
internal/cmdhelp/json_test.go:221
Function
TestBuild_ExamplesParsed
(t *testing.T)
internal/cmdhelp/json_test.go:307
Function
TestBuild_FallsBackToLongWhenExampleEmpty
(t *testing.T)
internal/cmdhelp/json_test.go:589
Function
TestBuild_FlagTypeMapping
(t *testing.T)
internal/cmdhelp/json_test.go:256
Function
TestBuild_GlobalFlagsEmittedTopLevelOnly
(t *testing.T)
internal/cmdhelp/json_test.go:120
Function
TestBuild_HiddenCommandsAndFlagsExcluded
(t *testing.T)
internal/cmdhelp/json_test.go:142
Function
TestBuild_MaxDepthLimitsWalk
(t *testing.T)
internal/cmdhelp/json_test.go:360
Function
TestBuild_PositionalArgsParsed
(t *testing.T)
internal/cmdhelp/json_test.go:233
Function
TestBuild_PrefersExampleFieldOverLong
(t *testing.T)
internal/cmdhelp/json_test.go:612
Function
TestBuild_TargetSubtree
(t *testing.T)
internal/cmdhelp/json_test.go:388
Function
TestBuild_TopLevelEnvelope
(t *testing.T)
internal/cmdhelp/json_test.go:94
Function
TestBuild_ValidArgsFillsEnumOnNamedArg
(t *testing.T)
internal/cmdhelp/json_test.go:201
Function
TestBuild_VariadicArgsRepeatable
(t *testing.T)
internal/cmdhelp/json_test.go:158
Function
TestBuild_ZeroDefaultsSuppressed
(t *testing.T)
internal/cmdhelp/json_test.go:288
Function
TestBuiltinFieldChanges
(t *testing.T)
internal/cli/builtin_format_test.go:29
Function
TestBuiltinHashTracksTextNotStatus
The hash moves with the text and the fields an update writes, and not with status, which an update never touches.
internal/collections/builtin_test.go:73
Function
TestBuiltinRegistry
TASK-3462: every convention and playbook Pad ships has a key, one key names one text, and a key is a path an item can record and an API can carry.
internal/collections/builtin_test.go:15
Function
TestBuiltinStateHashNumbersByValue
A number hashes by value, not spelling: Postgres stores fields as jsonb and may respell what the seed text spells another way. Different values still
internal/collections/builtin_test.go:170
Function
TestBuiltinStateOf
Every state, from the one comparison that decides it.
internal/collections/builtin_test.go:117
Function
TestBuiltinStateOfAcrossAChangedKeySet
A library that ADDS a field is a library change: an item that still holds what it was given reads update_available, not diverged (TASK-3462 U2: the it
internal/collections/builtin_test.go:148
Function
TestBuiltinStateOfAddedKeyAlreadySet
A field the library ADDED that the user had already set to their own value is an edit: the item is diverged, so the update is not promised to lose not
internal/collections/builtin_test.go:209
Function
TestBuiltinStateOfDropOnly
A library change that ONLY drops a field is still a change: an item that carries the dropped field is offered the removal.
internal/collections/builtin_test.go:188
Function
TestBuiltinTemplatesHaveCategoryAndIcon
TestBuiltinTemplatesHaveCategoryAndIcon verifies every visible template is assigned a category and icon — these power the categorized picker.
internal/collections/templates_test.go:72
Function
TestBulkEventDelta_MatchesTheMutation
TestBulkEventDelta_MatchesTheMutation pins the batch header's delta to what the mutation actually committed. The delta is the one field of the batch
internal/server/handlers_items_bulk_test.go:755
Function
TestBulkEventDelta_TagsAreDeduped
TestBulkEventDelta_TagsAreDeduped: bulkTagUpdate skips a tag already in its `seen` set, so ["foo", " foo "] adds ONE tag. A delta echoing both would a
internal/server/handlers_items_bulk_test.go:811
Function
TestBulkEventDelta_UntagDedupsWithoutTrimming
TestBulkEventDelta_UntagDedupsWithoutTrimming: untag builds a removal SET from the RAW values, so duplicates collapse but whitespace is significant —
internal/server/handlers_items_bulk_test.go:823
Function
TestBulkEventIsRefusedBeforeItIsMarshalled
(t *testing.T)
internal/store/event_outbox_bounds_test.go:527
Function
TestBulkFieldUpdate_AutoDateDoesNotOverwriteAConcurrentDate
An AUTO-POPULATED date must not overwrite one a concurrent writer set. autoPopulateDates stamps start_date / end_date on a status transition, but onl
internal/server/bug3049_bulk_field_patch_test.go:232
Function
TestBulkFieldUpdate_DoesNotRevertAConcurrentWriteToAnotherField
BUG-3049 — the REST bulk field ops must not revert a field they do not name. `bulkFieldUpdate` reads the item's stored blob (in `handleBulkItems`, be
internal/server/bug3049_bulk_field_patch_test.go:30
Function
TestBulkFieldUpdate_RefusesAnUnreadableFieldsSnapshot
An unreadable stored blob is REFUSED, not silently discarded — and the state it guards is UNREACHABLE through any door, which is why this is a unit te
internal/server/bug3049_bulk_field_patch_test.go:178
Function
TestBulkItems_AdminBearer_RestrictedMemberBlockedOnHiddenItem
TestBulkItems_AdminBearer_RestrictedMemberBlockedOnHiddenItem pins BUG-1918 for handleBulkItems' own direct checkItemVisible call site (the per-ref lo
internal/server/handlers_items_bulk_test.go:533
Function
TestBulkItems_Archive
(t *testing.T)
internal/server/handlers_items_bulk_test.go:149
Function
TestBulkItems_CollectionMoveNotifiesBothScopes
TestBulkItems_CollectionMoveNotifiesBothScopes asserts a bulk collection move emits a batch event for BOTH the source and target collections, so a mem
internal/server/handlers_items_bulk_test.go:408
Function
TestBulkItems_CollectionMoveRefusesAStatusTheTargetDoesNotDeclare
The same refusal on a status move COMBINED with a collection move (bulkMoveCollection). MigrateFields keeps only the target's declared fields, but the
internal/server/bug3154_bulk_undeclared_key_test.go:111
Function
TestBulkItems_CollectionMoveRunsOpenChildrenGuard
TestBulkItems_CollectionMoveRunsOpenChildrenGuard confirms a bulk collection move that also sets a terminal status runs the guard against the destinat
internal/server/handlers_items_bulk_test.go:311
Function
TestBulkItems_CollectionMoveValidatesStatusOverride
TestBulkItems_CollectionMoveValidatesStatusOverride confirms a status override on a collection move is validated against the target schema — an out-of
internal/server/handlers_items_bulk_test.go:483
Function
TestBulkItems_EmitsCollectionScopedBatchEvent
TestBulkItems_EmitsCollectionScopedBatchEvent asserts the batch SSE event is scoped to its collection (so the SSE visibility filter routes it correctl
internal/server/handlers_items_bulk_test.go:351
Function
TestBulkItems_EveryVerbStampsOneBatchID
TestBulkItems_EveryVerbStampsOneBatchID drives all SEVEN bulk legs through the HTTP handler — set-priority, tag, untag, move-status, assign, archive,
internal/server/handlers_items_bulk_test.go:609
Function
TestBulkItems_MoveStatus
(t *testing.T)
internal/server/handlers_items_bulk_test.go:72
Function
TestBulkItems_PartialFailure
(t *testing.T)
internal/server/handlers_items_bulk_test.go:222
Function
TestBulkItems_RefusesAFieldTheItemsCollectionDoesNotDeclare
BUG-3154 — a bulk op whose field KEY the server chooses must not write that key onto an item whose collection does not declare it. Both callers of bu
internal/server/bug3154_bulk_undeclared_key_test.go:25
Function
TestBulkItems_Restore
TestBulkItems_Restore covers the undo path (TASK-1674): a bulk archive followed by a bulk restore brings the items back, resolving the archived (soft-
internal/server/handlers_items_bulk_test.go:180
Function
TestBulkItems_RouteRegistered
TestBulkItems_RouteDoesNotShadowItemSlug guards the route-ordering fix: /items/bulk is a static segment registered before the items/{itemSlug} param r
internal/server/handlers_items_bulk_test.go:576
Function
TestBulkItems_SetPriority
(t *testing.T)
internal/server/handlers_items_bulk_test.go:44
Function
TestBulkItems_StatusMoveRunsOpenChildrenGuard
TestBulkItems_StatusMoveRunsOpenChildrenGuard confirms a bulk status move to a terminal value is rejected (per-row) while the item still has open chil
internal/server/handlers_items_bulk_test.go:276
Function
TestBulkItems_TagAndUntag
(t *testing.T)
internal/server/handlers_items_bulk_test.go:98
Function
TestBulkItems_Validation
(t *testing.T)
internal/server/handlers_items_bulk_test.go:247
Function
TestBulkMove_HiddenAndUnknownTargetsAreIndistinguishable
The bulk endpoint must answer "collection does not exist" and "collection exists but you cannot see it" the SAME way. Answering them with different HT
internal/server/collection_resolve_test.go:521
Function
TestBulkUpdateRefs_AcceptsCommonShapes
--- item bulk-update ---
internal/mcp/dispatch_http_project_test.go:1068
Function
TestBulkUpdateRefs_RejectsBadEntries
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:1098
Function
TestBulkUpdateScheduleActiveKeepsBatchResult
A bulk update keeps its {updated, failed, total} result when an item is refused with schedule_active: the refusal is a per-row failure, the command ex
cmd/pad/schedule_active_update_test.go:16
Function
TestBulkUpdateStructuredFailuresCarryOpenChildrenDetails
TestBulkUpdateStructuredFailuresCarryOpenChildrenDetails covers the fact that the CLI's bulk-update JSON envelope now embeds the per-row structured se
internal/server/handlers_items_open_children_guard_test.go:1068
Function
TestBulkUpdate_AnInjectedMultiRelationDefaultIsDroppedNotRefused
The BULK door's provenance snapshot (PLAN-2857 U4). `applyBulkOp` merges the item's stored blob with the caller's changes, coerces, snapshots relatio
internal/server/relation_multi_roundtrip_test.go:272
Function
TestBulkUpdate_ControlASuppliedUnresolvableValueIsStillRefused
CONTROL: the same door still REFUSES a value the caller actually supplied. Without this, a gate that skipped every relation key would pass the leg abo
internal/server/relation_multi_roundtrip_test.go:321
Function
TestBulkUpdate_DoesNotRevertAConcurrentWriteToAnotherField
(t *testing.T)
cmd/pad/bug3049_cli_field_patch_test.go:125
Function
TestBulkUpdate_SendsRefuseUndeclaredFields
BUG-3156 (b): `pad item bulk-update` sends refuse_undeclared_fields, so an item whose collection declares no status/priority is refused by the SERVER
cmd/pad/bug3156_bulk_update_strict_test.go:15
Function
TestBundleLinks_AVersion1BundleWithOnlyLinksIsRefused
Only a version 1 bundle with NOTHING but schedule_links reaches the version 3 gate (any other v1 bundle with schedules is refused first as carrying ve
internal/store/schedule_link_import_test.go:623
Function
TestBundleLinks_ExportCarriesLinksAndOverrides
(t *testing.T)
internal/store/schedule_link_carry_test.go:105
Function
TestBundleLinks_ExportOmitsLinksWithAnEndOutsideTheBundle
(t *testing.T)
internal/store/schedule_link_carry_test.go:148
Function
TestBundleLinks_ImportBoundsEveryStoredOffsetColumn
Every offset column an import stores fits the column and what a live write accepts: offset_days is a 32-bit INTEGER on Postgres, and a value past it u
internal/store/schedule_link_import_test.go:557
← previous
next →
17,701–17,800 of 28,840, ranked by callers