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
TestRelationDoors_WhitespaceOnlyRelationIsNotRefused
A whitespace-only relation value is "no reference", not a bad one. The store resolver trims and ignores it. The server wrapper checked the UNTRIMMED
internal/server/relation_referents_doors_test.go:761
Function
TestRelationDoors_WrongCollectionDoesNotDiscloseExistence
`wrong_collection` names a LIVE item, so its message tells the caller the value exists — distinguishable from the `not_found` a nonexistent value gets
internal/server/relation_referents_doors_test.go:666
Function
TestRelationFeedersPassTheRequesterVisibility
TestRelationFeedersPassTheRequesterVisibility is the guard the fail-closed pass relies on to stay unreachable. Every store function that takes a Relat
internal/server/relation_unjudged_fail_closed_test.go:64
Function
TestRelationFieldTypes_AgreesWithIsRelation
RelationFieldTypes must agree with IsRelation. Two expressions of one fact drift, and this is the only place that can notice.
internal/models/relation_field_types_test.go:47
Function
TestRelationIndex_BackfillCoversMultiRelationArrays
ROW 21: the BACKFILL handles the array form, not just the write hook. The two paths derive edges differently enough to be worth separating — the writ
internal/store/relation_links_multi_test.go:116
Function
TestRelationIndex_MultiRelationIndexesEveryElementWithItsOrdinal
ROW 20: a multi_relation write indexes ONE ROW PER ELEMENT, with the array position in `ordinal`.
internal/store/relation_links_multi_test.go:62
Function
TestRelationIndex_RetypeReindexesWhatIsStored
ROW 22: a scalar->array RETYPE reindexes against what is STORED, not against what the new schema says the shape should be. A garbage retype could loo
internal/store/relation_links_multi_test.go:177
Function
TestRelationKeysPresent_AnEmptyListIsNotCallerInput
(t *testing.T)
internal/store/relation_multi_defaults_test.go:280
Function
TestRelationLinks_ASourceInADeletedCollectionIsNotCounted
TestRelationLinks_ASourceInADeletedCollectionIsNotCounted guards a disclosure case. DeleteCollection soft-deletes the COLLECTION and leaves its items
internal/store/relation_links_test.go:537
Function
TestRelationLinks_AnInterruptedBackfillIsRetriedNotSkipped
TestRelationLinks_AnInterruptedBackfillIsRetriedNotSkipped guards an interrupted backfill being retried rather than skipped. The guard used to be "do
internal/store/relation_links_test.go:451
Function
TestRelationLinks_BackfillClearsAStaleEdge
TestRelationLinks_BackfillClearsAStaleEdge guards a stale edge being cleared by the backfill. The backfill used to SKIP an item whose blob carries no
internal/store/relation_links_test.go:502
Function
TestRelationLinks_BackfillDerivesRowsWrittenBeforeTheIndexExisted
TestRelationLinks_BackfillDerivesRowsWrittenBeforeTheIndexExisted is Q3's backfill leg. The table is emptied to simulate a pre-migration database.
internal/store/relation_links_test.go:257
Function
TestRelationLinks_BacklinkCarriesTheFieldLabel
TestRelationLinks_BacklinkCarriesTheFieldLabel pins that a backlink carries the field label, which was a field declared, documented, consumed by the U
internal/store/relation_links_test.go:619
Function
TestRelationLinks_ChangingTheValueMovesTheEdge
TestRelationLinks_ChangingTheValueMovesTheEdge is Q3's BOTH HALVES leg. A writer that only ever INSERTs passes "the new target counts it". Only the o
internal/store/relation_links_test.go:99
Function
TestRelationLinks_HardDeleteCascadesTheEdges
TestRelationLinks_HardDeleteCascadesTheEdges pins a claim the input matrix makes and nothing else checked. The matrix says a hard delete needs no hoo
internal/store/relation_links_test.go:584
Function
TestRelationLinks_ImportIndexesTheRemappedIDs
TestRelationLinks_ImportIndexesTheRemappedIDs covers the import hook, which none of the legs above reach. Two things have to be true and only one is
internal/store/relation_links_test.go:305
Function
TestRelationLinks_MoveReindexesAgainstTheDestinationSchema
TestRelationLinks_MoveReindexesAgainstTheDestinationSchema. A move is the one write where the blob and the SCHEMA change together. The same stored va
internal/store/relation_links_test.go:180
Function
TestRelationLinks_RestoreAfterASchemaChangeReindexes
TestRelationLinks_RestoreAfterASchemaChangeReindexes guards a restore that follows a schema change: it is a hole a site enumeration could not have fou
internal/store/relation_links_test.go:397
Function
TestRelationLinks_SchemaChangeReindexesTheCollection
TestRelationLinks_SchemaChangeReindexesTheCollection encodes the D2 decision as a test. Declaring a relation field over values that already exist mus
internal/store/relation_links_test.go:214
Function
TestRelationLinks_SoftDeletedSourceDropsOutAndRestoreBringsItBack
TestRelationLinks_SoftDeletedSourceDropsOutAndRestoreBringsItBack. store/items.go documents that a restore resurrects an item's relationships; the re
internal/store/relation_links_test.go:129
Function
TestRelationLinks_SoftDeletedTargetKeepsItsRows
TestRelationLinks_SoftDeletedTargetKeepsItsRows asserts on the STORE's answer rather than on a chip's wording. Q3's row phrases this leg as "the sour
internal/store/relation_links_test.go:161
Function
TestRelationLinks_WriteThenReadCountsTheSource
TestRelationLinks_WriteThenReadCountsTheSource is the first half of Q3's property: a written relation value shows up on the target's reverse side.
internal/store/relation_links_test.go:61
Function
TestRelationRefDoesNotResolveByNumberAcrossALivePrefix
BUG-4119: a prefix miss needs the item's move log, not merely an absent live collection. Prefix renames alone, deleted unrelated collections, and fore
internal/server/relation_ref_prefix_test.go:15
Function
TestRelationReindexCost
TestRelationReindexCost measures ReindexCollectionRelationLinks at scale. This number was asked for on TASK-2997's trail before accepting the reindex
internal/store/relation_links_cost_test.go:24
Function
TestRelationTargetSet_ListMarshalsAsAnArrayInOrder
(t *testing.T)
internal/models/relation_target_set_test.go:39
Function
TestRelationTargetSet_RoundTripsBothShapes
Both shapes must ROUND-TRIP, because the CLI decodes item JSON the server produced. A marshaller without a matching unmarshaller is how a shape change
internal/models/relation_target_set_test.go:83
Function
TestRelationTargetSet_ScalarIsByteIdenticalToTheOldShape
RelationTargetSet's wire shape (PLAN-2857 U4). The compatibility claim for this type is that a SCALAR entry marshals exactly as v0.31 emitted it, and
internal/models/relation_target_set_test.go:15
Function
TestRelationTargetSet_ZeroValueMarshalsAsNull
A set with NEITHER shape set marshals as null. It is a state no constructor produces, and the alternative — `{}` — would read as a target with an empt
internal/models/relation_target_set_test.go:69
Function
TestRelationTitleCopy_OverrideResolvesForACallerWhoSeesOneTwin
TestRelationTitleCopy_OverrideResolvesForACallerWhoSeesOneTwin covers this: the copy re-resolved the raw title inside its transaction and saw `ambiguo
internal/server/relation_titles_copy_test.go:48
Function
TestRelationTitleCopy_PreflightAndCopyAgreeOnANarrowedTitle
TestRelationTitleCopy_PreflightAndCopyAgreeOnANarrowedTitle covers this, and it is the one a per-door test cannot make: agreement between two doors is
internal/server/relation_titles_copy_test.go:74
Function
TestRelationTitleDoors_AmbiguityIsCountedOverVISIBLEMatchesOnly
(t *testing.T)
internal/server/relation_titles_doors_test.go:284
Function
TestRelationTitleDoors_HydrationUsesITEMVisibilityNotCollectionVisibility
TestRelationTitleDoors_HydrationUsesITEMVisibilityNotCollectionVisibility is the read-side half of the same trap, and it is a leak a collection-level
internal/server/relation_titles_doors_test.go:354
Function
TestRelationTitleDoors_LateDefaultResolvesForACallerWhoSeesOne
TestRelationTitleDoors_LateDefaultResolvesForACallerWhoSeesOne pins a leak through the OUTCOME rather than the message. A relation DEFAULT declared a
internal/server/relation_titles_doors_test.go:508
Function
TestRelationTitleDoors_LegacyTargetWithoutRefIsRedacted
BUG-3366: a LEGACY target, whose item_number is NULL, hydrates with a title but no ref. Redaction used to key on the ref alone, so an ungranted legacy
internal/server/relation_titles_doors_test.go:623
Function
TestRelationTitleDoors_ProbeFindsAVisibleMatchNotAnArbitraryOne
TestRelationTitleDoors_ProbeFindsAVisibleMatchNotAnArbitraryOne covers the property failing in the other direction. When nothing in the declared coll
internal/server/relation_titles_doors_test.go:570
Function
TestRelationTitleDoors_ReadDoesNotHydrateAnInvisibleTarget
TestRelationTitleDoors_ReadDoesNotHydrateAnInvisibleTarget is the read-side mirror of the disclosure rule above. The write side collapses `wrong_coll
internal/server/relation_titles_doors_test.go:189
Function
TestRelationTitleDoors_ReadHydratesTheTarget
TestRelationTitleDoors_ReadHydratesTheTarget is the hydration half's binding claim: the read door returns relation_targets, and a dangling value comes
internal/server/relation_titles_doors_test.go:136
Function
TestRelationTitleDoors_ThreeSpellingsAgreeThroughTheCreateDoor
(t *testing.T)
internal/server/relation_titles_doors_test.go:48
Function
TestRelationTitleDoors_TitleWrongCollectionDoesNotDiscloseExistence
TestRelationTitleDoors_TitleWrongCollectionDoesNotDiscloseExistence is the existence-disclosure check on the TITLE path, and it is the leg the addendu
internal/server/relation_titles_doors_test.go:84
Function
TestRelationTitleDoors_UpdateDoorAppliesTheSameNarrowing
TestRelationTitleDoors_UpdateDoorAppliesTheSameNarrowing answers a coverage gap: the three ambiguity legs only drove CREATE, and each door reaches the
internal/server/relation_titles_doors_test.go:468
Function
TestRelationTitleDoors_VisibilityNarrowingHasNoCountBoundary
TestRelationTitleDoors_VisibilityNarrowingHasNoCountBoundary is the regression test for an earlier defect: the first fix bounded the candidate list at
internal/server/relation_titles_doors_test.go:413
Function
TestRelationTitle_ANullItemNumberCandidateStillCounts
TestRelationTitle_ANullItemNumberCandidateStillCounts guards the case: it is the reason the candidate walk pages on `id`. The first paging shape used
internal/store/relation_titles_test.go:327
Function
TestRelationTitle_AmbiguousRefusesWithItsOwnReason
TestRelationTitle_AmbiguousRefusesWithItsOwnReason covers the ambiguity decision: two live items in the TARGET collection sharing a title name no sing
internal/store/relation_titles_test.go:103
Function
TestRelationTitle_RefWinsOverAnItemTitledLikeARef
TestRelationTitle_RefWinsOverAnItemTitledLikeARef pins the ladder's order and the shadowing case the resolver's doc comment names: UUID, then ref, the
internal/store/relation_titles_test.go:147
Function
TestRelationTitle_ScopeIsTheDeclaredCollection
TestRelationTitle_ScopeIsTheDeclaredCollection is the store half of the scope decision and the R11 guard: a title unique in the WORKSPACE but living o
internal/store/relation_titles_test.go:65
Function
TestRelationTitle_SoftDeletedTitleDoesNotResolve
TestRelationTitle_SoftDeletedTitleDoesNotResolve: a deleted item's title is not a handle. The control is the same title on a live item, so the leg can
internal/store/relation_titles_test.go:185
Function
TestRelationTitle_SuppliedValueStillObeysVisibility
TestRelationTitle_SuppliedValueStillObeysVisibility is the other half, and it is what stops the fix above from being "visibility was switched off". A
internal/store/relation_titles_test.go:411
Function
TestRelationTitle_ThreeSpellingsOfOneItemStoreTheSameID
TestRelationTitle_ThreeSpellingsOfOneItemStoreTheSameID is the design row's proving test: the same relation written by ref, by exact title and by raw
internal/store/relation_titles_test.go:42
Function
TestRelationValueStoredAsText_SharedVectors
TestRelationValueStoredAsText_SharedVectors pins the Go predicate to the table the web's copy is pinned to. KEEP IN SYNC with web/src/lib/items/relati
internal/store/relation_stored_as_text_test.go:160
Function
TestRelationVisibility_ControlAVisibleElementStillResolves
(t *testing.T)
internal/store/relation_visibility_rungs_test.go:94
Function
TestRelationVisibility_ControlWrongCollectionSurvivesForASeenTarget
(t *testing.T)
internal/store/relation_visibility_rungs_test.go:141
Function
TestRelationVisibility_EveryMultiElementIsJudged
(t *testing.T)
internal/store/relation_visibility_rungs_test.go:61
Function
TestRelationVisibility_NoPredicateMeansNoJudgement
(t *testing.T)
internal/store/relation_visibility_rungs_test.go:164
Function
TestRelationVisibility_ScalarRefToAnInvisibleTargetIsNotFound
(t *testing.T)
internal/store/relation_visibility_rungs_test.go:37
Function
TestRelationVisibility_WrongCollectionIsCollapsedForAnUnseenTarget
(t *testing.T)
internal/store/relation_visibility_rungs_test.go:118
Function
TestRelativeTimeOldDateInZone
(t *testing.T)
internal/cli/zone_test.go:27
Function
TestRelayAppendStoresAStep2AsNonContent
The relay's append path (AppendSyncFrame) applies the same rule: the step2 is stored, so joining tabs still replay it, but not counted.
internal/store/bug3136_step2_twin_test.go:246
Function
TestReleaseCloudOwnership
release-cloud: refused while billing state remains, unless forced; once released the conversion runs (taking the source over, as the primitive does);
internal/store/task3551_instance_mode_test.go:94
Function
TestReleaseItemLease_AbsentOrExpiredIsNoop
Releasing an absent or expired lease is a no-op, never an error — cleanup code must not special-case "did I still hold this".
internal/store/item_lease_test.go:185
Function
TestReleaseItemLease_ForeignLiveRefused
Releasing another holder's LIVE lease is refused with LeaseHeldError — refuse-on-ambiguity, not last-writer-wins.
internal/store/item_lease_test.go:205
Function
TestReleaseItemLease_HolderReleases
Release by the holder clears the lease; the item is claimable again.
internal/store/item_lease_test.go:164
Function
TestReleaseNotifications_SkipsAtFive
Kills: attempts not incremented; the cap changed (5 -> 6 or 4); the skip not in the same statement as the fifth release; the claim not cleared.
internal/store/task3939_push_dispatch_test.go:299
Function
TestReleaseWorkflow_PinsThePluginWithoutFailingTheRelease
The release job runs the pin after the release and never fails the run.
internal/buildtools/pin_plugin_marketplace_test.go:163
Function
TestReleasedSkillFormattingMatchesToday
The reconstruction assumes every tag formatted output with today's StripFrontmatter and frontmatter literals. Check that per tag rather than assume it
internal/cli/skill_legacy_hashes_gen_test.go:203
Function
TestRemapAttachmentReferencesLeavesSearchIndexConsistent
The remap is the second caller the rebuild had, and a bundle with attachments always reaches it. The import is asserted clean FIRST, so this leg fails
internal/store/import_fts_test.go:116
Function
TestRemapAttachmentReferences_DoesNotStampUnreferencedClones
A clone that nothing ends up referencing must NOT be stamped. Stamping the whole id map would vouch for rows no text points at, keeping genuinely unre
internal/store/attachments_document_refs_test.go:270
Function
TestRemapAttachmentReferences_RewritesCommentBodies
BUG-2615. The remap is what makes an imported bundle's references point at the destination's cloned attachment rows. It walked items only, so a refere
internal/store/attachments_document_refs_test.go:197
Function
TestRemapAttachmentReferences_StampsTheRewrittenTarget
The remap must leave the destination's stamps correct, not just its text. The import stamps each comment body at insert, but the body still holds the
internal/store/attachments_document_refs_test.go:236
Function
TestRemapAttachmentRefsTokenizesLikeThePlanner
--- The attachment-ref rewrite (TASK-2365) --------------------------------- TestRemapAttachmentRefsTokenizesLikeThePlanner pins the property that mak
internal/store/items_cross_workspace_copy_test.go:1213
Function
TestRemapPartialError_IsPlainAndKeepsItsCause
(t *testing.T)
internal/store/attachments_remap_chunk_test.go:515
Function
TestRemap_ConcurrentItemEditIsNotOverwritten
BUG-2797. RemapAttachmentReferencesInWorkspace (run by bundle import, while the imported workspace is already visible to its owner) is a read-modify-
internal/store/attachments_remap_lost_update_test.go:50
Function
TestRemap_ItemCapBoundsAChunk
The item cap alone bounds a chunk when the clock never advances.
internal/store/attachments_remap_chunk_test.go:480
Function
TestRemap_SingleChunkEquivalence
A workspace small enough for one chunk must come out byte-identical to what the single-transaction remap produced. The golden file was captured from t
internal/store/attachments_remap_chunk_test.go:22
Function
TestRemap_StopAfterFirstChunk
Stopped after the first chunk (the fault seam), a part-done remap must (1) resolve every item it did process FULLY, content, fields, its comments, its
internal/store/attachments_remap_chunk_test.go:255
Function
TestRemap_ThousandRewritesEveryChunkUnderOneSecond
The same 1,000 rewrites on the injected clock: every chunk's lock hold is under 1 s whatever the box does, and the work is split.
internal/store/attachments_remap_chunk_test.go:664
Function
TestRemap_ThousandRewritesLockHoldAndInterleavedWrites
At 1,000 rewrites the remap must (a) hold the workspace seq lock for under 1 s per chunk, measured on the injected clock so the figure is deterministi
internal/store/attachments_remap_chunk_test.go:561
Function
TestRemap_TimeBudgetEndsChunksAndNothingIsSkipped
The chunk boundary is the clock's, and the stop is an item boundary: with a clock that makes every reading cost 100 ms the time budget (not the item c
internal/store/attachments_remap_chunk_test.go:441
Function
TestRemindAckOccurrenceSelection
(t *testing.T)
cmd/pad/schedule_ack_test.go:9
Function
TestRemindAcknowledgedAgendaAttribution
(t *testing.T)
cmd/pad/schedule_ack_test.go:59
Function
TestRemindAcknowledgedAgendaKeepsColumns
The attribution rides in the last column, so the rows after an acknowledged entry keep the table's alignment.
cmd/pad/schedule_ack_test.go:76
Function
TestRemindAgendaMatchesTheEndpoint
(t *testing.T)
cmd/pad/task4356_remind_test.go:324
Function
TestRemindArgsAcceptRearmWithoutARef
TestRemindArgsAcceptRearmWithoutARef. `--rearm` addresses a reminder by id and needs no item ref, but ExactArgs(1) forced one and the rearm branch th
cmd/pad/stale_overdue_test.go:54
Function
TestRemindAtRefusals
(t *testing.T)
cmd/pad/task4356_remind_test.go:158
Function
TestRemindAtServerRefusalsPassThrough
(t *testing.T)
cmd/pad/task4356_remind_test.go:178
Function
TestRemindBothFormsAreIdentical
(t *testing.T)
cmd/pad/task4356_remind_test.go:81
Function
TestRemindDeadlineNone
(t *testing.T)
cmd/pad/task4105_remind_schedule_test.go:94
Function
TestRemindDismiss
(t *testing.T)
cmd/pad/schedule_end_test.go:202
Function
TestRemindDoneAtActualCompletion
(t *testing.T)
cmd/pad/task4356_remind_test.go:127
Function
TestRemindDoneCloseItemFlow
(t *testing.T)
cmd/pad/schedule_end_test.go:57
Function
TestRemindDoneCloseItemJSON
(t *testing.T)
cmd/pad/schedule_end_test.go:223
Function
TestRemindDoneCloseItemScheduleContinues
TestRemindDoneCloseItemScheduleContinues: when a concurrent edit gives the schedule another occurrence before the end_schedule retry, the retry does n
cmd/pad/schedule_end_test.go:264
Function
TestRemindDoneCloseItemWithoutClosingValue
(t *testing.T)
cmd/pad/schedule_end_test.go:243
Function
TestRemindEndScheduleFlags
(t *testing.T)
cmd/pad/schedule_end_test.go:143
Function
TestRemindFlagsDoNotLeakBetweenForms
The two instances share no flag state.
cmd/pad/task4356_remind_test.go:70
Function
TestRemindItemStillOpenHints
(t *testing.T)
cmd/pad/schedule_end_test.go:168
Function
TestRemindOneShotUnchanged
The plain reminder is pinned: its requests, its output and its errors.
cmd/pad/task4105_remind_oneshot_test.go:42
Function
TestRemindParseTable
(t *testing.T)
internal/schedule/commitment_flags_test.go:10
Function
TestRemindPastDeadlineFeedback
(t *testing.T)
cmd/pad/schedule_past_deadline_test.go:24
Function
TestRemindPastDeadlineFlag
(t *testing.T)
cmd/pad/schedule_past_deadline_test.go:8
Function
TestRemindPastDeadlineFlagCombinations
(t *testing.T)
cmd/pad/schedule_past_deadline_test.go:40
← previous
next →
23,301–23,400 of 28,840, ranked by callers