MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestShorthandTable
(t *testing.T)
internal/schedule/shorthand_test.go:11
FunctionTestShorthandUnknown
(t *testing.T)
internal/schedule/shorthand_test.go:29
FunctionTestShouldEmbedAsImage
BUG-2964 — <img> vs file chip is decided by what can actually be SERVED and PAINTED, not by a `image/` MIME prefix. The defect: a pure-Go build deriv
internal/server/render/attachments_embed_test.go:19
FunctionTestShouldEmbedAsImage_NilMeta
(t *testing.T)
internal/server/render/attachments_embed_test.go:74
FunctionTestShouldEmbedAsImage_RequestedVariant
TestShouldEmbedAsImage_RequestedVariant. The question is about THE VARIANT THIS RENDER WILL REQUEST, not about whether any thumbnail exists. Derivati
internal/server/render/attachments_embed_test.go:135
FunctionTestSidecarContract_BillingConfig
The sidecar contract: GET /billing/config as pad-cloud's real handler shapes it (generated there by TestSidecarContract_BillingConfig and copied here)
internal/billing/offer_test.go:165
FunctionTestSignAppPayload_Format
(t *testing.T)
internal/webhooks/app_delivery_test.go:251
FunctionTestSignIn_AsDifferentUser_DestroysReplacedSession
(t *testing.T)
internal/server/handlers_auth_replaced_session_test.go:68
FunctionTestSignIn_BearerSessionIsUntouched
A CLI padsess_ bearer is not a cookie this response replaces: the CLI ignores Set-Cookie and keeps using its own row.
internal/server/handlers_auth_replaced_session_test.go:145
FunctionTestSignIn_NoOrUnknownCookie_Succeeds
(t *testing.T)
internal/server/handlers_auth_replaced_session_test.go:119
FunctionTestSignIn_SameUser_DestroysReplacedSessionOnly
(t *testing.T)
internal/server/handlers_auth_replaced_session_test.go:91
FunctionTestSignIn_SecureMode_DestroysPrefixedAndLegacyCookieRows
In secure mode the unprefixed legacy cookie is shadowed by the new __Host- cookie (validateSessionCookie prefers the prefixed name), so its row is orp
internal/server/handlers_auth_replaced_session_test.go:162
FunctionTestSignupMetricClientLabel
A self-serve signup is counted by client: the PadShell user agent is the app, anything else the web. An admin creating someone's account is not a sign
internal/server/task3926_funnel_metrics_test.go:48
FunctionTestSignupMetricSkipsBootstrap
The bootstrap admin is not a signup.
internal/server/task3926_funnel_metrics_test.go:387
FunctionTestSimpleReminderCommitmentMutable
Simple run-once commitments support the legacy alarm lifecycle.
internal/server/handlers_commitments_http_test.go:364
FunctionTestSimpleReminderWritesAndMissingIdentity
Missing alarms remain not found; an armed commitment refuses acknowledgement.
internal/store/schedules_test.go:748
FunctionTestSingleLine
(t *testing.T)
internal/urlimport/openapi_test.go:279
FunctionTestSkillVersionNewer
(t *testing.T)
internal/cli/skillstamp_test.go:147
FunctionTestSkipAfterAnAlreadyRecordedMissAddsNoMissAndNeedsNoAuthority
(t *testing.T)
internal/store/commitment_move_deadline_test.go:194
FunctionTestSkipAfterTheDeadlineRecordsTheMissFirst
(t *testing.T)
internal/store/commitment_move_deadline_test.go:155
FunctionTestSkipBeforeAHardDeadlineNeedsAuthority
A skip before a hard deadline is the renegotiate/DELETE authority (TASK-4353).
internal/server/handlers_commitments_test.go:747
FunctionTestSkipBeforeAHardDeadlineOwnerAndUnassigned
The workspace owner may skip before a deadline whoever is assigned, and the skip is journalled; on an unassigned item any editor may.
internal/server/handlers_commitments_test.go:799
FunctionTestSkipBeforeTheDeadlineNeedsAuthority
(t *testing.T)
internal/store/commitment_move_deadline_test.go:234
FunctionTestSkipCommitmentChangedHasItsOwnText
A skip whose assignee snapshot went stale answers the shared code with text that fits a skip: there is no preview to redo.
internal/server/handlers_commitments_test.go:860
FunctionTestSkipOfAClosedItemBeforeTheDeadlineKeepsTheAuthorityGate
A closed item can be reopened and is then evaluated again, so a skip of a promise still ahead keeps the authority check even when the item is closed.
internal/server/handlers_commitments_test.go:831
FunctionTestSkipOfAClosedItemRecordsNoMissAndLegacyIsUnchanged
(t *testing.T)
internal/store/commitment_move_deadline_test.go:299
FunctionTestSkipUsesTheEvaluatorsBoundaryIncludingAnOverride
(t *testing.T)
internal/store/commitment_move_deadline_test.go:207
FunctionTestSkippedRemindersAreNotErrors
TestSkippedRemindersAreNotErrors: a reminder another instance won returns (nil, nil), which must not count as a failure — the winner emits, and report
internal/store/reminders_test.go:674
FunctionTestSkippingANoLongerNeededOccurrenceRecordsNoMiss
A skip of the child's own occurrence, past its deadline and before the tick, records the miss first (nothing erases a miss that happened) unless the o
internal/store/commitment_cancel_test.go:158
FunctionTestSleepOrDone_ReturnsFalseWhenCancelled
(t *testing.T)
cmd/pad/cmd_watch_test.go:131
FunctionTestSleepOrDone_ReturnsTrueWhenDurationElapses
(t *testing.T)
cmd/pad/cmd_watch_test.go:124
FunctionTestSliceBodyLines
(t *testing.T)
internal/bodypatch/lines_test.go:19
FunctionTestSlogCaptureTestsAreNotParallel
TestSlogCaptureTestsAreNotParallel is BUG-3088's class guard. A test that installs a capturing handler as the PROCESS-GLOBAL slog default shares that
internal/store/slog_capture_serial_test.go:20
FunctionTestSlowConsumerDropsEvents
(t *testing.T)
internal/events/bus_test.go:124
FunctionTestSlowSQLiteMigrationsNameRealMigrations
A notice keyed by a name no migration carries would never print, and the map would read as a claim that the slow migration announces itself.
internal/store/migration_095_items_fts_test.go:236
FunctionTestSlugify
(t *testing.T)
internal/store/store_test.go:1914
FunctionTestSmallCodeNamesAndBoundsDirectly
(t *testing.T)
internal/logging/redaction_followups_test.go:1383
FunctionTestSnapshotBeforeMigrate_PreservesExisting
TestSnapshotBeforeMigrate_PreservesExisting verifies a retry doesn't clobber the original pre-upgrade snapshot with a later (partially-migrated) DB st
internal/store/migration_guard_test.go:176
FunctionTestSnapshotBeforeMigrate_SkipsNoFile
TestSnapshotBeforeMigrate_SkipsInMemory ensures the snapshot path is a no-op for a store with no on-disk file (defensive: guards the dbPath gate).
internal/store/migration_guard_test.go:211
FunctionTestSnapshotBeforeMigrate_WritesCopy
TestSnapshotBeforeMigrate_WritesCopy verifies the SQLite snapshot writes a byte-faithful copy next to the DB, named for the binary version.
internal/store/migration_guard_test.go:131
FunctionTestSniffISOBMFFImage_BrandsAnywhereInTheBox
TestSniffISOBMFFImage_BrandsAnywhereInTheBox covers the shape the reporter flagged: on their HEIC, mif1 is a COMPATIBLE brand and heic is the major, a
internal/attachments/mime_isobmff_test.go:127
FunctionTestSniffISOBMFFImage_MalformedInput
TestSniffISOBMFFImage_MalformedInput asserts the parser never panics and never guesses on input it cannot read. Every case here is something a hostile
internal/attachments/mime_isobmff_test.go:165
FunctionTestSniffISOBMFFImage_MinorVersionIsNotABrand
TestSniffISOBMFFImage_MinorVersionIsNotABrand covers bytes 12..16, which are a version number and not part of the brand list (14496-12 §4.3). A file w
internal/attachments/mime_isobmff_test.go:278
FunctionTestSniffISOBMFFImage_ScanStopsAtTheBox
TestSniffISOBMFFImage_ScanStopsAtTheBox pins the box-size bound. Without it the scan runs past ftyp into the following boxes, where any four-aligned o
internal/attachments/mime_isobmff_test.go:265
FunctionTestSniffISOBMFFImage_SequenceBrandsAreNotStillImages
TestSniffISOBMFFImage_SequenceBrandsAreNotStillImages pins the deliberate omission. Sequence brands name image/heic-sequence, image/avif-sequence and
internal/attachments/mime_isobmff_test.go:111
FunctionTestSniffISOBMFFImage_YieldsToVideo
TestSniffISOBMFFImage_YieldsToVideo keeps the "can only ADD detections" property honest: an MP4 the stdlib already detects must keep sniffing as video
internal/attachments/mime_isobmff_test.go:151
FunctionTestSniffMIME
(t *testing.T)
internal/attachments/mime_test.go:124
FunctionTestSniffMIME_AliasesStdlibQuirks
TestSniffMIME_AliasesStdlibQuirks is the regression test for stdlib naming: http.DetectContentType returns names that don't match modern IANA conventi
internal/attachments/mime_test.go:263
FunctionTestSniffMIME_RealISOBMFFStillImages
TestSniffMIME_RealISOBMFFStillImages is BUG-2961's regression test: before the ftyp pre-check, every one of these sniffed as application/octet-stream
internal/attachments/mime_isobmff_test.go:28
FunctionTestSnippetRenderersWarnAboutStaleSources
TestSnippetRenderersWarnAboutStaleSources covers the two CLI renderers that print body-derived SNIPPETS (BUG-3033). `pad item search` decodes the emb
cmd/pad/cmd_playbook_stale_body_test.go:518
FunctionTestSnoozeAfterFiredMovePushesAgain
(t *testing.T)
internal/store/commitment_move_test.go:230
FunctionTestSnoozeDoesNotChangeTarget
(t *testing.T)
internal/store/commitment_move_test.go:187
FunctionTestSnoozeIsJournaledButWritesNoOverride
(t *testing.T)
internal/store/commitment_journal_test.go:281
FunctionTestSnoozedFloatingMissedCountIsReadInEachReadersZone
C2b-3: the missed count walks from O's WALL whatever the override, in the reader's zone, and next_occurrence.at is the frozen instant for every reader
internal/store/schedule_resolve_test.go:655
FunctionTestSoftDeletedItemsDoNotOccupyTheBatch
TestSoftDeletedItemsDoNotOccupyTheBatch fireOneReminder rolls back when it finds the item gone, which leaves the reminder ARMED and therefore a candi
internal/store/reminders_test.go:577
FunctionTestSoftDeletedWorkspacesDoNotFire
TestSoftDeletedWorkspacesDoNotFire — the only defect in this unit whose consequence leaves the process. Workspace soft-delete deliberately keeps item
internal/store/reminders_test.go:937
FunctionTestSoftwareStarterPacksPopulated
TestSoftwareStarterPacksPopulated verifies that the software templates ship a non-empty starter convention + playbook pack. If SoftwareStarterConventi
internal/collections/templates_test.go:190
FunctionTestSoftwareTemplatesShipNoSeedItems
PLAN-1496 / TASK-1501-1502: the IDEA-1 / BACK-1 / FEAT-1 first-person onboarding seed pattern and the OnboardingPrimaryRef plumbing were retired in fa
internal/collections/templates_test.go:251
FunctionTestSoftwareTemplatesShipStarterPacks
TestSoftwareTemplatesShipStarterPacks verifies the software templates actually reference the starter packs on their struct.
internal/collections/templates_test.go:221
FunctionTestSoftwareTemplatesUseSoftwareOptions
TestSoftwareTemplatesUseSoftwareOptions verifies the startup/scrum/product templates continue to ship the established software trigger vocabulary. If
internal/collections/templates_test.go:620
FunctionTestSortedDedupedLockKeys
--- Lock-key ordering ------------------------------------------------------ The pure half of the DR-9 lock contract: ascending order, duplicates coll
internal/store/items_cross_workspace_copy_test.go:1045
FunctionTestSpecPlaybookTargetArgumentRequirement
TestSpecPlaybookTargetArgumentRequirement guards against the strict CLI/MCP parser bug: only REQUIRED args can be filled positionally (internal/server
internal/collections/templates_sdd_test.go:332
FunctionTestSpecTemplate
TestSpecTemplate verifies the spec (IDEA-2527) workspace template ships the expected collections, the extended SDD trigger vocabulary, the four seed c
internal/collections/templates_sdd_test.go:44
FunctionTestSpecTemplateAcceptanceCriteriaAreAllPlaceholders
An unedited spec has an acceptance-criteria section whose every line is a placeholder: the parser must read the template's own skeleton that way, or a
internal/collections/spec_acceptance_test.go:13
FunctionTestSpecTemplateSpecsCollectionSchema
TestSpecTemplateSpecsCollectionSchema checks the Specs collection's field shape: prefix, status lifecycle with the right terminal state, version/area
internal/collections/templates_sdd_test.go:82
FunctionTestSpecTemplateStarterConventions
TestSpecTemplateStarterConventions verifies the four seed conventions (IDEA-2527 comment 2) are present with the right trigger/priority.
internal/collections/templates_sdd_test.go:210
FunctionTestSpecTemplateStarterPlaybooks
TestSpecTemplateStarterPlaybooks verifies the five seed playbooks (three SDD-specific plus decompose + ship, reused).
internal/collections/templates_sdd_test.go:261
FunctionTestSpecTemplateTriggersExtendSoftware
TestSpecTemplateTriggersExtendSoftware verifies the spec template's conventions/playbooks trigger vocab is the software vocab PLUS the three SDD-speci
internal/collections/templates_sdd_test.go:161
FunctionTestSplitCodeFences_NestedAndUnclosed
(t *testing.T)
internal/server/render/attachments_test.go:473
FunctionTestSplitFieldEntry
The asymmetry IS the contract: a padded key is refused, a padded value is carried through untouched. These cases are written as a table of the exact s
internal/items/fieldentry_test.go:13
FunctionTestSplitFieldEntry_PaddedValueIsNotAKeyRefusal
A padded VALUE must never be reported as a key problem — that message would send the caller to fix the half that is fine.
internal/items/fieldentry_test.go:103
FunctionTestSplitFieldEntry_RefusalNamesTheCorrectedForm
The refusal has to be actionable: it must show the caller the form to write. A message that only says "bad key" leaves them guessing which half is wro
internal/items/fieldentry_test.go:88
FunctionTestSplitOnUnescapedPipe
TestSplitOnUnescapedPipe / TestUnescapeWikiBody — direct unit tests for the helpers. Round-trip safety against the editor's serializer (escapeWikiBody
internal/links/extract_test.go:774
FunctionTestSplitResourceArgs
(t *testing.T)
internal/mcp/resources_http_test.go:29
FunctionTestStage_AbortDiscardsAndIsIdempotent
(t *testing.T)
internal/attachments/staged_test.go:151
FunctionTestStage_CancelledContextKeepsNothing
(t *testing.T)
internal/attachments/staged_test.go:118
FunctionTestStage_HitWritesTheBodyThenDiscardsAndRefreshesMtime
A hit does the same staging work as a miss (the whole body is written and fsynced), then discards it and refreshes the canonical blob's mtime.
internal/attachments/staged_test.go:65
FunctionTestStage_MissRenamesIntoPlace
(t *testing.T)
internal/attachments/staged_test.go:34
FunctionTestStage_RefusesABodyOverItsLimit
(t *testing.T)
internal/attachments/staged_test.go:104
FunctionTestStagingNameNeverMatchesTheSweepPrefix
mkdirOwned's staging directory has no held lock yet, so a sweep in another process must never be able to match it: its name must not start with the pr
internal/testtmp/lock_unix_test.go:182
FunctionTestStaleAgendaIsTheCallersOwn
Somebody else's overdue schedules are not in a member's stale list or count.
internal/server/bootstrap_agenda_test.go:234
FunctionTestStaleAgendaPaged
agenda?stale=true lists what the bootstrap collapsed, oldest first, in pages.
internal/server/bootstrap_agenda_test.go:193
FunctionTestStaleAgendaSkipsUnreadableSchedule
(t *testing.T)
internal/server/agenda_unreadable_test.go:34
FunctionTestStaleAgendaStrictParamsAndMissedCountAlwaysThere
A repeated stale member is refused, and a row always carries missed_count.
internal/server/bootstrap_agenda_test.go:275
FunctionTestStaleAgendaTiePagesWhole
A page takes whole instants: 51 rows due at one instant come back together, never cut at 50 with a cursor that skips the last.
internal/server/bootstrap_agenda_test.go:252
FunctionTestStaleBodyAndNULCountReadDifferentHeaders
The two helpers must not be confused for each other: they read DIFFERENT headers, and a copy-paste that pointed one at the other's header would be inv
cmd/pad/workspace_import_stale_test.go:95
FunctionTestStaleBodyImportCountRefusesARepeatedHeader
A REPEATED header is refused rather than resolved to its first value. Header.Get would have returned "2" here while the browser's Headers.get joins th
cmd/pad/workspace_import_stale_test.go:74
FunctionTestStaleBodyImportCountSpeaksOnlyWhenThereIsSomethingToSay
(t *testing.T)
cmd/pad/workspace_import_stale_test.go:28
FunctionTestStaleBundleItemsFallsBackToTheSlugWhenNoRefCanBeBuilt
(t *testing.T)
cmd/pad/cmd_db_unflushed_test.go:152
FunctionTestStaleBundleItemsNamesOnlyMarkedItems
staleBundleItems is the fix where the pre-pass reads the database at one instant and ExportWorkspace reads it at another, so the bundle about to be wr
cmd/pad/cmd_db_unflushed_test.go:110
FunctionTestStaleKeepsOverdueAttention
The CLI half of IDEA-2641's stale leg. `pad project stale` does no date work of its own — it filters the dashboard's attention list and keeps four ty
cmd/pad/stale_overdue_test.go:23
FunctionTestStaleOccurrenceOutranksTheMovePolicy
A stale occurrence is stale before any move policy speaks (as a skip is): the caller must re-read, not be told about a date it never asked about.
internal/store/commitment_move_deadline_test.go:341
FunctionTestStallDenseRules
TestStallDenseRules is a regression test (TASK-4100): rules that fire every few minutes were refused with a cap once the query passed the day the per-
internal/schedule/bounds_test.go:49
FunctionTestStallFilteredCandidatesBounded
TestStallFilteredCandidatesBounded: the reset makes the expander look busy whenever it produces a candidate, so a candidate our wrapper then discards
internal/schedule/bounds_test.go:82
FunctionTestStallKinds
TestStallKinds: CapStall and CapScan are different caps with different limits (TASK-4100).
internal/schedule/bounds_test.go:151
FunctionTestStallPosClosedForm
TestStallPosClosedForm independently checks the reported position using RFC 5545 section 3.3.10 calendar arithmetic, never generator output as an expe
internal/schedule/stallfloor_test.go:54
FunctionTestStallPrefetchKeepsAnswer
TestStallPrefetchKeepsAnswer: the stall after the last reachable occurrence (the next Feb 29 is four years on) must not turn that occurrence into an e
internal/schedule/bounds_test.go:128
FunctionTestStampAttachmentRefs_Comments
(t *testing.T)
internal/store/attachments_gc_claim_test.go:120
FunctionTestStampAttachmentRefs_ItemContentAndFields
(t *testing.T)
internal/store/attachments_gc_claim_test.go:84
FunctionTestStampAttachmentRefs_StampsVariantsOfReferencedOriginal
TestStampAttachmentRefs_StampsVariantsOfReferencedOriginal pins the other half of the variant story: stamping a referenced ORIGINAL also stamps rows w
internal/store/attachments_gc_claim_test.go:319
← previousnext →24,501–24,600 of 28,840, ranked by callers