MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestRefResolver_UnknownRef
TestRefResolver_UnknownRef asserts 404 for a workspace that exists but has no item matching the requested ref.
internal/server/handlers_ref_resolver_test.go:158
FunctionTestRefResolver_UnknownWorkspace
TestRefResolver_UnknownWorkspace asserts 404 for a workspace that doesn't exist. The body shape is intentionally generic — no fields hint at whether t
internal/server/handlers_ref_resolver_test.go:147
FunctionTestRefreshMarkerPath_FollowsTheDataDirRuleFromAnyCwd
The marker is found by the SAME DataDir rule the script uses, from any cwd: PAD_DB_PATH's directory, else PAD_DATA_DIR, else ~/.pad. A CLI started in
internal/cli/refresh_marker_test.go:197
FunctionTestRefuseAppAuthoredReferences_FailsClosedOnUnserializableFields
The fields check fails closed. A field set that cannot be serialized is refused, never passed unchecked.
internal/server/handlers_apps_install_test.go:768
FunctionTestRefuseLiveDatabase
(t *testing.T)
internal/decision/effort_backfill_test.go:445
FunctionTestRefusePendingEditsCleanItemIsUnchanged
Nothing pending: the flag changes nothing, and no warning key reaches the wire.
internal/server/handlers_items_bug3230_refuse_pending_test.go:87
FunctionTestRefusePendingEditsComparesNoRowVersion
No row version is compared: two raw saves sent from one stale read both land. This is why the pane can use the flag where it cannot use expected_seq.
internal/server/handlers_items_bug3230_refuse_pending_test.go:104
FunctionTestRefusePendingEditsControl_WithoutTheFlagTheEditIsPruned
The control that makes the leg above mean something: the SAME write without the flag is the pre-U0 raw save, and it deletes the other tab's edit.
internal/server/handlers_items_bug3230_refuse_pending_test.go:51
FunctionTestRefusePendingEditsIgnoresFieldOnlyWrites
A field-only write is not guarded by the flag either: the edits are body edits.
internal/server/handlers_items_bug3230_refuse_pending_test.go:122
FunctionTestRefusePendingEditsOverrideProceeds
overwrite_pending_edits lifts it: the user chose to replace the edits.
internal/server/handlers_items_bug3230_refuse_pending_test.go:65
FunctionTestRefusePendingEditsRefusesOnTheApplierPath
Applier path: a writer tab is connected. The refusal lands before the applier is asked, so the tab's document is untouched.
internal/server/handlers_items_bug3230_refuse_pending_test.go:137
FunctionTestRefusePendingEditsRefusesWithoutAToken_Direct
BUG-3230 U0: refuse_pending_edits asks for the BUG-3133 refusal without a version token. The item pane's raw-markdown saves send it: they cannot carry
internal/server/handlers_items_bug3230_refuse_pending_test.go:18
FunctionTestRefuseRepeatedMember
BUG-3219. RefuseRepeatedMember must agree with encoding/json about which keys land in one struct field: a repeat it misses is a silent drop, and a rep
internal/models/repeated_member_test.go:12
FunctionTestRefuseRepeatedMemberAgreesWithEncodingJSON
The detector's notion of "same field" is checked against encoding/json itself, not against a restatement of its rule: for each spelling, decoding into
internal/models/repeated_member_test.go:56
FunctionTestRefuseStructuredFieldsOverCLI
The stdio door's own refusal, at the door (BUG-2850). Named separately from the dispatch test above because they are different claims: one is that the
internal/mcp/catalog_item_fields_test.go:292
FunctionTestRefuseUndeclaredFieldsOnAFullFieldsWrite
On a full `fields` write the flag refuses what the warning names there: the whole blob. Documented, so a caller who sets it on a full write of an item
internal/server/handlers_items_refuse_undeclared_test.go:136
FunctionTestRefuseUndeclaredFieldsRefusesAPatchedUndeclaredKey
(t *testing.T)
internal/server/handlers_items_refuse_undeclared_test.go:52
FunctionTestRefusedConnectionDoesNotCountASyncRequired
TestRefusedConnectionDoesNotCountASyncRequired pins that a refused connection is not counted. The counter's population is "sync_required signals SENT"
internal/server/handlers_stream_gap_test.go:325
FunctionTestRegisterCatalog_RegistersAllCatalogTools
TestRegisterCatalog_RegistersAllCatalogTools is the smoke test — every ToolDef in Catalog gets registered exactly once.
internal/mcp/catalog_test.go:17
FunctionTestRegisterCatalog_RequiresOptions
TestRegisterCatalog_RequiresOptions verifies the validation surface. Each missing required field produces a clear error rather than a nil-deref later
internal/mcp/catalog_test.go:39
FunctionTestRegisterDBCollector
(t *testing.T)
internal/metrics/metrics_test.go:349
FunctionTestRegisterGeneratedUsernameNotReserved
(t *testing.T)
internal/server/handlers_auth_username_test.go:63
FunctionTestRegisterMeta_ResourceRoundTrip
TestRegisterMeta_ResourceRoundTrip drives the resource through the real MCP HandleMessage path — the same code path Claude Desktop / Cursor exercises
internal/mcp/meta_test.go:103
FunctionTestRegisterOAuthActiveTokensCollector
TestRegisterOAuthActiveTokensCollector verifies the callback-driven gauge produces a fresh value on each Gather and survives provider errors without p
internal/metrics/metrics_test.go:262
FunctionTestRegisterOAuthActiveTokensCollector_ErrorIsScrapeSafe
TestRegisterOAuthActiveTokensCollector_ErrorIsScrapeSafe pins the behavior: a provider error must NOT fail Registry.Gather() (which would break the en
internal/metrics/metrics_test.go:304
FunctionTestRegisterPrompts_AdvertisesAllFour
(t *testing.T)
internal/mcp/prompts_test.go:13
FunctionTestRegisterPrompts_ContextNotRequired
(t *testing.T)
internal/mcp/prompts_test.go:121
FunctionTestRegisterPrompts_HandlerReturnsBody
(t *testing.T)
internal/mcp/prompts_test.go:28
FunctionTestRegisterResources_AdvertisesAllFourTemplates
(t *testing.T)
internal/mcp/resources_test.go:79
FunctionTestRegisterResources_AttachmentTemplateRoundTrip
(t *testing.T)
internal/mcp/resources_test.go:460
FunctionTestRegisterSession_AnonymousOmitsAgentKey
(t *testing.T)
internal/cli/session_registry_test.go:184
FunctionTestRegisterSession_FilePermissions
(t *testing.T)
internal/cli/session_registry_test.go:169
FunctionTestRegisterSession_KeyedOnHarnessPid
TestRegisterSession_KeyedOnHarnessPid is the counterfactual against the v1 registry: the file is named after the HARNESS session pid (CLAUDE_PID here
internal/cli/session_registry_test.go:88
FunctionTestRegisterSession_PadSessionPidOverridesClaudePid
(t *testing.T)
internal/cli/session_registry_test.go:124
FunctionTestRegisterSession_PrunesDeadRecords
(t *testing.T)
internal/cli/session_registry_test.go:199
FunctionTestRegisterSession_RepeatedCallsOneFile
TestRegisterSession_RepeatedCallsOneFile is the old shape as a counterfactual: ten registrations from one session produce ONE record, the newest. (v1
internal/cli/session_registry_test.go:148
FunctionTestRegisterWithCode_CredentialsMintedBeforeTheClaimDoNotBlockTheRollback
The account exists from CreateUser on, so a sign-in can mint it a session, and /forgot-password a reset token, before the claim. The rollback must sti
internal/server/bug3438_register_invitation_claim_test.go:191
FunctionTestRegisterWithCode_FailedClaimBesideAMembershipIsNotAJoin
The claim now commits with the membership, so a membership alone no longer proves the claim landed. A failed claim beside a membership that came from
internal/server/bug3438_register_invitation_claim_test.go:169
FunctionTestRegisterWithCode_FailedRollbackIsNotReportedAsARollback
When the invitation was the admission and the account rollback FAILS, the signup must not answer as if it had been rolled back: the account still hold
internal/server/bug3438_register_invitation_claim_test.go:353
FunctionTestRegisterWithCode_InvitationGoneBeforeClaimJoinsNothing
BUG-3438: register-with-code read the invitation, created the account, added the membership and then marked the invitation accepted without checking t
internal/server/bug3438_register_invitation_claim_test.go:21
FunctionTestRegisterWithCode_OpenRegistrationKeepsTheAccountWhenTheClaimIsRefused
Open registration, a claim refused for another reason (the workspace filled in the window): the account is kept and verified by its emailed proof, not
internal/server/bug3438_register_invitation_claim_test.go:229
FunctionTestRegisterWithCode_OpenRegistrationKeepsTheAccountWhenTheInvitationIsGone
The account is rolled back only when the invitation was the signup's ADMISSION (#1834). Where registration is open anyway (Pad Cloud with a deliverabl
internal/server/bug3438_register_invitation_claim_test.go:108
FunctionTestRegisterWithCode_OpenRegistrationRefusedClaimNeedsNoReconcileRead
A claim the store refused BEFORE its commit is definitely not landed, so a failing membership read must not turn the open-registration outcome (accoun
internal/server/bug3438_register_invitation_claim_test.go:317
FunctionTestRegisterWithCode_ReportsTheRoleTheAccountHolds
The claim keeps a membership that already exists (an admin's add in the window) at ITS role, and the signup must report that role, as the accept doors
internal/server/bug3438_register_invitation_claim_test.go:280
FunctionTestRegisterWithInvitation_DeletedWorkspace_Invalid
(t *testing.T)
internal/server/handlers_invitation_deleted_workspace_test.go:63
FunctionTestRegister_AdminBearer_MintsNoSession
(t *testing.T)
internal/server/handlers_auth_admin_register_test.go:59
FunctionTestRegister_AdminCookie_KeepsAdminSession
A cookie-authenticated admin is not switched to the new user, and keeps its own session (before BUG-3232 the response overwrote its cookie, and since
internal/server/handlers_auth_admin_register_test.go:83
FunctionTestRegister_IncludesUsernameInStrengthContext
TestRegister_IncludesUsernameInStrengthContext pins that registration penalizes a password derived from the caller-supplied username. Registration can
internal/server/password_strength_test.go:173
FunctionTestRegister_Invitation_StillSignsIn
Pin: an invitation signup is the new user signing up, and still gets a session: token in the body, the cookie set, and a live row.
internal/server/handlers_auth_admin_register_test.go:103
FunctionTestRegister_PassesPadVersionToCatalog
TestRegister_PassesPadVersionToCatalog round-trips PadVersion through pad_meta.action: server-info. Confirms the option is wired from RegistryOptions
internal/mcp/registry_test.go:141
FunctionTestRegister_RegistersSetWorkspaceAndCatalog
TestRegister_RegistersSetWorkspaceAndCatalog confirms Register installs pad_set_workspace plus every catalog tool. Count = 1 (set_workspace) + len(Cat
internal/mcp/registry_test.go:89
FunctionTestRegister_SelfServe_StillSignsIn
Pin: cloud self-serve signup is the new user signing up, and still gets a session.
internal/server/handlers_auth_admin_register_test.go:129
FunctionTestRegister_ValidatesRequiredOptions
TestRegister_ValidatesRequiredOptions confirms the validation surface still rejects nil Doc/Workspace/Dispatcher. PadVersion is optional; Register doe
internal/mcp/registry_test.go:109
FunctionTestRegisteredAgentRequiresAVerifiableOwner
TestRegisteredAgentRequiresAVerifiableOwner (#1248). A harness-supplied owner pid that the platform CAN check and that is NOT this process or an ances
internal/cli/agent_identity_test.go:330
FunctionTestRegisteredAgentWinsForThisSession
TestRegisteredAgentWinsForThisSession — BUG-2882. Two seats booted under one name; one re-registered under the right one with --agent; every write it
internal/cli/agent_identity_test.go:232
FunctionTestRegistry_ConcurrentRegisterAndPrune
TestRegistry_ConcurrentRegisterAndPrune: many registers and prunes at once, in-process, end with exactly the live record and no error. This exercises
internal/cli/session_registry_test.go:500
FunctionTestRegistry_ForwardsBackendErrors
(t *testing.T)
internal/attachments/registry_test.go:110
FunctionTestRegistry_LockFileIsNotASession
TestRegistry_LockFileIsNotASession: the mutation lock lives in the registry directory and must never list as a session.
internal/cli/session_registry_test.go:478
FunctionTestRegistry_RefusesDuplicatesAndInvalidSets
(t *testing.T)
internal/decision/runner_test.go:306
FunctionTestRegistry_RegisterPrefixWithColonPanics
(t *testing.T)
internal/attachments/registry_test.go:89
FunctionTestRegistry_ResolveAndRoute
(t *testing.T)
internal/attachments/registry_test.go:12
FunctionTestRegistry_ResolveErrors
(t *testing.T)
internal/attachments/registry_test.go:57
FunctionTestRelationBacklinksDoNoSecondPoolRead
TestRelationBacklinksDoNoSecondPoolRead is the guard for the invariant that backlink reads never take a second pool connection. GetRelationBacklinks
internal/store/relation_links_test.go:676
FunctionTestRelationBacklinksDoor_ReportsTheEdgeWithItsFieldKey
TestRelationBacklinksDoor_ReportsTheEdgeWithItsFieldKey is the wiring claim: the endpoint reads the index, and it carries the field key that makes a r
internal/server/relation_backlinks_test.go:47
FunctionTestRelationBacklinksDoor_TheCountIsTheViewersNotTheTruth
TestRelationBacklinksDoor_TheCountIsTheViewersNotTheTruth is the ratified visibility decision, and the reason it needs a test is that the "wrong" beha
internal/server/relation_backlinks_test.go:76
FunctionTestRelationBlank_BlankDefaultIsNoDefault
A blank schema DEFAULT on a relation is "no default": it must not satisfy `required` by injection, and on an optional field it leaves the key absent w
internal/server/bug3028_relation_blank_test.go:298
FunctionTestRelationBlank_BulkMoveCarriesALegacyBlank
Bulk move to another collection carries every relation (it takes no relation overrides), so a legacy blank lands as absent in the target.
internal/server/bug3028_relation_blank_test.go:271
FunctionTestRelationBlank_BulkUpdateCarriesALegacyBlank
Bulk update: `changes` is what the write SETS; the stored row is carried.
internal/server/bug3028_relation_blank_test.go:206
FunctionTestRelationBlank_CarriedLegacyBlankIsNormalisedNotRefused
The provenance leg that must NOT refuse: a legacy blank on a REQUIRED field, carried by writes that do not touch it, lands as key-absent.
internal/server/bug3028_relation_blank_test.go:115
FunctionTestRelationBlank_CopyBlankOverrideIntoRequiredIsRefused
A blank OVERRIDE is a value the copy SETS: into a required destination relation it must be refused, as any required field left without a value is.
internal/server/bug3028_relation_blank_test.go:254
FunctionTestRelationBlank_CopyCarriesALegacyBlank
Cross-workspace copy and its preflight: a carried blank into a REQUIRED destination relation lands as absent on both, and neither refuses it.
internal/server/bug3028_relation_blank_test.go:228
FunctionTestRelationBlank_CreateSetsBlank
(t *testing.T)
internal/server/bug3028_relation_blank_test.go:80
FunctionTestRelationBlank_EmptyFilterMatchesAllThreeSpellings
`?owner=` on a collection-scoped list asks for every item with no owner, whichever of the three spellings it is stored in — and not the one that has o
internal/server/bug3028_relation_blank_test.go:177
FunctionTestRelationBlank_Move
(t *testing.T)
internal/server/bug3028_relation_blank_test.go:143
FunctionTestRelationBlank_PatchSetsBlank
(t *testing.T)
internal/server/bug3028_relation_blank_test.go:97
FunctionTestRelationDoors_BulkMove
(t *testing.T)
internal/server/relation_referents_doors_test.go:450
FunctionTestRelationDoors_BulkMoveAcceptsASuppliedValueForARequiredRelation
A supplied value that SATISFIES a required destination field must not be refused by a required-field error computed before the override existed. PLAN
internal/server/relation_referents_doors_test.go:1432
FunctionTestRelationDoors_BulkMoveRefusesInvisibleSuppliedStatus
A BULK move owes its supplied half the same visibility check the single move door runs. An earlier change established that `req.Status` on a bulk col
internal/server/relation_referents_doors_test.go:1208
FunctionTestRelationDoors_BulkMoveReportsDroppedFields
A BULK collection move that discards field values must say so. `bulkMoveCollection` has populated `result.Dropped` since MigrateFields existed and NO
internal/server/relation_referents_doors_test.go:593
FunctionTestRelationDoors_BulkMoveStatusIsCallerInput
`req.Status` on a bulk collection move is CALLER INPUT. The path merges exactly one field and passed `supplied=nil` on the grounds that it carries no
internal/server/relation_referents_doors_test.go:955
FunctionTestRelationDoors_BulkUpdate
(t *testing.T)
internal/server/relation_referents_doors_test.go:282
FunctionTestRelationDoors_BulkUpdateResolvesInjectedRelationDefault
A bulk status or priority change must resolve a relation default validation injects. `bulkFieldUpdate` looks only at the keys `changes` names — corre
internal/server/relation_referents_doors_test.go:723
FunctionTestRelationDoors_BulkUpdateSuppliedBranch
TestRelationDoors_BulkUpdateSuppliedBranch covers the one door whose SUPPLIED branch no black-box leg can reach. STATED PLAINLY BECAUSE IT IS A WEAKE
internal/server/relation_referents_doors_test.go:340
FunctionTestRelationDoors_CarriedNonStringRelationDropsInsteadOfRefusing
A legacy item holding a NON-STRING in a relation field is still movable. The carry rule exists so that legacy items stay usable: `internal/items` acc
internal/server/relation_referents_doors_test.go:1495
FunctionTestRelationDoors_Create
--- doors 1-2: supplied-only writes -----------------------------------
internal/server/relation_referents_doors_test.go:196
FunctionTestRelationDoors_CrossWorkspaceCopyAndPreflight
--- doors 7-8: the cross-workspace pair ------------------------------- Driven through the fixture the pin uses, so the table's door list is complete
internal/server/relation_referents_doors_test.go:497
FunctionTestRelationDoors_InvisibleRelationDefaultIsNotDisclosed
A schema default naming an item the caller cannot see must not hand them its id. An earlier change filtered the caller's-input-only refusals, which c
internal/server/relation_referents_doors_test.go:900
FunctionTestRelationDoors_LateDefaultWrongCollectionDoesNotDiscloseExistence
A relation issue raised by the LATE default pass must pass through the same visibility collapse the main pass applies. `store.ResolveLateRelationDefa
internal/server/relation_referents_doors_test.go:1134
FunctionTestRelationDoors_Move
(t *testing.T)
internal/server/relation_referents_doors_test.go:389
FunctionTestRelationDoors_MoveDropsInvisibleDestinationDefault
A MIGRATE door's destination default gets the visibility check too. The first version of `dropInvisibleRelationDefaults` skipped keys "present before
internal/server/relation_referents_doors_test.go:991
FunctionTestRelationDoors_MoveRefusesInvisibleOverride
A supplied relation override at the MOVE door must name an item the requester can see. The write doors have always checked this; the migrate doors ca
internal/server/relation_referents_doors_test.go:535
FunctionTestRelationDoors_NonStringDefaultIsDroppedAndReportedOnWrite
The write doors have the same injected-default hole the migrate doors had. `ValidateFields` assigns a schema default and `continue`s past its own typ
internal/server/relation_referents_doors_test.go:787
FunctionTestRelationDoors_NullOverrideDoesNotExemptDefaultFromVisibility
A NULL override does not make a stale non-nil source value stop counting as carried. `notDefaultKeys` already knows that a nil value is not a value —
internal/server/relation_referents_doors_test.go:1367
FunctionTestRelationDoors_NullSourceDoesNotExemptDefaultFromVisibility
A NIL source value does not make the key "carried", so the destination default that replaces it still gets the visibility check. `notDefaultKeys` cou
internal/server/relation_referents_doors_test.go:1090
FunctionTestRelationDoors_PreflightCarriedDropDoesNotDiscloseExistence
The preflight's CARRIED relation drops owe the same visibility collapse the late-default drops get. An earlier change hoisted the collapse so `Resolv
internal/server/relation_referents_doors_test.go:1279
FunctionTestRelationDoors_PreflightCarriedTitleWrongCollectionIsJudgedPerRequester
TestRelationDoors_PreflightCarriedTitleWrongCollectionIsJudgedPerRequester is BUG-3012's path end to end, on its TITLE rung. A carried value that is t
internal/server/relation_referents_doors_test.go:1571
FunctionTestRelationDoors_RequiredInvisibleDefaultRefuses
An invisible default in a REQUIRED relation refuses. The required check was written for the late-dropped list and a sibling list — the visibility dro
internal/server/relation_referents_doors_test.go:1045
FunctionTestRelationDoors_UnresolvableStringDefaultDropsInsteadOfRefusing
An unresolvable STRING default must not refuse the write. Validation injects the default before the resolver runs, and the resolver treats the whole
internal/server/relation_referents_doors_test.go:849
FunctionTestRelationDoors_UpdateFields
(t *testing.T)
internal/server/relation_referents_doors_test.go:232
FunctionTestRelationDoors_UpdateFieldsPatch
--- doors 3-4: the two doors that see BOTH provenances ----------------
internal/server/relation_referents_doors_test.go:250
← previousnext →23,201–23,300 of 28,840, ranked by callers