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
TestShorthandTable
(t *testing.T)
internal/schedule/shorthand_test.go:11
Function
TestShorthandUnknown
(t *testing.T)
internal/schedule/shorthand_test.go:29
Function
TestShouldEmbedAsImage
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
Function
TestShouldEmbedAsImage_NilMeta
(t *testing.T)
internal/server/render/attachments_embed_test.go:74
Function
TestShouldEmbedAsImage_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
Function
TestSidecarContract_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
Function
TestSignAppPayload_Format
(t *testing.T)
internal/webhooks/app_delivery_test.go:251
Function
TestSignIn_AsDifferentUser_DestroysReplacedSession
(t *testing.T)
internal/server/handlers_auth_replaced_session_test.go:68
Function
TestSignIn_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
Function
TestSignIn_NoOrUnknownCookie_Succeeds
(t *testing.T)
internal/server/handlers_auth_replaced_session_test.go:119
Function
TestSignIn_SameUser_DestroysReplacedSessionOnly
(t *testing.T)
internal/server/handlers_auth_replaced_session_test.go:91
Function
TestSignIn_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
Function
TestSignupMetricClientLabel
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
Function
TestSignupMetricSkipsBootstrap
The bootstrap admin is not a signup.
internal/server/task3926_funnel_metrics_test.go:387
Function
TestSimpleReminderCommitmentMutable
Simple run-once commitments support the legacy alarm lifecycle.
internal/server/handlers_commitments_http_test.go:364
Function
TestSimpleReminderWritesAndMissingIdentity
Missing alarms remain not found; an armed commitment refuses acknowledgement.
internal/store/schedules_test.go:748
Function
TestSingleLine
(t *testing.T)
internal/urlimport/openapi_test.go:279
Function
TestSkillVersionNewer
(t *testing.T)
internal/cli/skillstamp_test.go:147
Function
TestSkipAfterAnAlreadyRecordedMissAddsNoMissAndNeedsNoAuthority
(t *testing.T)
internal/store/commitment_move_deadline_test.go:194
Function
TestSkipAfterTheDeadlineRecordsTheMissFirst
(t *testing.T)
internal/store/commitment_move_deadline_test.go:155
Function
TestSkipBeforeAHardDeadlineNeedsAuthority
A skip before a hard deadline is the renegotiate/DELETE authority (TASK-4353).
internal/server/handlers_commitments_test.go:747
Function
TestSkipBeforeAHardDeadlineOwnerAndUnassigned
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
Function
TestSkipBeforeTheDeadlineNeedsAuthority
(t *testing.T)
internal/store/commitment_move_deadline_test.go:234
Function
TestSkipCommitmentChangedHasItsOwnText
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
Function
TestSkipOfAClosedItemBeforeTheDeadlineKeepsTheAuthorityGate
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
Function
TestSkipOfAClosedItemRecordsNoMissAndLegacyIsUnchanged
(t *testing.T)
internal/store/commitment_move_deadline_test.go:299
Function
TestSkipUsesTheEvaluatorsBoundaryIncludingAnOverride
(t *testing.T)
internal/store/commitment_move_deadline_test.go:207
Function
TestSkippedRemindersAreNotErrors
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
Function
TestSkippingANoLongerNeededOccurrenceRecordsNoMiss
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
Function
TestSleepOrDone_ReturnsFalseWhenCancelled
(t *testing.T)
cmd/pad/cmd_watch_test.go:131
Function
TestSleepOrDone_ReturnsTrueWhenDurationElapses
(t *testing.T)
cmd/pad/cmd_watch_test.go:124
Function
TestSliceBodyLines
(t *testing.T)
internal/bodypatch/lines_test.go:19
Function
TestSlogCaptureTestsAreNotParallel
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
Function
TestSlowConsumerDropsEvents
(t *testing.T)
internal/events/bus_test.go:124
Function
TestSlowSQLiteMigrationsNameRealMigrations
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
Function
TestSlugify
(t *testing.T)
internal/store/store_test.go:1914
Function
TestSmallCodeNamesAndBoundsDirectly
(t *testing.T)
internal/logging/redaction_followups_test.go:1383
Function
TestSnapshotBeforeMigrate_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
Function
TestSnapshotBeforeMigrate_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
Function
TestSnapshotBeforeMigrate_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
Function
TestSniffISOBMFFImage_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
Function
TestSniffISOBMFFImage_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
Function
TestSniffISOBMFFImage_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
Function
TestSniffISOBMFFImage_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
Function
TestSniffISOBMFFImage_SequenceBrandsAreNotStillImages
TestSniffISOBMFFImage_SequenceBrandsAreNotStillImages pins the deliberate omission. Sequence brands name image/heic-sequence, image/avif-sequence and
internal/attachments/mime_isobmff_test.go:111
Function
TestSniffISOBMFFImage_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
Function
TestSniffMIME
(t *testing.T)
internal/attachments/mime_test.go:124
Function
TestSniffMIME_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
Function
TestSniffMIME_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
Function
TestSnippetRenderersWarnAboutStaleSources
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
Function
TestSnoozeAfterFiredMovePushesAgain
(t *testing.T)
internal/store/commitment_move_test.go:230
Function
TestSnoozeDoesNotChangeTarget
(t *testing.T)
internal/store/commitment_move_test.go:187
Function
TestSnoozeIsJournaledButWritesNoOverride
(t *testing.T)
internal/store/commitment_journal_test.go:281
Function
TestSnoozedFloatingMissedCountIsReadInEachReadersZone
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
Function
TestSoftDeletedItemsDoNotOccupyTheBatch
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
Function
TestSoftDeletedWorkspacesDoNotFire
TestSoftDeletedWorkspacesDoNotFire — the only defect in this unit whose consequence leaves the process. Workspace soft-delete deliberately keeps item
internal/store/reminders_test.go:937
Function
TestSoftwareStarterPacksPopulated
TestSoftwareStarterPacksPopulated verifies that the software templates ship a non-empty starter convention + playbook pack. If SoftwareStarterConventi
internal/collections/templates_test.go:190
Function
TestSoftwareTemplatesShipNoSeedItems
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
Function
TestSoftwareTemplatesShipStarterPacks
TestSoftwareTemplatesShipStarterPacks verifies the software templates actually reference the starter packs on their struct.
internal/collections/templates_test.go:221
Function
TestSoftwareTemplatesUseSoftwareOptions
TestSoftwareTemplatesUseSoftwareOptions verifies the startup/scrum/product templates continue to ship the established software trigger vocabulary. If
internal/collections/templates_test.go:620
Function
TestSortedDedupedLockKeys
--- 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
Function
TestSpecPlaybookTargetArgumentRequirement
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
Function
TestSpecTemplate
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
Function
TestSpecTemplateAcceptanceCriteriaAreAllPlaceholders
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
Function
TestSpecTemplateSpecsCollectionSchema
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
Function
TestSpecTemplateStarterConventions
TestSpecTemplateStarterConventions verifies the four seed conventions (IDEA-2527 comment 2) are present with the right trigger/priority.
internal/collections/templates_sdd_test.go:210
Function
TestSpecTemplateStarterPlaybooks
TestSpecTemplateStarterPlaybooks verifies the five seed playbooks (three SDD-specific plus decompose + ship, reused).
internal/collections/templates_sdd_test.go:261
Function
TestSpecTemplateTriggersExtendSoftware
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
Function
TestSplitCodeFences_NestedAndUnclosed
(t *testing.T)
internal/server/render/attachments_test.go:473
Function
TestSplitFieldEntry
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
Function
TestSplitFieldEntry_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
Function
TestSplitFieldEntry_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
Function
TestSplitOnUnescapedPipe
TestSplitOnUnescapedPipe / TestUnescapeWikiBody — direct unit tests for the helpers. Round-trip safety against the editor's serializer (escapeWikiBody
internal/links/extract_test.go:774
Function
TestSplitResourceArgs
(t *testing.T)
internal/mcp/resources_http_test.go:29
Function
TestStage_AbortDiscardsAndIsIdempotent
(t *testing.T)
internal/attachments/staged_test.go:151
Function
TestStage_CancelledContextKeepsNothing
(t *testing.T)
internal/attachments/staged_test.go:118
Function
TestStage_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
Function
TestStage_MissRenamesIntoPlace
(t *testing.T)
internal/attachments/staged_test.go:34
Function
TestStage_RefusesABodyOverItsLimit
(t *testing.T)
internal/attachments/staged_test.go:104
Function
TestStagingNameNeverMatchesTheSweepPrefix
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
Function
TestStaleAgendaIsTheCallersOwn
Somebody else's overdue schedules are not in a member's stale list or count.
internal/server/bootstrap_agenda_test.go:234
Function
TestStaleAgendaPaged
agenda?stale=true lists what the bootstrap collapsed, oldest first, in pages.
internal/server/bootstrap_agenda_test.go:193
Function
TestStaleAgendaSkipsUnreadableSchedule
(t *testing.T)
internal/server/agenda_unreadable_test.go:34
Function
TestStaleAgendaStrictParamsAndMissedCountAlwaysThere
A repeated stale member is refused, and a row always carries missed_count.
internal/server/bootstrap_agenda_test.go:275
Function
TestStaleAgendaTiePagesWhole
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
Function
TestStaleBodyAndNULCountReadDifferentHeaders
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
Function
TestStaleBodyImportCountRefusesARepeatedHeader
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
Function
TestStaleBodyImportCountSpeaksOnlyWhenThereIsSomethingToSay
(t *testing.T)
cmd/pad/workspace_import_stale_test.go:28
Function
TestStaleBundleItemsFallsBackToTheSlugWhenNoRefCanBeBuilt
(t *testing.T)
cmd/pad/cmd_db_unflushed_test.go:152
Function
TestStaleBundleItemsNamesOnlyMarkedItems
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
Function
TestStaleKeepsOverdueAttention
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
Function
TestStaleOccurrenceOutranksTheMovePolicy
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
Function
TestStallDenseRules
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
Function
TestStallFilteredCandidatesBounded
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
Function
TestStallKinds
TestStallKinds: CapStall and CapScan are different caps with different limits (TASK-4100).
internal/schedule/bounds_test.go:151
Function
TestStallPosClosedForm
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
Function
TestStallPrefetchKeepsAnswer
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
Function
TestStampAttachmentRefs_Comments
(t *testing.T)
internal/store/attachments_gc_claim_test.go:120
Function
TestStampAttachmentRefs_ItemContentAndFields
(t *testing.T)
internal/store/attachments_gc_claim_test.go:84
Function
TestStampAttachmentRefs_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
← previous
next →
24,501–24,600 of 28,840, ranked by callers