MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestUpload_RejectsExtensionMismatch
(t *testing.T)
internal/server/handlers_attachments_test.go:693
FunctionTestUpload_RejectsMissingFilePart
(t *testing.T)
internal/server/handlers_attachments_test.go:709
FunctionTestUpload_RejectsRepeatedConflictingItemID
TestUpload_RejectsRepeatedConflictingItemID covers the within-channel case: net/http keeps only the first value of a repeated field, so a first-wins r
internal/server/handlers_attachments_test.go:557
FunctionTestUpload_RejectsTooManyItemIDValues
TestUpload_RejectsTooManyItemIDValues pins the bound on per-channel item_id values. Exact-string dedup can't bound the ResolveItem lookups on its own
internal/server/handlers_attachments_test.go:309
FunctionTestUpload_RejectsUnresolvableItemID
TestUpload_RejectsUnresolvableItemID pins the status contract: an item_id that does not resolve in the request workspace is a 404 on either channel —
internal/server/handlers_attachments_test.go:447
FunctionTestUpload_RemovesMultipartSpool
TestUpload_RemovesMultipartSpool covers the third leg of PLAN-2391 DR-2: file.Close() closes the spooled multipart temp file but never removes it — on
internal/server/handlers_attachments_test.go:638
FunctionTestUpsertAllDayMatchesTwoRows
r1-4: an all-day upsert whose instant matches one row and whose date matches another writes one of them and never violates the wall unique index.
internal/store/schedule_resolve_fix_test.go:51
FunctionTestUserByID_ReturnsTheStoredCustomer
(t *testing.T)
internal/server/task3549_stripe_customer_cas_test.go:110
FunctionTestUserCRUD
(t *testing.T)
internal/store/users_test.go:25
FunctionTestUserCount
(t *testing.T)
internal/store/users_test.go:196
FunctionTestUserCountFaultIsNilInProduction
(t *testing.T)
internal/server/bug3334_fail_closed_test.go:385
FunctionTestUserCreateAdmin
(t *testing.T)
internal/store/users_test.go:109
FunctionTestUserDuplicateEmail
(t *testing.T)
internal/store/users_test.go:127
FunctionTestUserFieldsSurviveTOTP
(t *testing.T)
internal/store/totp_test.go:159
FunctionTestUserTimezone
TASK-4101: users.timezone round-trips, defaults to NULL, and the first-sign-in default is one conditional UPDATE. Runs on SQLite in make test and on P
internal/store/users_timezone_test.go:12
FunctionTestUsernameAccountRoutesReserved
(t *testing.T)
internal/server/username_test.go:8
FunctionTestValidFilenameSource
(t *testing.T)
internal/attachments/filename_source_test.go:42
FunctionTestValidImportedBuiltinOrigin
TASK-3462: an imported origin is stored only when it is well formed AND its seed text is the text its hash names; anything else imports the item witho
internal/store/builtin_origin_test.go:14
FunctionTestValidModeAcceptsKnownModes
(t *testing.T)
internal/config/config_test.go:150
FunctionTestValidQueryText
(t *testing.T)
internal/server/middleware_query_test.go:383
FunctionTestValidQueryTextFastPathIsNeverMorePermissive
TestValidQueryTextFastPathIsNeverMorePermissive is the differential check behind the '%' fast path. AN EARLIER VERSION OF THIS TEST CLAIMED EQUIVALEN
internal/server/middleware_query_test.go:451
FunctionTestValidate
(t *testing.T)
internal/usertz/usertz_test.go:9
FunctionTestValidateAbandonedOptions
(t *testing.T)
internal/models/terminal_test.go:367
FunctionTestValidateAudienceParam
===================================================================== ValidateAudienceParam — single-param helper for HTTP-handler entry =============
internal/oauth/server_test.go:356
FunctionTestValidateBoolArity_AcceptsPresenceForm
(t *testing.T)
internal/cmdhelp/example_validation_test.go:352
FunctionTestValidateBoolArity_DetectsValuedBool
(t *testing.T)
internal/cmdhelp/example_validation_test.go:330
FunctionTestValidateCalendarFieldsRefusesABuiltinEndFieldWhateverTheSchema
(t *testing.T)
internal/models/view_calendar_test.go:58
FunctionTestValidateCalendarFieldsRefusesAKeyTheStoreCannotRead
(t *testing.T)
internal/models/view_calendar_test.go:39
FunctionTestValidateCalendarViewConfig
(t *testing.T)
internal/models/view_calendar_test.go:8
FunctionTestValidateChatGPTCatalog_RefusesDefects
The validator is an instrument: each defect it exists to catch must fail it. Each case breaks one entry on a copy of the catalog.
internal/mcp/chatgpt_catalog_test.go:107
FunctionTestValidateCloudSecureCookies
TestValidateCloudSecureCookies guards B7 (TASK-1932): a server opted into cloud-tenant mode without secure cookies must fail fast at startup rather th
internal/config/config_test.go:316
FunctionTestValidateConversationAgentKey
BUG-4055: agent keys share the self-declared name's rune bound, not op_key's independent byte bound. Malformed UTF-8 must be rejected first.
internal/store/conversations_test.go:60
FunctionTestValidateDocumentTitle_PipeAndBackslashReasonIsTrue
BUG-2806: `|` and `\` stay refused in new titles, but the reason given is the true one. It used to say the rename cascade could not find their escaped
internal/models/document_title_test.go:188
FunctionTestValidateExamples_AcceptsNegateFlag
(t *testing.T)
internal/cmdhelp/example_validation_test.go:116
FunctionTestValidateExamples_AcceptsPersistentFlagFromAncestor
(t *testing.T)
internal/cmdhelp/example_validation_test.go:229
FunctionTestValidateExamples_Clean
(t *testing.T)
internal/cmdhelp/example_validation_test.go:46
FunctionTestValidateExamples_DetectsTypoFlag
(t *testing.T)
internal/cmdhelp/example_validation_test.go:69
FunctionTestValidateExamples_DetectsUnknownCommand
(t *testing.T)
internal/cmdhelp/example_validation_test.go:97
FunctionTestValidateExamples_DoubleDashDoesNotHideEarlierDrift
TestValidateExamples_DoubleDashDoesNotHideEarlierDrift is the companion leg: the scan must still catch a genuinely unknown flag that appears BEFORE th
internal/cmdhelp/example_validation_test.go:161
FunctionTestValidateExamples_DoubleDashTerminatesFlagScan
TestValidateExamples_DoubleDashTerminatesFlagScan pins the fix for the "playbook match" example drift found in CI on a2a5a853: a positional argument a
internal/cmdhelp/example_validation_test.go:140
FunctionTestValidateExamples_FlagBeforeSubcommandResolvesToCorrectTarget
(t *testing.T)
internal/cmdhelp/example_validation_test.go:203
FunctionTestValidateExamples_LoneDashDoesNotTerminateScan
TestValidateExamples_LoneDashDoesNotTerminateScan covers the third leg: a LONE "-" (the stdin convention, e.g. `pad item import -`) is a different tok
internal/cmdhelp/example_validation_test.go:184
FunctionTestValidateExamples_PipelineStopsAtFirstCommand
(t *testing.T)
internal/cmdhelp/example_validation_test.go:269
FunctionTestValidateExamples_SkipsNonBinaryExamples
(t *testing.T)
internal/cmdhelp/example_validation_test.go:247
FunctionTestValidateFieldsDetailed_AttributesAndOrders
--- ValidateFieldsDetailed (PLAN-2357 / TASK-2364) -------------------- TestValidateFieldsDetailed_AttributesAndOrders pins the two properties the cop
internal/items/validate_test.go:423
FunctionTestValidateFieldsNumberAcceptsOnlyValidJSONNumbers
BUG-3202: the write doors now hand the validator json.Number values. One from the decoder is always a valid literal, but a json.Number can be built fr
internal/items/coerce_test.go:203
FunctionTestValidateFields_CheckboxType
(t *testing.T)
internal/items/validate_test.go:132
FunctionTestValidateFields_DateType
(t *testing.T)
internal/items/validate_test.go:154
FunctionTestValidateFields_DefaultsApplied
(t *testing.T)
internal/items/validate_test.go:344
FunctionTestValidateFields_DelegatesToDetailed
TestValidateFields_DelegatesToDetailed — the joined-error surface must stay in step with the structured one; they share a traversal so they can never
internal/items/validate_test.go:468
FunctionTestValidateFields_InvalidPattern
(t *testing.T)
internal/items/validate_test.go:326
FunctionTestValidateFields_JSONType
(t *testing.T)
internal/items/validate_test.go:247
FunctionTestValidateFields_MultiSelect
(t *testing.T)
internal/items/validate_test.go:216
FunctionTestValidateFields_NumberType
(t *testing.T)
internal/items/validate_test.go:110
FunctionTestValidateFields_PatternMatch
(t *testing.T)
internal/items/validate_test.go:284
FunctionTestValidateFields_RequiredMissingNoDefault
(t *testing.T)
internal/items/validate_test.go:71
FunctionTestValidateFields_RequiredWithDefault
(t *testing.T)
internal/items/validate_test.go:52
FunctionTestValidateFields_SelectInvalid
(t *testing.T)
internal/items/validate_test.go:85
FunctionTestValidateFields_SelectValid
(t *testing.T)
internal/items/validate_test.go:97
FunctionTestValidateFields_TextType
(t *testing.T)
internal/items/validate_test.go:194
FunctionTestValidateFormBody
(t *testing.T)
internal/server/middleware_form_body_test.go:144
FunctionTestValidatePartialFields_AllowsDeletingOptionalField
(t *testing.T)
internal/items/validate_test.go:408
FunctionTestValidatePartialFields_AllowsOrphanKeys
(t *testing.T)
internal/items/validate_test.go:391
FunctionTestValidatePartialFields_RejectsBadEnum
(t *testing.T)
internal/items/validate_test.go:383
FunctionTestValidatePartialFields_RejectsDeletingRequiredField
(t *testing.T)
internal/items/validate_test.go:399
FunctionTestValidatePartialFields_ValidatesOnlyPresentKeys
--- ValidatePartialFields (TASK-2022 field-level PATCH) ---
internal/items/validate_test.go:370
FunctionTestValidatePassword
(t *testing.T)
internal/store/users_test.go:146
FunctionTestValidatePasswordStrength
(t *testing.T)
internal/server/password_strength_test.go:9
FunctionTestValidatePasswordStrength_ContextPenalizesDerivedPasswords
TestValidatePasswordStrength_ContextPenalizesDerivedPasswords is a unit-level guard that the context-aware penalty actually discriminates between a pa
internal/server/password_strength_test.go:72
FunctionTestValidatePasswordStrength_EmptyUserInputsAreIgnored
TestValidatePasswordStrength_EmptyUserInputsAreIgnored pins behavior around passing empty strings as context: zxcvbn treats each user-input string as
internal/server/password_strength_test.go:60
FunctionTestValidatePasswordStrength_MessagesTheWebFormsRoute
The web forms route these refusals onto the password field by matching their text (web/src/lib/auth/passwordRule.ts::isPasswordRuleError, TASK-2260),
internal/server/password_strength_test.go:197
FunctionTestValidatePathAllowsValidText
TestValidatePathAllowsValidText is the control leg. The rule is not "only what the database rejects" — it deliberately refuses bytes SQLite and a SQL_
internal/server/middleware_request_text_test.go:143
FunctionTestValidatePathPostgresNoInternalError
TestValidatePathPostgresNoInternalError is the dialect half: it drives the vector on the backend where the 500 occurred, against a real Postgres store
internal/server/middleware_request_text_test.go:226
FunctionTestValidatePathRejectionLooksLikeEveryOtherAPIError
TestValidatePathRejectionLooksLikeEveryOtherAPIError pins the response SHAPE, not just the status. ValidatePath runs on the root router, so its rejec
internal/server/middleware_request_text_test.go:274
FunctionTestValidatePathRejectsBeforeAuthAndRateLimit
TestValidatePathRejectsBeforeAuthAndRateLimit pins an ORDERING decision, not an accident. ValidatePath sits on the root router, so a rejected request
internal/server/middleware_request_text_test.go:370
FunctionTestValidatePathRejectsUnbindablePathText
TestValidatePathRejectsUnbindablePathText drives the REAL server (not ValidatePath directly) so it vouches for the middleware's BINDING as well as its
internal/server/middleware_request_text_test.go:80
FunctionTestValidateQueryAllowsValidText
TestValidateQueryAllowsValidText is the control leg, and it is the half that matters most here: the objection to validating the query string at the tr
internal/server/middleware_query_test.go:130
FunctionTestValidateQueryDeliversEscapedUnicodeToTheHandler
TestValidateQueryDeliversEscapedUnicodeToTheHandler is the control the status-code table above cannot give: a 200 proves the request was not refused,
internal/server/middleware_query_test.go:182
FunctionTestValidateQueryPostgresNoInternalError
TestValidateQueryPostgresNoInternalError is the dialect half: it drives the vector on the backend where the 500 occurred, against a real Postgres stor
internal/server/middleware_query_test.go:344
FunctionTestValidateQueryRejectionLooksLikeEveryOtherAPIError
TestValidateQueryRejectionLooksLikeEveryOtherAPIError pins the response SHAPE, not just the status: this rejection short-circuits above the api/v1 gro
internal/server/middleware_query_test.go:284
FunctionTestValidateQueryRejectsUnbindableQueryText
TestValidateQueryRejectsUnbindableQueryText drives the REAL server rather than ValidateQuery directly, so it vouches for the middleware's BINDING as w
internal/server/middleware_query_test.go:58
FunctionTestValidateQueryRunsAfterValidatePath
TestValidateQueryRunsAfterValidatePath pins the ORDERING decision in setupRouter. A request bad in both places is answered for its path, which is the
internal/server/middleware_query_test.go:259
FunctionTestValidateTokenExpired
(t *testing.T)
internal/store/api_tokens_test.go:132
FunctionTestValidateTokenForLiveness_DoesNotTouchLastUsed
(t *testing.T)
internal/server/handlers_stream_session_liveness_test.go:750
FunctionTestValidateTokenUpdatesLastUsed
(t *testing.T)
internal/store/api_tokens_test.go:311
FunctionTestValidateURL
(t *testing.T)
internal/urlimport/fetch_test.go:13
FunctionTestValidateUpload_AcceptsGzip
(t *testing.T)
internal/attachments/mime_test.go:296
FunctionTestValidateUpload_AcceptsOfficeOpenXMLAsZipBytes
(t *testing.T)
internal/attachments/mime_test.go:221
FunctionTestValidateUpload_AcceptsWAV
(t *testing.T)
internal/attachments/mime_test.go:281
FunctionTestValidateUpload_AllowsTextPlain
(t *testing.T)
internal/attachments/mime_test.go:189
FunctionTestValidateUpload_HTMLForcedDownload
(t *testing.T)
internal/attachments/mime_test.go:200
FunctionTestValidateUpload_HappyPath
(t *testing.T)
internal/attachments/mime_test.go:140
FunctionTestValidateUpload_ISOBMFFDoesNotBecomeExtensionTrust
TestValidateUpload_ISOBMFFDoesNotBecomeExtensionTrust is the row the reporter asked to keep whatever the fix turned out to be: the OTHER way to make t
internal/attachments/mime_isobmff_test.go:70
FunctionTestValidateUpload_RejectsExe
(t *testing.T)
internal/attachments/mime_test.go:153
FunctionTestValidateUpload_RejectsExeByExtensionAlone
(t *testing.T)
internal/attachments/mime_test.go:307
FunctionTestValidateUpload_RejectsExtensionMismatch
(t *testing.T)
internal/attachments/mime_test.go:164
FunctionTestValidateUpload_RejectsSVG
(t *testing.T)
internal/attachments/mime_test.go:175
FunctionTestValidateWebhookURL
(t *testing.T)
internal/webhooks/validate_test.go:8
FunctionTestValidationFailedFromBuildErr
TestValidationFailedFromBuildErr verifies that BuildCLIArgs error strings are wrapped as structured validation_failed envelopes instead of bare-text r
internal/mcp/bug987_test.go:104
FunctionTestVerifiedEmailExemptPath_InvitationAnswersOnly
(t *testing.T)
internal/server/middleware_verified_email_test.go:545
← previousnext →25,901–26,000 of 28,840, ranked by callers