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
TestRouteTable_RoleDelete
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:548
Function
TestRouteTable_WebhookListAndDelete
--- Webhooks ---
internal/mcp/dispatch_http_routes_extras_test.go:566
Function
TestRouteTable_WorkspaceListNoWorkspaceRequired
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:724
Function
TestRouteTable_WorkspaceStorage
(t *testing.T)
internal/mcp/dispatch_http_routes_extras_test.go:737
Function
TestRoute_CollectionList
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:668
Function
TestRoute_ItemBacklinks
BUG-2304: `item backlinks` — path param + both paging query params.
internal/mcp/dispatch_http_routes_test.go:721
Function
TestRoute_ItemClaim
BUG-2304: `project report` — window + collections forward as query params; omitted filters stay off the URL so the endpoint's own defaults (window=wee
internal/mcp/dispatch_http_routes_test.go:736
Function
TestRoute_ItemClaim_BadTTLRefused
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:777
Function
TestRoute_ItemClaim_NoOptionsSendsEmptyBody
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:762
Function
TestRoute_ItemClaim_OneSecondTTLAccepted
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:798
Function
TestRoute_ItemComment
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:612
Function
TestRoute_ItemComments
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:643
Function
TestRoute_ItemContext
PLAN-3598: the brief's intent, role and budget ride the query string; a whole-number budget (JSON float64) goes out without a trailing ".0", and absen
internal/mcp/dispatch_http_routes_test.go:229
Function
TestRoute_ItemDelete
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:269
Function
TestRoute_ItemExport
TestRoute_ItemExport locks the `item export` route shape: a plain path-param GET to the workspace-scoped /export endpoint, modeled on `item show`. No
internal/mcp/dispatch_http_artifact_test.go:19
Function
TestRoute_ItemExport_MissingRefErrors
TestRoute_ItemExport_MissingPlaceholderErrors confirms the routeSpec surfaces a clear error when `ref` is absent (same placeholder machinery `item sho
internal/mcp/dispatch_http_artifact_test.go:44
Function
TestRoute_ItemList_AllFlagDropsNonTerminal
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:309
Function
TestRoute_ItemList_AllItemsPath_AppliesNonTerminalFilter
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:284
Function
TestRoute_ItemList_CollectionScopedPath
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:346
Function
TestRoute_ItemList_ExplicitStatusOverridesDefault
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:331
Function
TestRoute_ItemList_FieldKVPLandsAsQueryParam
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:475
Function
TestRoute_ItemList_FiltersAsQuery
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:363
Function
TestRoute_ItemList_NumericLimitFromJSONNumber
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:456
Function
TestRoute_ItemList_PassesThroughAssignedUserID
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:415
Function
TestRoute_ItemList_RawAssignKeyIsIgnoredByMapper
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:434
Function
TestRoute_ItemList_Unparented
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:398
Function
TestRoute_ItemMove
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:492
Function
TestRoute_ItemMove_RequiresAllThree
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:526
Function
TestRoute_ItemRelease
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:816
Function
TestRoute_ItemRestore
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:710
Function
TestRoute_ItemSearch
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:541
Function
TestRoute_ItemSearch_DoesNotMutateInput
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:589
Function
TestRoute_ItemSearch_RequiresQuery
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:605
Function
TestRoute_ItemSearch_SendsCollectionAsTyped
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:569
Function
TestRoute_ItemShow
--- Per-command mapper tests ---
internal/mcp/dispatch_http_routes_test.go:208
Function
TestRoute_ProjectDashboard
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:658
Function
TestRoute_ProjectReport
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:838
Function
TestRoute_RoleList
(t *testing.T)
internal/mcp/dispatch_http_routes_test.go:678
Function
TestRowlessBlobSweep_DeleteTimeRowRecheck
TestRowlessBlobSweep_DeleteTimeRowRecheck pins the TOCTOU guard: a row committed AFTER the batched hash subtraction but BEFORE the delete — the fully-
internal/server/orphan_gc_test.go:920
Function
TestRowlessBlobSweep_DeleteUnderTheLockIsBounded
(t *testing.T)
internal/server/task4280_locked_calls_bounded_test.go:73
Function
TestRowlessBlobSweep_KeepsBlobWhenTheRowRecheckCannotAnswer
A row re-check that cannot answer under the lock keeps the blob for the next sweep; it must never fall through to the delete on an unknown.
internal/server/task4280_locked_calls_bounded_test.go:92
Function
TestRowlessBlobSweep_KeepsRowBackedBlobs
TestRowlessBlobSweep_KeepsRowBackedBlobs pins the subtraction: a blob with a LIVE row and a blob whose only row is SOFT-DELETED both survive — any row
internal/server/orphan_gc_test.go:837
Function
TestRowlessBlobSweep_KeepsYoungBlob
TestRowlessBlobSweep_KeepsYoungBlob pins the age gate: a rowless blob younger than the cutoff is the normal transient state of an upload whose row ins
internal/server/orphan_gc_test.go:816
Function
TestRowlessBlobSweep_ReclaimsAgedRowlessBlob
TestRowlessBlobSweep_ReclaimsAgedRowlessBlob pins the core: a blob no row references, older than the grace cutoff, is deleted — bytes, counters, and a
internal/server/orphan_gc_test.go:775
Function
TestRowlessBlobSweep_RespectsInFlightUploads
TestRowlessBlobSweep_RespectsInFlightUploads pins the in-flight fence, with the counterfactual leg: the same blob IS reclaimed once the registration r
internal/server/orphan_gc_test.go:885
Function
TestRuleCanonicalString
(t *testing.T)
internal/schedule/rule_test.go:111
Function
TestRuleLengthLimit
(t *testing.T)
internal/schedule/rule_test.go:134
Function
TestRunAgainstABase
--base checks only what is new since the ref, read from a real git repo.
cmd/depages/main_test.go:210
Function
TestRunBrowserBootstrap_ContextCancelled
TestRunBrowserBootstrap_ContextCancelled — operator hits Ctrl+C while the helper is polling. The caller's context is cancelled; helper should return c
internal/cli/bootstrap_test.go:277
Function
TestRunBrowserBootstrap_Idempotent
TestRunBrowserBootstrap_Idempotent confirms the helper is a no-op when the server already reports setup_required: false — important for `pad init` aga
internal/cli/bootstrap_test.go:64
Function
TestRunBrowserBootstrap_LocalCLIMethod
TestRunBrowserBootstrap_LocalCLIMethod — the server failed to provision a bootstrap token (read-only DataDir, etc.) and the bypass flag isn't set, so
internal/cli/bootstrap_test.go:188
Function
TestRunBrowserBootstrap_LogsTokenSuccess
TestRunBrowserBootstrap_LogsTokenSuccess covers the happy path: setup_required: true with a valid token on disk, server flips to setup_required: false
internal/cli/bootstrap_test.go:81
Function
TestRunBrowserBootstrap_OpenMode
TestRunBrowserBootstrap_OpenMode covers PAD_BYPASS_SETUP_TOKEN=true: no token file required, helper should still print a /setup URL and poll to comple
internal/cli/bootstrap_test.go:116
Function
TestRunBrowserBootstrap_TimeoutFires
TestRunBrowserBootstrap_TimeoutFires asserts the helper's own internal timeout branch surfaces a friendly, actionable error (not just a context error)
internal/cli/bootstrap_test.go:245
Function
TestRunBrowserBootstrap_TokenEmpty
TestRunBrowserBootstrap_TokenEmpty — file exists but is empty (0 bytes or only whitespace). EnsureBootstrapToken would never produce this, but a corru
internal/cli/bootstrap_test.go:167
Function
TestRunBrowserBootstrap_TokenMissing
TestRunBrowserBootstrap_TokenMissing — server says setup_method=logs_token but the file isn't on disk. Helper should fail loudly with a path-aware err
internal/cli/bootstrap_test.go:142
Function
TestRunBrowserBootstrap_UnknownMethod
TestRunBrowserBootstrap_UnknownMethod — newer server speaking a method this CLI doesn't know about. Helper should bail with a clear "this CLI may be o
internal/cli/bootstrap_test.go:207
Function
TestRunItemCopy_ARowWithBothFaultsReportsBoth
ONE row carrying BOTH faults — an empty key AND an unavailable relation target. This is the fixture that matters: the mixed-case test above uses TWO r
cmd/pad/item_copy_test.go:2104
Function
TestRunItemCopy_AllOverridesRejected
When EVERY unresolved field was supplied and rejected, the headline says so outright.
cmd/pad/item_copy_test.go:1486
Function
TestRunItemCopy_AmbiguousFailureNeverSuggestsARetry
── DR-13 at the command layer ─────────────────────────────────────────── On a server that does NOT honour idempotency keys, a re-run can duplicate, s
cmd/pad/item_copy_test.go:1215
Function
TestRunItemCopy_AmbiguousFailureOnAKeyedServerNamesTheKey
TASK-4131: on a server that honours idempotency keys a same-key request is applied at most once, so the message names the key on exactly ONE line and
cmd/pad/item_copy_test.go:1266
Function
TestRunItemCopy_CommittedButUnreportedExitsZero
A 2xx whose body could not be read or decoded means the copy COMMITTED. Returning that as a normal error would exit non-zero and tell a script the cop
cmd/pad/item_copy_test.go:1326
Function
TestRunItemCopy_CopyJSONIsTheServerResponse
(t *testing.T)
cmd/pad/item_copy_test.go:973
Function
TestRunItemCopy_DeterministicFailureIsReportedPlainly
A refusal the server made before writing anything is passed straight through — no unknown-outcome scare text.
cmd/pad/item_copy_test.go:1511
Function
TestRunItemCopy_DryRunArchiveSourceReportsWithoutPerforming
--archive-source on a dry run reports the consequence and performs none of it.
cmd/pad/item_copy_test.go:414
Function
TestRunItemCopy_DryRunJSONCarriesEveryBucketAndWarning
The acceptance criterion asks for each bucket and each warning to be asserted in --format json as well as in the table, so this walks the SAME full fi
cmd/pad/item_copy_test.go:812
Function
TestRunItemCopy_DryRunJSONIsTheServerResponse
── --format json fidelity ───────────────────────────────────────────────
cmd/pad/item_copy_test.go:782
Function
TestRunItemCopy_DryRunPartialOnTheMovePathDoesNotAssertHiddenChildren
The move path says the one extra thing that matters — that whatever is hidden gets orphaned unlisted — WITHOUT claiming any of it is a child. The mark
cmd/pad/item_copy_test.go:507
Function
TestRunItemCopy_DryRunPartialRelationshipsAreQualified
── the incomplete-relationships marker (TASK-2369) ────────────────────── TestRunItemCopy_DryRunPartialRelationshipsAreQualified — a restricted caller
cmd/pad/item_copy_test.go:446
Function
TestRunItemCopy_DryRunRendersEveryBucketAndWarning
── dry-run rendering: every bucket, every warning ───────────────────────
cmd/pad/item_copy_test.go:152
Function
TestRunItemCopy_DryRunRendersZeroAndEmptyExplicitly
The zero case is the one a careless renderer gets wrong: an omitted line makes "no attachments" look identical to "this CLI does not report attachment
cmd/pad/item_copy_test.go:225
Function
TestRunItemCopy_DryRunSummaryDoesNotSuggestAnImpossibleField
The third site: the --dry-run summary, which is a different function again.
cmd/pad/item_copy_test.go:1936
Function
TestRunItemCopy_DryRunUnmarkedRelationshipsStayClean
TestRunItemCopy_DryRunUnmarkedRelationshipsStayClean is the other half: the common case must read exactly as it did before TASK-2369, or the qualifier
cmd/pad/item_copy_test.go:554
Function
TestRunItemCopy_EmptyFieldValueIsAllowed
`--field key=` is a legitimate empty string, not a malformed flag.
cmd/pad/item_copy_test.go:1557
Function
TestRunItemCopy_EmptyKeyRowsAreUnfillableToo
The OTHER reason a row cannot be supplied, and the one that was already here: an empty key. `--field =value` is rejected by this command's own parser,
cmd/pad/item_copy_test.go:1984
Function
TestRunItemCopy_ErrorDoesNotSuggestFieldWhenNothingCanSupplyIt
IDEA-2899, found by review AFTER the render was fixed and the reason the advice now goes through ONE predicate. Three places tell a user how to supply
cmd/pad/item_copy_test.go:1901
Function
TestRunItemCopy_ErrorKeepsTheFieldHintWhenAFieldCanBeSupplied
The CONTROL for the above, on the same command path: an ordinary refusal still carries the hint, so the change did not simply delete it.
cmd/pad/item_copy_test.go:1922
Function
TestRunItemCopy_FieldsAreTypedAgainstTheDestinationSchema
--field values are typed against the DESTINATION collection's schema — the source's would be the wrong authority, and a number sent as a string fails
cmd/pad/item_copy_test.go:1574
Function
TestRunItemCopy_FlagValidationSendsNothing
── flag validation ──────────────────────────────────────────────────────
cmd/pad/item_copy_test.go:1527
Function
TestRunItemCopy_HostileSchemaStringsCannotForgeStructure
Schema keys, labels and option values are user-authored and travel through the server verbatim, so the renderer must not let them forge structure: an
cmd/pad/item_copy_test.go:290
Function
TestRunItemCopy_MoveThatArchivedExitsZero
The agreeing case — every successful response — stays exit 0.
cmd/pad/item_copy_test.go:1419
Function
TestRunItemCopy_MutatingPathCarriesThePartialMarker
--dry-run is optional, and the destructive path is the one that matters. A restricted user who goes straight to the mutation must still be told the re
cmd/pad/item_copy_test.go:637
Function
TestRunItemCopy_OrphanLineIsQualifiedOnlyOnTheMovePath
`children orphaned by the move` is COMPLETE on a plain copy whatever is hidden — a copy archives nothing, so no child can be orphaned by it. Qualifyin
cmd/pad/item_copy_test.go:594
Function
TestRunItemCopy_PartialMoveExitsNonZeroAndSaysWhatExists
The archive_source flag is what was ASKED for and source.archived is what HAPPENED; the server's contract is that they agree. When they do not, a MOVE
cmd/pad/item_copy_test.go:1365
Function
TestRunItemCopy_PreflightFailureAbortsBeforeMutating
A preflight failure aborts before the mutation. The dry run is the only thing that can tell us whether a copy is safe to send.
cmd/pad/item_copy_test.go:1616
Function
TestRunItemCopy_RefusalHandlesAnEmptyFieldKey
A needs_value entry with an empty key cannot be supplied with --field (the parser rejects `--field =value`), so the refusal must not print a command t
cmd/pad/item_copy_test.go:332
Function
TestRunItemCopy_RefusalUnderJSONEmitsThePreflight
On --format json the refusal still emits the endpoint's own response, so a script gets machine-readable needs_value rather than a bare exit code.
cmd/pad/item_copy_test.go:1035
Function
TestRunItemCopy_RefusalWithOnlyEmptyKeys
When EVERY entry is unnamed there is nothing to add, so the "Add:" line must not be printed at all.
cmd/pad/item_copy_test.go:359
Function
TestRunItemCopy_RefusesOnInvalidWithoutNamedFields
`valid: false` with an empty needs_value is a server contract violation. Guessing past it is the one thing this command must not do.
cmd/pad/item_copy_test.go:1194
Function
TestRunItemCopy_RefusesWhenNeedsValueAndSendsNoMutatingRequest
── refuse to guess ──────────────────────────────────────────────────────
cmd/pad/item_copy_test.go:999
Function
TestRunItemCopy_RefusesWithoutOverrideAndProceedsWithIt
The mirror of the refusal: the SAME command, against the SAME server behaviour, refuses without --field and proceeds with it. The fake preflight here
cmd/pad/item_copy_test.go:1063
Function
TestRunItemCopy_RejectedOverrideIsNotReportedAsMissing
The preflight receives the overrides, so a --field the destination REJECTED comes back in needs_value. Telling that user "no --field supplied one" sen
cmd/pad/item_copy_test.go:1448
Function
TestRunItemCopy_UnfillableExplanationMatchesTheActualReason
The sharpest miss of this unit: broadening what a predicate ACTS on silently broadened what the sentence SAYS. Once `itemCopyUnfillable` counted empty
cmd/pad/item_copy_test.go:2036
Function
TestRunItemCopy_WriteFailureAfterCommitDoesNotFailTheCommand
A write failure AFTER the copy committed must not become a non-zero exit. A script that sees a non-zero exit will reasonably conclude the copy did not
cmd/pad/item_copy_test.go:1143
Function
TestRunItemCopy_WriteFailureOnDryRunIsAnError
The dry run has the opposite obligation: nothing happened, so failing to print the preview IS the failure and must exit non-zero.
cmd/pad/item_copy_test.go:1177
Function
TestRunWatchMonitor_ExitsWhenNotArmed
TestRunWatchMonitor_ExitsWhenNotArmed is the gate: the whole stream lives behind consent (D1), so an unarmed session's monitor must exit ON ITS OWN —
cmd/pad/cmd_watch_test.go:193
Function
TestRunWatchMonitor_NoPadToml_RespectsCancellation
TestRunWatchMonitor_NoPadToml_RespectsCancellation verifies the no-.pad.toml silent-retry path (which sleeps for noPadTomlRetryInterval — an hour) sti
cmd/pad/cmd_watch_test.go:166
Function
TestRunWatchMonitor_PadTomlPresentButUnconfigured_RespectsCancellation
TestRunWatchMonitor_PadTomlPresentButUnconfigured_RespectsCancellation covers the ordering fix directly: a .pad.toml IS present (so the no-workspace g
cmd/pad/cmd_watch_test.go:238
Function
TestRuneBoundaryAtOrBeforeEdges
The helper's own edge case: an index at or past len(s) must not index out of range.
internal/decision/review_test.go:297
Function
TestRunner_CancelledMidCallReleasesWithoutCountingAFailure
Cancelled MID-CALL: the provider request is in flight when shutdown cancels the context. runJob must release the claim without counting an attempt — d
internal/decision/runner_test.go:356
← previous
next →
23,901–24,000 of 28,840, ranked by callers