MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestHealthEndpoint
(t *testing.T)
internal/server/server_test.go:72
FunctionTestHealthEndpointsAreMountedWhereDocumented
TestHealthEndpointsAreMountedWhereDocumented pins the three health URLs. docs/deployment.md, deploy/k8s/deployment.yaml and every operator runbook nam
internal/server/redis_health_test.go:115
FunctionTestHealthReadyReportsRedisWithoutGatingOnIt
TestHealthReadyReportsRedisWithoutGatingOnIt makes executable the rule that Redis is reported but never gates readiness: an unreachable Redis must be
internal/server/redis_health_test.go:147
FunctionTestHealth_NoWebUI_NoWebMember
(t *testing.T)
internal/server/web_build_identity_test.go:100
FunctionTestHealth_ReportsServedWebBundle
(t *testing.T)
internal/server/web_build_identity_test.go:68
FunctionTestHeldNotifications
Kills: HeldNotifications ignoring the token, or the pending state.
internal/store/task3939b_settle_test.go:97
FunctionTestHeldSnapshotBlocksOtherWritersRatherThanLettingThemThrough
TestHeldSnapshotBlocksOtherWritersRatherThanLettingThemThrough pins the SQLite property the migration's consistency actually rests on. IT EXISTS BECA
internal/store/migrated_test.go:407
FunctionTestHelpCmd_CapabilitiesExactString
(t *testing.T)
cmd/pad/help_cmdhelp_test.go:205
FunctionTestHelpCmd_CapabilitiesShortCircuits
(t *testing.T)
cmd/pad/help_cmdhelp_test.go:219
FunctionTestHelpCmd_DefaultTextRoutesToCobra
(t *testing.T)
cmd/pad/help_cmdhelp_test.go:57
FunctionTestHelpCmd_DepthAndAllAccepted
(t *testing.T)
cmd/pad/help_cmdhelp_test.go:232
FunctionTestHelpCmd_FormatJSONEmits
(t *testing.T)
cmd/pad/help_cmdhelp_test.go:106
FunctionTestHelpCmd_FormatLLMIsAliasForMD
(t *testing.T)
cmd/pad/help_cmdhelp_test.go:161
FunctionTestHelpCmd_FormatMarkdownEmits
(t *testing.T)
cmd/pad/help_cmdhelp_test.go:134
FunctionTestHelpCmd_FormatTextEquivalent
(t *testing.T)
cmd/pad/help_cmdhelp_test.go:92
FunctionTestHelpCmd_FormatUnknownRejected
(t *testing.T)
cmd/pad/help_cmdhelp_test.go:184
FunctionTestHelpCmd_GroupScope
(t *testing.T)
cmd/pad/help_cmdhelp_test.go:72
FunctionTestHelpCmd_LeafScope
(t *testing.T)
cmd/pad/help_cmdhelp_test.go:82
FunctionTestHelpCmd_UnknownTopicRejected
(t *testing.T)
cmd/pad/help_cmdhelp_test.go:195
FunctionTestHiringTemplate
TestHiringTemplate verifies the hiring template ships the expected collections, conventions, and playbooks with the hiring trigger vocabulary. This gu
internal/collections/templates_test.go:386
FunctionTestHostMatchesURL
PLAN-2310 DR-6 matching rules for the Host allowlist.
internal/server/middleware_mcp_host_test.go:56
FunctionTestHostOSIsRuntimeGOOS_BUG3186
hostOS must be initialised from runtime.GOOS itself. A behavioural check cannot see a wrong DEFAULT on a Linux runner ("linux" == runtime.GOOS there),
cmd/pad/attachment_local_name_test.go:61
FunctionTestHugeStringMapKeyIsCutBeforeItIsFormatted
(t *testing.T)
internal/logging/redaction_followups_test.go:1262
FunctionTestHumanAttachmentStampStaysOffTheDoor
The human attachment stamp touches any attachment in the workspace, so the door must never reach it (TASK-3391): an app comment's references go throug
internal/appstore/boundary_test.go:102
FunctionTestHydrateMultiRelation_AnEmptyListDoesNotDependOnTheRestOfTheBatch
(t *testing.T)
internal/store/relation_multi_defaults_test.go:362
FunctionTestHydrateMultiRelation_ListInStoredOrderWithPositionsKept
Read-side hydration of a `multi_relation` (PLAN-2857 U4, row 11). The ruling: `relation_targets[key]` is a LIST of the same scalar target object, in
internal/store/relation_multi_test.go:215
FunctionTestHydrateMultiRelation_ScalarEntriesAreStillScalar
THE SCALAR CONTROL. Without it, a change that turned every entry into a list would pass the test above and break every v0.31 consumer.
internal/store/relation_multi_test.go:276
FunctionTestHydrateRelationTargets_MarksStoredTextOnlyForNonUUIDValues
BUG-3014. A stored relation value that is not UUID-shaped was never an id, so hydration marks it `stored_as_text` instead of presenting it as an id-on
internal/store/relation_stored_as_text_test.go:18
FunctionTestHydrateRelationTargets_ResolvesDanglesAndRefusesForeignWorkspaces
TestHydrateRelationTargets_ResolvesDanglesAndRefusesForeignWorkspaces covers the read side: what a caller gets back for each kind of stored value. Th
internal/store/relation_titles_test.go:238
FunctionTestHydrateRelationTargets_WrongCollectionAndNullNumberStayHonest
TestHydrateRelationTargets_WrongCollectionAndNullNumberStayHonest covers the two read-side cases. Both are about legacy rows: the write side has refu
internal/store/relation_titles_test.go:433
FunctionTestICSFeedRedaction
(t *testing.T)
internal/logging/calendar_feeds_test.go:8
FunctionTestICSGolden
(t *testing.T)
internal/ics/ics_test.go:12
FunctionTestIDSpaceResetSignalsEveryWorkspace
TestIDSpaceResetSignalsEveryWorkspace is the other per-instance scope: an ID-space change invalidates every buffer at once, so every subscriber has a
internal/events/gap_signal_test.go:297
FunctionTestIPRateLimiter_CapBoundsTheMap
The map never holds more than MaxEntries keys, however many distinct keys arrive inside the retention window. Caps under 8 are included: there the 7/8
internal/server/middleware_ratelimit_bug3308_test.go:68
FunctionTestIPRateLimiter_FloodCannotEvictADrainedBucket
The attack the eviction order exists to refuse: drain your own bucket, then flood new keys until the sweep pushes it out and you get a fresh burst. A
internal/server/middleware_ratelimit_bug3308_test.go:86
FunctionTestIPRateLimiter_NonPositiveBurstStaysBounded
A burst of 0 or below has no level to rank by; the sweep must neither panic nor let the map grow.
internal/server/middleware_ratelimit_bug3308_test.go:138
FunctionTestIPRateLimiter_SweepDropsFullBucketsBeforeSpentOnes
Full buckets go first and all at once: dropping one gives nothing, since a fresh limiter starts full. A partly spent bucket survives a sweep that full
internal/server/middleware_ratelimit_bug3308_test.go:155
FunctionTestIPRateLimiter_SweepDropsIdleKeys
Keys idle past retention are dropped by the sweep too, whatever their tokens, the same rule cleanup applies. The refill window is one minute (burst 1
internal/server/middleware_ratelimit_bug3308_test.go:188
FunctionTestIPRateLimiter_SweepRanksBelowAToken
Whole-token levels put a drained bucket on the same level as buckets holding 0.9 tokens, so the sweep chose among them at random. The ranking is finer
internal/server/middleware_ratelimit_bug3308_test.go:116
FunctionTestISOBMFFBrandTableStaysOnTheAllowlist
TestISOBMFFBrandTableStaysOnTheAllowlist is the drift guard. A brand mapped to a MIME that `allowed` does not carry would make this sniffer produce a
internal/attachments/mime_isobmff_test.go:244
FunctionTestIdenticalBytesInAnotherItemAreNotATwin
The twin must be in the SAME item's op-log. Identical bytes in another item say nothing about this document.
internal/store/bug3124_content_bearing_test.go:208
FunctionTestIdenticalContent
(t *testing.T)
internal/diff/diff_test.go:56
FunctionTestIdenticalResendDefersToItsTwin
A byte-identical re-send is non-content only because its EARLIER twin carries the content. If that twin is itself above the watermark, the item is pen
internal/store/bug3124_content_bearing_test.go:145
FunctionTestIdentifyWebBuild_DigestTracksContentAndPaths
(t *testing.T)
internal/server/web_build_identity_test.go:17
FunctionTestIdentifyWebBuild_ReadsStamp
(t *testing.T)
internal/server/web_build_identity_test.go:44
FunctionTestImgPaintableMimes_MatchesTypeScript
TestImgPaintableMimes_MatchesTypeScript enforces the lock-step this file's header requires, rather than asserting it in a comment (which protects nobo
internal/server/render/attachments_embed_test.go:90
FunctionTestImportArtifactAgainstTheDefaultSchemaNamesNothingUndeclared
...and an import into an INTACT destination reports no undeclared-field warning, so the channel does not cry wolf on the ordinary case. This is also t
internal/server/handlers_artifact_import_warnings_test.go:85
FunctionTestImportArtifactBillionLaughsRejected
(t *testing.T)
internal/server/handlers_artifact_test.go:221
FunctionTestImportArtifactBlankRejected
BUG-3100: `pad item import -` sends whatever stdin held, so a lost heredoc reaches this handler as an empty or whitespace-only artifact. It must be re
internal/server/handlers_artifact_test.go:658
FunctionTestImportArtifactBlanksForeignSelectValue
(t *testing.T)
internal/server/handlers_artifact_test.go:445
FunctionTestImportArtifactCarriesAndReportsUnresolvableRelations
The artifact-import door is the ONE `relationsCarry` caller (handlers_artifact_import.go), and BUG-3015 filed it as silently discarding a relation val
internal/server/handlers_artifact_import_relation_carry_test.go:36
FunctionTestImportArtifactCarriesUnresolvableRelationValue
IMPORT CARRIES a junk relation value; it never refuses (explicitly allowed, to avoid breaking import). Import is a CARRY door, not a write door. An a
internal/server/handlers_artifact_import_warnings_test.go:182
FunctionTestImportArtifactCleansBrokenDefaultsDespiteACarriedJunkValue
An import carrying ONE unresolvable caller value must still clean up the destination schema's own broken defaults. The write path's step 2 returned e
internal/server/handlers_artifact_import_warnings_test.go:260
FunctionTestImportArtifactCreateSideEffectsFire
(t *testing.T)
internal/server/handlers_artifact_test.go:523
FunctionTestImportArtifactDeepNestingRejected
(t *testing.T)
internal/server/handlers_artifact_test.go:248
FunctionTestImportArtifactEmptyTitleRejected
---- Import: validation parity with the create path ---- TestImportArtifactEmptyTitleRejected confirms an artifact with no title is rejected with 400,
internal/server/handlers_artifact_test.go:337
FunctionTestImportArtifactForcesStatusDraft
---- Import ----
internal/server/handlers_artifact_test.go:415
FunctionTestImportArtifactInvocationSlugCollision
(t *testing.T)
internal/server/handlers_artifact_test.go:486
FunctionTestImportArtifactNormalPasses
(t *testing.T)
internal/server/handlers_artifact_test.go:271
FunctionTestImportArtifactOversizedRejected
---- Safety layer ----
internal/server/handlers_artifact_test.go:206
FunctionTestImportArtifactRejectedWhenOverWorkspaceItemQuota
TestImportArtifactRejectedWhenOverWorkspaceItemQuota confirms the import path enforces the same workspace item-count limit handleCreateItem does, retu
internal/server/handlers_artifact_test.go:367
FunctionTestImportArtifactReportsDroppedRelationDefault
The import response must forward BOTH halves of ItemWriteWarnings. `createItemChecked` records dropped relation defaults alongside undeclared keys; t
internal/server/handlers_artifact_import_warnings_test.go:132
FunctionTestImportArtifactReportsUndeclaredFieldsAgainstANarrowedSchema
(t *testing.T)
internal/server/handlers_artifact_import_warnings_test.go:34
FunctionTestImportArtifactUnbindableTextRejected
TestImportArtifactUnbindableTextRejected covers the last body reader the BUG-2803 sweep turned up. The artifact endpoint takes RAW TEXT, not JSON, so
internal/server/handlers_artifact_test.go:603
FunctionTestImportArtifactWithArguments
TestImportArtifactWithArguments is the regression for BUG-1883: a playbook artifact carrying an `arguments` array (a json-typed field) must import cle
internal/server/handlers_artifact_test.go:299
FunctionTestImportArtifact_HappyPath
TestImportArtifact_HappyPath confirms the client POSTs the raw artifact bytes (not a JSON wrapper) and decodes the {ref, slug, warnings} response.
internal/cli/artifact_test.go:70
FunctionTestImportArtifact_ServerError
TestImportArtifact_ServerError confirms a 4xx (e.g. malformed/oversized) is surfaced cleanly as the server's error message.
internal/cli/artifact_test.go:108
FunctionTestImportBundleV2NativeRoles
(t *testing.T)
internal/server/task4104_import_schedules_test.go:79
FunctionTestImportBundle_BUG2818_ManifestNamesAreNormalisedBeforeTheBlocklist
The SECOND door: bundle import stored the manifest's name verbatim. A bundle whose entry hides .svg is now judged on the normalised name, and refused
internal/server/handlers_attachments_bug2818_test.go:141
FunctionTestImportBundle_BUG2819_FilenameSourceSurvivesARoundTrip
Export then import: a substituted name that arrives unchanged keeps "substituted" (the bundle's claim), where recomputing at the importer would have c
internal/server/bug2819_filename_source_wiring_test.go:87
FunctionTestImportBundle_BUG3184_DeadlineDoesNotLeakToTheNextRequest
The deadline an import arms does not outlive its request: net/http re-arms the connection for the next request on a keep-alive connection. Measured he
internal/server/handlers_import_bundle_bug3184_test.go:343
FunctionTestImportBundle_BUG3184_ServerTimeBetweenReadsDoesNotCount
The stall is LONGER than the server-wide ReadTimeout and SHORTER than the import's idle window. Before the fix this answered 400 "i/o timeout".
internal/server/handlers_import_bundle_bug3184_test.go:281
FunctionTestImportBundle_BUG3184_TarNextFailureGoesThroughTheKeepDoor_Postgres
(t *testing.T)
internal/server/handlers_import_bundle_bug3184_test.go:169
FunctionTestImportBundle_BUG3184_TarNextFailureGoesThroughTheKeepDoor_SQLite
(t *testing.T)
internal/server/handlers_import_bundle_bug3184_test.go:164
FunctionTestImportBundle_BUG3184_TheDeadlineStillBoundsTheClient
The deadline still bounds the client: a stall longer than the idle window fails, and the ceiling bounds a client that never stalls that long.
internal/server/handlers_import_bundle_bug3184_test.go:367
FunctionTestImportBundle_BUG3184_TheWindowRestartsOnEveryRead
The deadline is armed PER READ, not once: a client whose every gap is inside the idle window but whose whole body takes longer than it still succeeds.
internal/server/handlers_import_bundle_bug3184_test.go:297
FunctionTestImportBundle_BUG3191_KeepDoorLogsTheOriginalPanicStack
Chi's Recoverer logs the stack of the RE-panic, so the keep door's Error line is the only record of where the import actually panicked. The injected p
internal/server/handlers_import_bundle_bug3191_test.go:91
FunctionTestImportBundle_BUG3191_PanicAfterMintKeepsTheWorkspaceOwned_Postgres
(t *testing.T)
internal/server/handlers_import_bundle_bug3191_test.go:27
FunctionTestImportBundle_BUG3191_PanicAfterMintKeepsTheWorkspaceOwned_SQLite
(t *testing.T)
internal/server/handlers_import_bundle_bug3191_test.go:23
FunctionTestImportBundle_BUG3191_PanicAfterMintRemovesWhenTheOwnerCannotBeWritten_Postgres
(t *testing.T)
internal/server/handlers_import_bundle_bug3191_test.go:61
FunctionTestImportBundle_BUG3191_PanicAfterMintRemovesWhenTheOwnerCannotBeWritten_SQLite
(t *testing.T)
internal/server/handlers_import_bundle_bug3191_test.go:57
FunctionTestImportBundle_BUG3191_PanicNilAfterMintKeepsTheWorkspaceOwned
panic(nil) reaches the keep door too: under go 1.21+ semantics recover returns a *runtime.PanicNilError for it, not nil, so the `p != nil` test holds.
internal/server/handlers_import_bundle_bug3191_test.go:119
FunctionTestImportBundle_BUG3475_Outcomes_Postgres
(t *testing.T)
internal/server/handlers_import_bundle_bug3475_test.go:77
FunctionTestImportBundle_BUG3475_Outcomes_SQLite
(t *testing.T)
internal/server/handlers_import_bundle_bug3475_test.go:72
FunctionTestImportBundle_BUG3475_PanicRecordsUnknown
A panic after mint skips every report in the handler; the attempt must still end, as unknown, rather than read running until the TTL.
internal/server/handlers_import_bundle_bug3475_test.go:305
FunctionTestImportBundle_BUG3475_RollbackThatLeavesTheWorkspaceLiveIsUnknown
removeUnusableWorkspace returns nil even when its own delete FAILS (it logs and leaves the workspace for an operator), so "removed" is read back from
internal/server/handlers_import_bundle_bug3475_test.go:323
FunctionTestImportBundle_EmptyNameIsRefused
The BUNDLE door is the second body shape behind the same route and mints through the same store call, so it answers the same way — in its own envelope
internal/server/handlers_workspace_mint_parity_test.go:148
FunctionTestImportBundle_KeepPath_ManifestNULNamesTheRemedy
A NUL inside attachments/manifest.json takes the keep path, and the client body keeps the authored note and the remedy (--repair-nul, pad db repair-nu
internal/server/handlers_import_bundle_partial_test.go:224
FunctionTestImportBundle_KeepPath_ManifestNULRemedyCarriesNoDocumentText
The manifest keep-path remedy must stay fixed text through the REAL call site. A manifest carrying a NUL and a repeated member, imported with the repa
internal/server/handlers_import_bundle_partial_test.go:251
FunctionTestImportBundle_KeepPath_OwnerAddFailureRemovesThePartial_Postgres
(t *testing.T)
internal/server/handlers_import_bundle_partial_test.go:137
FunctionTestImportBundle_KeepPath_OwnerAddFailureRemovesThePartial_SQLite
--- (b) owner row cannot be written: compensation removes, message says so -
internal/server/handlers_import_bundle_partial_test.go:133
FunctionTestImportBundle_KeepPath_PartialWorkspaceIsReachable_Postgres
(t *testing.T)
internal/server/handlers_import_bundle_partial_test.go:95
FunctionTestImportBundle_KeepPath_PartialWorkspaceIsReachable_SQLite
--- (a) kept partial is reachable by its importer --------------------------
internal/server/handlers_import_bundle_partial_test.go:91
FunctionTestImportBundle_KeepPath_UnreadableMembershipSaysUnconfirmed
--- (c)/(d) helper KEEP arms: the row exists, ownership unconfirmed -------- addOwnerOrCompensate keeps the workspace on two of its error arms — the
internal/server/handlers_import_bundle_partial_test.go:180
FunctionTestImportBundle_KeepPath_WrongRoleMembershipSaysUnconfirmed
(t *testing.T)
internal/server/handlers_import_bundle_partial_test.go:186
FunctionTestImportBundle_LegacyJSONStillWorks
TestImportBundle_LegacyJSONStillWorks confirms the JSON dispatch still works alongside the new bundle path. Hits the same endpoint with JSON content-t
internal/server/handlers_import_bundle_test.go:165
FunctionTestImportBundle_PathTraversalAfterExportRollsBack
TestImportBundle_PathTraversalAfterExportRollsBack pins this case: a path-traversal entry that follows a valid pad-export.json must trigger the worksp
internal/server/handlers_import_bundle_test.go:436
FunctionTestImportBundle_RefusesNULInExport
TestImportBundle_RefusesNULInExport covers BUG-2803. The tar.gz bundle path parses pad-export.json itself rather than through decodeJSON, so it inheri
internal/server/handlers_import_bundle_test.go:660
FunctionTestImportBundle_RefusesNULInManifest
TestImportBundle_RefusesNULInManifest is the leg that was missing: TestImportBundle_RefusesNULInExport builds bundles containing only pad-export.json,
internal/server/handlers_import_bundle_test.go:725
FunctionTestImportBundle_RejectRollback_LeavesNoHuskAndReclaimsBlobs_Postgres
(t *testing.T)
internal/server/handlers_import_bundle_husk_test.go:180
← previousnext →20,201–20,300 of 28,840, ranked by callers