MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestAgendaRendersPinnedAndFloatingInTheCallersZone
(t *testing.T)
internal/server/handlers_agenda_test.go:308
FunctionTestAgendaResponseCutCarriesNextFrom
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
FunctionTestAgendaResponseCutIs500
(t *testing.T)
internal/server/handlers_agenda_test.go:482
FunctionTestAgendaResumeHintKeepsWindowAndZone
(t *testing.T)
cmd/pad/task4105_agenda_test.go:221
FunctionTestAgendaResumeHintWithoutTzHasNone
(t *testing.T)
cmd/pad/task4105_agenda_test.go:239
FunctionTestAgendaRolesOrigin
(t *testing.T)
internal/server/handlers_agenda_test.go:160
FunctionTestAgendaScanBoundIsNotSpentOnEndedSchedules
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
FunctionTestAgendaScanBoundIsNotSpentOnEndedSchedulesWithLaterHistory
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
FunctionTestAgendaScheduleEndBackfill
(t *testing.T)
internal/server/schedule_end_migration_test.go:13
FunctionTestAgendaScheduleEndedOAuthAllowlist
(t *testing.T)
internal/server/schedule_end_guard_test.go:310
FunctionTestAgendaScheduleEndedOutstanding
(t *testing.T)
internal/server/schedule_end_guard_test.go:197
FunctionTestAgendaScheduleEndedWithoutClosingValue
(t *testing.T)
internal/server/schedule_end_guard_test.go:246
FunctionTestAgendaScheduleSetCutHasNoNextFrom
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
FunctionTestAgendaSnoozeDoesNotMoveTheEntry
(t *testing.T)
internal/store/schedule_agenda_test.go:172
FunctionTestAgendaStaleEmpty
(t *testing.T)
cmd/pad/task4237_agenda_test.go:56
FunctionTestAgendaStaleLabelFromRoles
(t *testing.T)
cmd/pad/task4237_agenda_test.go:140
FunctionTestAgendaStaleRefusesAFractionalFrom
(t *testing.T)
cmd/pad/task4237_agenda_test.go:94
FunctionTestAgendaStaleRefusesAWindow
(t *testing.T)
cmd/pad/task4237_agenda_test.go:42
FunctionTestAgendaStaleRequestAndRender
(t *testing.T)
cmd/pad/task4237_agenda_test.go:17
FunctionTestAgendaStaleTitleStaysOnItsLine
(t *testing.T)
cmd/pad/task4241_agenda_test.go:9
FunctionTestAgendaTerminalRecordedOnly
(t *testing.T)
internal/store/schedule_agenda_test.go:325
FunctionTestAgendaTimezoneDefaultsToTheCaller
(t *testing.T)
internal/server/handlers_agenda_test.go:287
FunctionTestAgendaTruncationHints
(t *testing.T)
cmd/pad/task4105_agenda_test.go:140
FunctionTestAgendaTruncationIsDisclosed
(t *testing.T)
cmd/pad/task4237_agenda_test.go:103
FunctionTestAgendaUntruncatedHasNoNextFrom
An untruncated response carries neither next_from nor unexpanded.
internal/server/handlers_agenda_bounds_test.go:45
FunctionTestAgendaWaitingGateScopeAndCommitmentRedaction
(t *testing.T)
internal/server/handlers_me_agenda_test.go:464
FunctionTestAgendaWindowAndParameterRefusals
(t *testing.T)
internal/server/handlers_agenda_test.go:258
FunctionTestAgendaWindowFlags
(t *testing.T)
cmd/pad/task4105_agenda_test.go:100
FunctionTestAgendaWithoutTimezoneSettingNotesUTC
(t *testing.T)
cmd/pad/task4105_agenda_test.go:79
FunctionTestAgendaWorkDetailsBatch
(t *testing.T)
internal/store/agenda_work_batch_test.go:24
FunctionTestAgentDispatcherCommandsInventory
TestAgentDispatcherCommandsInventory pins the required command inventory: the normalized per-block command lines must equal expectedDispatcherCommands
cmd/pad/agent_dispatcher_commands_test.go:698
FunctionTestAgentDispatcherCommandsResolve
(t *testing.T)
cmd/pad/agent_dispatcher_commands_test.go:476
FunctionTestAgentDispatcherGuideTopicsResolve
(t *testing.T)
cmd/pad/agent_guide_test.go:53
FunctionTestAgentDispatcherInlineCommands
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
FunctionTestAgentGuideSectionIncludesChildrenOnly
(t *testing.T)
cmd/pad/agent_guide_test.go:34
FunctionTestAgentGuideSectionRejectsUnknownTopic
(t *testing.T)
cmd/pad/agent_guide_test.go:47
FunctionTestAgentGuideTopics
(t *testing.T)
cmd/pad/agent_guide_test.go:27
FunctionTestAgentInstallNonInteractiveNoPrompt
(t *testing.T)
cmd/pad/agent_install_noninteractive_test.go:26
FunctionTestAgentItemFieldsKeepsLargeNumbers
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
FunctionTestAgentNameCopyMatchesResolverOrder
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
FunctionTestAgentSkillPromptBudget
(t *testing.T)
internal/cli/agent_prompt_budget_test.go:13
FunctionTestAliveVerdictStillResolves
(t *testing.T)
internal/cli/session_arm_unverifiable_bug2771_test.go:113
FunctionTestAllDayFloatingFollowsView
(t *testing.T)
internal/schedule/nextbetween_test.go:282
FunctionTestAllDayMidnightGapShiftsForward
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
FunctionTestAllDayOccurrencesAreDates
(t *testing.T)
internal/schedule/nextbetween_test.go:271
FunctionTestAllRedisKeyspacesShareOneNamespace
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
FunctionTestAllToolNames
(t *testing.T)
internal/cli/agents_test.go:321
FunctionTestAllowlistCoverage_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
FunctionTestAllowlistCoverage_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
FunctionTestAllowlistCoverage_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
FunctionTestAllowlistCoverage_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
FunctionTestAmbiguousNamesEveryLine
(t *testing.T)
internal/bodypatch/bodypatch_test.go:51
FunctionTestAmbiguousReminderErrorParity
(t *testing.T)
internal/mcp/bug4501_ack_reminder_test.go:49
FunctionTestAnAbandonedBlockerItemLeavesTheChildBlockedWhileItsOccurrenceIsPending
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
FunctionTestAnAbandonedBlockerItemWithASkippedOccurrenceStaysSkipped
A skipped occurrence is already blocked; abandoning does not change what it reads.
internal/store/commitment_gates_outcome_test.go:591
FunctionTestAnAbandonedBlockerStatusLeavesTheChildBlockedForADecision
(t *testing.T)
internal/store/commitment_gates_outcome_test.go:317
FunctionTestAnAlreadyCancelledCallerRegistersNothing
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
FunctionTestAnAssignedButUnpublishedIDIsNotSurfacedAsAGap
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
FunctionTestAnEpochChangeDiscardsTheHighWaterMark
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
FunctionTestAnEpochChangeDropsEveryWorkspaceAndClearsTheFloor
(t *testing.T)
internal/events/redis_idspace_test.go:335
FunctionTestAnEpochChangeStillDeclinesTheFloorAfterBUG3206
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
FunctionTestAnEpochRotationWithoutAnOverlapRefusesNothingExtra
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
FunctionTestAnEventIsNotMistakenForAHeartbeat
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
FunctionTestAnEvictedRegistrationSpanIsRefusedRatherThanPartiallyServed
TestAnEvictedRegistrationSpanIsRefusedRatherThanPartiallyServed covers the residual an earlier round accepted and this bound closes. If enough events
internal/events/redis_subscribe_confirm_test.go:1015
FunctionTestAnExplicitServerNameIsHonoured
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
FunctionTestAnExplicitlyDisabledTimeoutIsHonoured
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
FunctionTestAnIdleCycleAbandonsAWorkspaceEmptiedUnderIt
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
FunctionTestAnIdleCycleRefusesWhileAnEstablishmentIsInFlight
--------------------------------------------------------------------------- Joint rules 1 and 3. -----------------------------------------------------
internal/events/redis_heartbeat_test.go:1263
FunctionTestAnIdleSubscriptionEndsCoverageAndIsReplaced
TestAnIdleSubscriptionEndsCoverageAndIsReplaced is the remedy. The generation check is what separates "coverage dropped" from "connection replaced"; w
internal/watchevents/heartbeat_test.go:188
FunctionTestAnIdleSubscriptionEndsItsCoverageAndReplacesItsConnection
--------------------------------------------------------------------------- Idle detection and the drop-and-cycle remedy. ----------------------------
internal/events/redis_heartbeat_test.go:593
FunctionTestAnInstanceThatRecoversBeforeItsCycleIsNotCycled
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
FunctionTestAnItemIsSuggestedOnceWhenItIsBothRemindedAndACandidate
TestAnItemIsSuggestedOnceWhenItIsBothRemindedAndACandidate. An in-progress, high-priority item with a fired reminder qualified for suggested_next twic
internal/server/handlers_reminders_test.go:851
FunctionTestAnItemWithNoCommitmentCanBeGatedReadWaitingOnAndOpened
(t *testing.T)
internal/store/commitment_gates_noschedule_test.go:36
FunctionTestAnObserverMayCallBackIntoTheBus
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
FunctionTestAnOffsetUpdateKeepsANoLongerNeededMark
(t *testing.T)
internal/store/commitment_cancel_test.go:314
FunctionTestAnOffsetUpdateLeavesAFinishedChildsDraggedOffsetAlone
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
FunctionTestAnOffsetUpdateReplacesADraggedOffsetWhenTheParentHasEnded
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
FunctionTestAnOldSpaceCursorIsRefusedAfterACounterReset
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
FunctionTestAnOpenGateStaysOpenWhenItsBlockersCommitmentIsDeleted
(t *testing.T)
internal/store/commitment_gates_noschedule_test.go:128
FunctionTestAnOverCapComponentCanStillBeRepaired
(t *testing.T)
internal/store/commitment_links_review_test.go:197
FunctionTestAnOversizedEventPastTheHopBoundIsDroppedNotRefused
(t *testing.T)
internal/store/event_outbox_bounds_test.go:785
FunctionTestAnOversizedImportIsTooLargeThroughTheDispatcher
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
FunctionTestAnUncancelledResumeStillSettles
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
FunctionTestAnUnconfirmedAdmissionIsNotCycledAsIdle
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
FunctionTestAnUnconfirmedAdmissionTellsItsSubscribersWhenTheAckLands
TestAnUnconfirmedAdmissionTellsItsSubscribersWhenTheAckLands covers the failure path: Redis does not acknowledge in time, callers are admitted anyway,
internal/events/redis_subscribe_confirm_test.go:394
FunctionTestAnUndecodableMessageEndsCoverage
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
FunctionTestAnUndecodableMessageEndsThatWorkspacesCoverage
(t *testing.T)
internal/events/redis_idspace_test.go:902
FunctionTestAnUnreadableLastEventIDIsAGapNotAFreshConnection
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
FunctionTestAnUnrelatedSubscriptionIsNotCountedAsThisCyclesReplacement
TestAnUnrelatedSubscriptionIsNotCountedAsThisCyclesReplacement pins the explicit installation result. The counter means "torn down AND replaced". Rea
internal/events/redis_heartbeat_test.go:1016
FunctionTestAnUpdateOfALinkThatVanishedWhileItWaitedIsNotFound
(t *testing.T)
internal/store/commitment_links_revalidate_test.go:60
FunctionTestAnswerContradictingTheQuestionIsRefused
(t *testing.T)
internal/decision/review2_test.go:30
FunctionTestAnswerKindMustMatchTheQuestion
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
FunctionTestAnyInboundFrameKeepsASubscriptionAlive
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
FunctionTestAppAndHumanCreatesNeverShareNumbers
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
FunctionTestAppAttachmentDTO_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
FunctionTestAppAttachmentReadRule
(t *testing.T)
internal/appstore/attachments_test.go:502
FunctionTestAppAttachmentVariantInheritsTheParent
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
FunctionTestAppCommentRefusalsWriteNothing
(t *testing.T)
internal/appstore/comments_test.go:206
FunctionTestAppComment_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
FunctionTestAppCreateComment_WritesOnlyWhatTheSpecAllows
(t *testing.T)
internal/appstore/comments_test.go:109
← previousnext →16,301–16,400 of 28,840, ranked by callers