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
TestAgendaRendersPinnedAndFloatingInTheCallersZone
(t *testing.T)
internal/server/handlers_agenda_test.go:308
Function
TestAgendaResponseCutCarriesNextFrom
The response cut (500) resumes at the first entry not shown. Six hourly schedules put six entries on each of the first 100 hours; the 501st entry in t
internal/server/handlers_agenda_bounds_test.go:58
Function
TestAgendaResponseCutIs500
(t *testing.T)
internal/server/handlers_agenda_test.go:482
Function
TestAgendaResumeHintKeepsWindowAndZone
(t *testing.T)
cmd/pad/task4105_agenda_test.go:221
Function
TestAgendaResumeHintWithoutTzHasNone
(t *testing.T)
cmd/pad/task4105_agenda_test.go:239
Function
TestAgendaRolesOrigin
(t *testing.T)
internal/server/handlers_agenda_test.go:160
Function
TestAgendaScanBoundIsNotSpentOnEndedSchedules
The scan bound must not be spent on schedules that cannot appear. 1001 ended one-shots precede (by id) one live schedule; it is still listed.
internal/server/handlers_agenda_test.go:496
Function
TestAgendaScanBoundIsNotSpentOnEndedSchedulesWithLaterHistory
Pin: the same when the ended schedules' only history lies AFTER the window, which the history lookup must not count as reaching it.
internal/server/handlers_agenda_test.go:503
Function
TestAgendaScheduleEndBackfill
(t *testing.T)
internal/server/schedule_end_migration_test.go:13
Function
TestAgendaScheduleEndedOAuthAllowlist
(t *testing.T)
internal/server/schedule_end_guard_test.go:310
Function
TestAgendaScheduleEndedOutstanding
(t *testing.T)
internal/server/schedule_end_guard_test.go:197
Function
TestAgendaScheduleEndedWithoutClosingValue
(t *testing.T)
internal/server/schedule_end_guard_test.go:246
Function
TestAgendaScheduleSetCutHasNoNextFrom
More than 1000 schedules is a cut ordered by id, not by time: truncated, and no next_from, because no instant describes it.
internal/server/handlers_agenda_bounds_test.go:122
Function
TestAgendaSnoozeDoesNotMoveTheEntry
(t *testing.T)
internal/store/schedule_agenda_test.go:172
Function
TestAgendaStaleEmpty
(t *testing.T)
cmd/pad/task4237_agenda_test.go:56
Function
TestAgendaStaleLabelFromRoles
(t *testing.T)
cmd/pad/task4237_agenda_test.go:140
Function
TestAgendaStaleRefusesAFractionalFrom
(t *testing.T)
cmd/pad/task4237_agenda_test.go:94
Function
TestAgendaStaleRefusesAWindow
(t *testing.T)
cmd/pad/task4237_agenda_test.go:42
Function
TestAgendaStaleRequestAndRender
(t *testing.T)
cmd/pad/task4237_agenda_test.go:17
Function
TestAgendaStaleTitleStaysOnItsLine
(t *testing.T)
cmd/pad/task4241_agenda_test.go:9
Function
TestAgendaTerminalRecordedOnly
(t *testing.T)
internal/store/schedule_agenda_test.go:325
Function
TestAgendaTimezoneDefaultsToTheCaller
(t *testing.T)
internal/server/handlers_agenda_test.go:287
Function
TestAgendaTruncationHints
(t *testing.T)
cmd/pad/task4105_agenda_test.go:140
Function
TestAgendaTruncationIsDisclosed
(t *testing.T)
cmd/pad/task4237_agenda_test.go:103
Function
TestAgendaUntruncatedHasNoNextFrom
An untruncated response carries neither next_from nor unexpanded.
internal/server/handlers_agenda_bounds_test.go:45
Function
TestAgendaWaitingGateScopeAndCommitmentRedaction
(t *testing.T)
internal/server/handlers_me_agenda_test.go:464
Function
TestAgendaWindowAndParameterRefusals
(t *testing.T)
internal/server/handlers_agenda_test.go:258
Function
TestAgendaWindowFlags
(t *testing.T)
cmd/pad/task4105_agenda_test.go:100
Function
TestAgendaWithoutTimezoneSettingNotesUTC
(t *testing.T)
cmd/pad/task4105_agenda_test.go:79
Function
TestAgendaWorkDetailsBatch
(t *testing.T)
internal/store/agenda_work_batch_test.go:24
Function
TestAgentDispatcherCommandsInventory
TestAgentDispatcherCommandsInventory pins the required command inventory: the normalized per-block command lines must equal expectedDispatcherCommands
cmd/pad/agent_dispatcher_commands_test.go:698
Function
TestAgentDispatcherCommandsResolve
(t *testing.T)
cmd/pad/agent_dispatcher_commands_test.go:476
Function
TestAgentDispatcherGuideTopicsResolve
(t *testing.T)
cmd/pad/agent_guide_test.go:53
Function
TestAgentDispatcherInlineCommands
TestAgentDispatcherInlineCommands pins the inline `pad ...` command code spans in the dispatcher prose outside the fenced bash blocks: the extracted s
cmd/pad/agent_dispatcher_commands_test.go:908
Function
TestAgentGuideSectionIncludesChildrenOnly
(t *testing.T)
cmd/pad/agent_guide_test.go:34
Function
TestAgentGuideSectionRejectsUnknownTopic
(t *testing.T)
cmd/pad/agent_guide_test.go:47
Function
TestAgentGuideTopics
(t *testing.T)
cmd/pad/agent_guide_test.go:27
Function
TestAgentInstallNonInteractiveNoPrompt
(t *testing.T)
cmd/pad/agent_install_noninteractive_test.go:26
Function
TestAgentItemFieldsKeepsLargeNumbers
The agent projection (`item show --agent`, the MCP item get) re-marshalled the fields through a float64 and rounded a number above 2^53.
internal/cli/bug3448_field_summary_test.go:35
Function
TestAgentNameCopyMatchesResolverOrder
The user-facing copy states the order; this pins that copy to the phrase the resolver test above pins. SOURCE OF TRUTH: ResolveAgentName in agent_iden
internal/cli/agent_identity_test.go:400
Function
TestAgentSkillPromptBudget
(t *testing.T)
internal/cli/agent_prompt_budget_test.go:13
Function
TestAliveVerdictStillResolves
(t *testing.T)
internal/cli/session_arm_unverifiable_bug2771_test.go:113
Function
TestAllDayFloatingFollowsView
(t *testing.T)
internal/schedule/nextbetween_test.go:282
Function
TestAllDayMidnightGapShiftsForward
TestAllDayMidnightGapShiftsForward uses America/Havana, whose DST starts at midnight: 2024-03-10 00:00 does not exist, so the date's At is 01:00 CDT,
internal/schedule/nextbetween_test.go:306
Function
TestAllDayOccurrencesAreDates
(t *testing.T)
internal/schedule/nextbetween_test.go:271
Function
TestAllRedisKeyspacesShareOneNamespace
TestAllRedisKeyspacesShareOneNamespace is a drift guard, in the same spirit as internal/collections' invocation-framing test: it reads the wiring sour
cmd/pad/redis_keyspace_wiring_test.go:35
Function
TestAllToolNames
(t *testing.T)
internal/cli/agents_test.go:321
Function
TestAllowlistCoverage_EveryEntryStatesAReason
TestAllowlistCoverage_EveryEntryStatesAReason pins the part that carries the value. A classification with an empty reason is a checkbox; the reason is
internal/mcp/dispatch_http_allowlist_guard_test.go:606
Function
TestAllowlistCoverage_ExemptClaimsAreCheckedOrMarkedAsJudgment
TestAllowlistCoverage_ExemptClaimsAreCheckedOrMarkedAsJudgment narrows the one class that could hide a leak. `exempt` means "structurally cannot leak
internal/mcp/dispatch_http_allowlist_guard_test.go:1089
Function
TestAllowlistCoverage_FiltersClaimsNameARealEnforcementSite
TestAllowlistCoverage_FiltersClaimsNameARealEnforcementSite turns the filtersAllowlist class from documentation into a checked claim (the two global c
internal/mcp/dispatch_http_allowlist_guard_test.go:903
Function
TestAllowlistCoverage_HasNoStaleEntries
TestAllowlistCoverage_HasNoStaleEntries keeps the map honest in the other direction. An entry for a command that no longer routes reads as reviewed co
internal/mcp/dispatch_http_allowlist_guard_test.go:579
Function
TestAmbiguousNamesEveryLine
(t *testing.T)
internal/bodypatch/bodypatch_test.go:51
Function
TestAmbiguousReminderErrorParity
(t *testing.T)
internal/mcp/bug4501_ack_reminder_test.go:49
Function
TestAnAbandonedBlockerItemLeavesTheChildBlockedWhileItsOccurrenceIsPending
An abandoned blocker item can no longer deliver: it leaves the child blocked for a decision even though its commitment's fixed occurrence is still pen
internal/store/commitment_gates_outcome_test.go:546
Function
TestAnAbandonedBlockerItemWithASkippedOccurrenceStaysSkipped
A skipped occurrence is already blocked; abandoning does not change what it reads.
internal/store/commitment_gates_outcome_test.go:591
Function
TestAnAbandonedBlockerStatusLeavesTheChildBlockedForADecision
(t *testing.T)
internal/store/commitment_gates_outcome_test.go:317
Function
TestAnAlreadyCancelledCallerRegistersNothing
TestAnAlreadyCancelledCallerRegistersNothing covers the cheap entry case on both implementations, so the handler's cancellation branch is reachable wi
internal/events/redis_subscribe_cancel_test.go:352
Function
TestAnAssignedButUnpublishedIDIsNotSurfacedAsAGap
BUG-2732: what a subscriber sees when an event ID is ASSIGNED but never PUBLISHED — the state a phase-1 publish leaves when its INCR succeeds and its
internal/events/redis_unpublished_id_test.go:33
Function
TestAnEpochChangeDiscardsTheHighWaterMark
An epoch change discards the high water mark, because ids from a new space are not comparable with the old space's peak. Without this the first notif
internal/watchevents/redis_reconnect_test.go:651
Function
TestAnEpochChangeDropsEveryWorkspaceAndClearsTheFloor
(t *testing.T)
internal/events/redis_idspace_test.go:335
Function
TestAnEpochChangeStillDeclinesTheFloorAfterBUG3206
An epoch change CLEARS the floor on purpose (the loop trade documented at dropAllBuffers), so this fix must not reach it: after an epoch change the fi
internal/events/redis_discarded_peak_test.go:72
Function
TestAnEpochRotationWithoutAnOverlapRefusesNothingExtra
An epoch rotation that did NOT restart the counter — the epoch key evicted on its own — leaves the two spaces disjoint: every new id is above the old
internal/watchevents/redis_bus_ambiguity_test.go:157
Function
TestAnEventIsNotMistakenForAHeartbeat
TestAnEventIsNotMistakenForAHeartbeat is the counterfactual to the test above: the classification must not swallow real traffic. A bare JSON body and
internal/events/redis_heartbeat_test.go:562
Function
TestAnEvictedRegistrationSpanIsRefusedRatherThanPartiallyServed
TestAnEvictedRegistrationSpanIsRefusedRatherThanPartiallyServed covers the residual an earlier round accepted and this bound closes. If enough events
internal/events/redis_subscribe_confirm_test.go:1015
Function
TestAnExplicitServerNameIsHonoured
TestAnExplicitServerNameIsHonoured pins that the fallback does not OVERWRITE a configured name — which is the case Pad actually runs, since redis.Pars
internal/redisdial/redisdial_test.go:134
Function
TestAnExplicitlyDisabledTimeoutIsHonoured
TestAnExplicitlyDisabledTimeoutIsHonoured covers explicit disabling. ParseURL turns an explicit dial_timeout of zero or negative into -1, which go-red
internal/redisdial/redisdial_test.go:406
Function
TestAnIdleCycleAbandonsAWorkspaceEmptiedUnderIt
TestAnIdleCycleAbandonsAWorkspaceEmptiedUnderIt is JOINT RULE 3, at the SECOND read — the one that matters. wsCounts is read once when the scan selec
internal/events/redis_heartbeat_test.go:1329
Function
TestAnIdleCycleRefusesWhileAnEstablishmentIsInFlight
--------------------------------------------------------------------------- Joint rules 1 and 3. -----------------------------------------------------
internal/events/redis_heartbeat_test.go:1263
Function
TestAnIdleSubscriptionEndsCoverageAndIsReplaced
TestAnIdleSubscriptionEndsCoverageAndIsReplaced is the remedy. The generation check is what separates "coverage dropped" from "connection replaced"; w
internal/watchevents/heartbeat_test.go:188
Function
TestAnIdleSubscriptionEndsItsCoverageAndReplacesItsConnection
--------------------------------------------------------------------------- Idle detection and the drop-and-cycle remedy. ----------------------------
internal/events/redis_heartbeat_test.go:593
Function
TestAnInstanceThatRecoversBeforeItsCycleIsNotCycled
TestAnInstanceThatRecoversBeforeItsCycleIsNotCycled covers the same defect BUG-2738 had to fix. cycleIfIdle decides under one lock and tears down und
internal/watchevents/heartbeat_test.go:518
Function
TestAnItemIsSuggestedOnceWhenItIsBothRemindedAndACandidate
TestAnItemIsSuggestedOnceWhenItIsBothRemindedAndACandidate. An in-progress, high-priority item with a fired reminder qualified for suggested_next twic
internal/server/handlers_reminders_test.go:851
Function
TestAnItemWithNoCommitmentCanBeGatedReadWaitingOnAndOpened
(t *testing.T)
internal/store/commitment_gates_noschedule_test.go:36
Function
TestAnObserverMayCallBackIntoTheBus
An observer may call back into the bus: every report fires with no bus lock held. Asserted rather than documented, because the property is invisible u
internal/events/observer_test.go:255
Function
TestAnOffsetUpdateKeepsANoLongerNeededMark
(t *testing.T)
internal/store/commitment_cancel_test.go:314
Function
TestAnOffsetUpdateLeavesAFinishedChildsDraggedOffsetAlone
A finished child is history: an offset update neither clears its dragged offset nor journals a row for it.
internal/store/commitment_links_round2_test.go:19
Function
TestAnOffsetUpdateReplacesADraggedOffsetWhenTheParentHasEnded
An ended parent plans nothing, but the saved offset must still replace the child's dragged one.
internal/store/commitment_links_round2_test.go:60
Function
TestAnOldSpaceCursorIsRefusedAfterACounterReset
A CURSOR FROM THE OLD ID SPACE MUST NOT BE SERVED THE NEW ONE (BUG-2739). Both backward arms set knownFrom to the first id they see of the restarted
internal/watchevents/redis_reconnect_test.go:711
Function
TestAnOpenGateStaysOpenWhenItsBlockersCommitmentIsDeleted
(t *testing.T)
internal/store/commitment_gates_noschedule_test.go:128
Function
TestAnOverCapComponentCanStillBeRepaired
(t *testing.T)
internal/store/commitment_links_review_test.go:197
Function
TestAnOversizedEventPastTheHopBoundIsDroppedNotRefused
(t *testing.T)
internal/store/event_outbox_bounds_test.go:785
Function
TestAnOversizedImportIsTooLargeThroughTheDispatcher
TestAnOversizedImportIsTooLargeThroughTheDispatcher is the binding test (CONVE-19): a real server with a small import cap, driven through the real HTT
internal/mcp/too_large_test.go:82
Function
TestAnUncancelledResumeStillSettles
TestAnUncancelledResumeStillSettles is the counterfactual. Without it, "the wait ended early" is satisfied by an implementation that never waits — whi
internal/watchevents/redis_bus_resume_test.go:465
Function
TestAnUnconfirmedAdmissionIsNotCycledAsIdle
TestAnUnconfirmedAdmissionIsNotCycledAsIdle is JOINT RULE 2 in the case that motivated it — and the one a fresh-subscription test alone does NOT cover
internal/events/redis_heartbeat_test.go:709
Function
TestAnUnconfirmedAdmissionTellsItsSubscribersWhenTheAckLands
TestAnUnconfirmedAdmissionTellsItsSubscribersWhenTheAckLands covers the failure path: Redis does not acknowledge in time, callers are admitted anyway,
internal/events/redis_subscribe_confirm_test.go:394
Function
TestAnUndecodableMessageEndsCoverage
An unreadable message makes coverage unprovable, so coverage ends rather than the message being discarded. It is NOT enough that this bus's ids are c
internal/watchevents/redis_reconnect_test.go:320
Function
TestAnUndecodableMessageEndsThatWorkspacesCoverage
(t *testing.T)
internal/events/redis_idspace_test.go:902
Function
TestAnUnreadableLastEventIDIsAGapNotAFreshConnection
A client that sends Last-Event-ID at all believes it has a position. If the value is unreadable, treating it as a FRESH connection silently drops ever
internal/server/handlers_events_resume_test.go:222
Function
TestAnUnrelatedSubscriptionIsNotCountedAsThisCyclesReplacement
TestAnUnrelatedSubscriptionIsNotCountedAsThisCyclesReplacement pins the explicit installation result. The counter means "torn down AND replaced". Rea
internal/events/redis_heartbeat_test.go:1016
Function
TestAnUpdateOfALinkThatVanishedWhileItWaitedIsNotFound
(t *testing.T)
internal/store/commitment_links_revalidate_test.go:60
Function
TestAnswerContradictingTheQuestionIsRefused
(t *testing.T)
internal/decision/review2_test.go:30
Function
TestAnswerKindMustMatchTheQuestion
An answer whose kind differs from its question's was accepted, and fromWire then left the requested kind's member at a plausible zero.
internal/decision/review_test.go:313
Function
TestAnyInboundFrameKeepsASubscriptionAlive
TestAnyInboundFrameKeepsASubscriptionAlive pins that liveness is stamped for EVERY frame, ahead of the type switch — not only for frames that turn int
internal/events/redis_heartbeat_test.go:761
Function
TestAppAndHumanCreatesNeverShareNumbers
App and human creates interleaved: every item gets its own item_number and seq. The meaningful run is on Postgres (make test-pg), where the workspace
internal/appstore/items_test.go:364
Function
TestAppAttachmentDTO_HasOnlyTheSpecKeys
The DTO's JSON has exactly the spec's keys: never storage_key, content_hash or uploaded_by.
internal/appstore/attachments_test.go:163
Function
TestAppAttachmentReadRule
(t *testing.T)
internal/appstore/attachments_test.go:502
Function
TestAppAttachmentVariantInheritsTheParent
A thumbnail inherits its parent's binding, uploader and install under the parent lock, whatever the generator's snapshot said, and is readable by the
internal/appstore/attachments_test.go:542
Function
TestAppCommentRefusalsWriteNothing
(t *testing.T)
internal/appstore/comments_test.go:206
Function
TestAppComment_ConcurrentMoveOutOfCompanionsRefuses
A human move of the item into a private collection, committing while an app comment write is in flight, must not land under it: the app write waits on
internal/appstore/comments_test.go:355
Function
TestAppCreateComment_WritesOnlyWhatTheSpecAllows
(t *testing.T)
internal/appstore/comments_test.go:109
← previous
next →
16,301–16,400 of 28,840, ranked by callers