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
TestAHeartbeatConsumesNoEventID
TestAHeartbeatConsumesNoEventID is the constraint that keeps the liveness probe from manufacturing the resets it exists to avoid. Three of this bus's
internal/events/redis_heartbeat_test.go:1447
Function
TestAHeartbeatDoesNotEndAWorkspacesCoverage
--------------------------------------------------------------------------- Phase 1: recognise and ignore. -------------------------------------------
internal/events/redis_heartbeat_test.go:397
Function
TestAHeartbeatDoesNotEndCoverage
TestAHeartbeatDoesNotEndCoverage is the phase-1 contract, and the half that makes the two-phase roll zero-loss. Fails without the classification: "hb
internal/watchevents/heartbeat_test.go:88
Function
TestAHeartbeatIsRecognisedByPrefixNotByExactPayload
TestAHeartbeatIsRecognisedByPrefixNotByExactPayload pins the forward compatibility the prefix buys: a LATER version of the frame, carrying fields this
internal/events/redis_heartbeat_test.go:468
Function
TestAHeartbeatKeepsAQuietWorkspaceOutOfTheDetector
TestAHeartbeatKeepsAQuietWorkspaceOutOfTheDetector is the whole point of publishing them: on a workspace with no events at all, our own frame is what
internal/events/redis_heartbeat_test.go:812
Function
TestAHeartbeatReachesNoSubscriber
TestAHeartbeatReachesNoSubscriber pins the other half of "bus-internal": a heartbeat must never be delivered as an event, which would put a zero-value
internal/events/redis_heartbeat_test.go:441
Function
TestAHiddenCrossedBoundChangesNoResponse
(t *testing.T)
internal/store/commitment_links_review_test.go:235
Function
TestAJoinerIsNotStrandedByAnAbandonedEstablishment
TestAJoinerIsNotStrandedByAnAbandonedEstablishment covers this case. establishSubscription abandons when the workspace emptied while it was dialling.
internal/events/redis_subscribe_confirm_test.go:812
Function
TestAJoinerIsServedAcrossAnIdleFiredCycle
--------------------------------------------------------------------------- THE JOINT (BUG-2738). The idle detector is a THIRD actor in a region whose
internal/events/redis_heartbeat_test.go:165
Function
TestAJoinerOfAFailedEstablishmentIsRefusedToo
TestAJoinerOfAFailedEstablishmentIsRefusedToo covers the population the establisher's refusal does not reach on its own: a caller that registered whil
internal/events/redis_subscribe_failed_test.go:216
Function
TestAJoinersReplayStopsWhereItsChannelStarts
TestAJoinersReplayStopsWhereItsChannelStarts pins the replay ceiling. WHO ACTUALLY NEEDS IT, since the answer is not obvious and I got it wrong once:
internal/events/redis_subscribe_confirm_test.go:472
Function
TestALapsedBlockerLeavesTheChildBlockedAndALateDoneStillWins
A recorded miss under lapses is lapsed: the child stays blocked for a decision. A Done that arrives late still wins.
internal/store/commitment_gates_outcome_test.go:186
Function
TestALateRejectionLeavesAdmittedCallersInPlace
TestALateRejectionLeavesAdmittedCallersInPlace pins the residual the fix deliberately leaves: a rejection that arrives AFTER confirmTimeout, once call
internal/events/redis_subscribe_rejected_test.go:170
Function
TestALegacyWindowsEndEditMovesAnOccupiedUntilEdge
A legacy row derives its roles from kind and dtend, so a dtend edit moves its occupied_until without naming a role.
internal/store/commitment_links_guard_test.go:116
Function
TestALinkPreviewMovesAndStoresNothing
(t *testing.T)
internal/store/commitment_link_write_test.go:75
Function
TestALinkThatCrossesTheChildsOwnBoundNeedsAcknowledgement
(t *testing.T)
internal/store/commitment_link_write_test.go:137
Function
TestALinkToADeadlineIsARenegotiationAtWriteTime
(t *testing.T)
internal/store/commitment_link_write_test.go:90
Function
TestALinkWhoseOffsetAlreadyMatchesMovesNothing
(t *testing.T)
internal/store/commitment_link_write_test.go:53
Function
TestALinkWriteBelowALinkedParentRecordsNoDrag
A parent's own incoming link is not a drag: writing a link below it must not record an offset override for the parent.
internal/store/commitment_link_write_test.go:180
Function
TestALinkWriteLeavesAFinishedChildAlone
(t *testing.T)
internal/store/commitment_links_review_test.go:385
Function
TestALinkWriteOverTheTimeBudgetStoresNothing
(t *testing.T)
internal/store/commitment_link_write_test.go:164
Function
TestALinkedHardDeadlineScheduleAnswersLinkedBeforeRenegotiate
---- review findings on the linked-schedule guards ----
internal/store/commitment_links_revalidate_test.go:104
Function
TestAListStillShowsALinkWithASoftDeletedEnd
(t *testing.T)
internal/store/commitment_links_deleted_end_test.go:100
Function
TestAMatchingCertificateIsAccepted
TestAMatchingCertificateIsAccepted is the control. Without it, "wrong names are refused" is satisfied by a dialer that refuses everything — which woul
internal/redisdial/redisdial_test.go:121
Function
TestAMixedPhaseDeploymentDeliversBothWays
(t *testing.T)
internal/events/redis_idspace_test.go:1011
Function
TestAMoveAcrossWorkspacesDropsTheLinksAndReportsTheCount
(t *testing.T)
internal/store/schedule_carry_links_test.go:47
Function
TestAMoveOfAnEndedLinkedScheduleStillDropsItsLinks
A schedule that already ended is not ended again by the move, but its links still go: the item leaves the workspace.
internal/store/schedule_carry_links_test.go:88
Function
TestAMoveToAnotherCollectionInTheWorkspaceKeepsTheLinks
(t *testing.T)
internal/store/schedule_carry_links_test.go:102
Function
TestAMoveToAnotherCollectionKeepsTheGates
A same-workspace move keeps the gates: it is not a carry.
internal/store/schedule_carry_gates_test.go:90
Function
TestAMovedBlockerLeavesTheChildBlockedForADecision
Moving a blocker to another workspace archives it here: its gate reads cancelled, the child stays blocked for a decision, and a reader who cannot read
internal/store/commitment_gates_display_test.go:104
Function
TestANoLongerNeededOccurrenceRecordsNoMissAndALapsingOneDoesNotLapse
(t *testing.T)
internal/store/commitment_cancel_test.go:118
Function
TestAParentMoveLeavesANoLongerNeededChildWhereItIs
(t *testing.T)
internal/store/commitment_cancel_test.go:338
Function
TestAPartialRolesPatchOnALinkedScheduleIsGuarded
The partial door reaches the same guard, and a role no edge uses on a schedule that has an edge on another role stays editable.
internal/store/commitment_links_guard_test.go:100
Function
TestAPassedOverBlockerOccurrenceLeavesTheChildBlockedForADecision
A passed-over occurrence can no longer succeed.
internal/store/commitment_gates_outcome_test.go:234
Function
TestAPayloadThatDecodesButIsNotOurEventEndsCoverage
(t *testing.T)
internal/events/redis_idspace_test.go:1148
Function
TestAPayloadWearingThePrefixEndsCoverageThroughTheRealPath
TestAPayloadWearingThePrefixEndsCoverageThroughTheRealPath is the wiring half of the test above (CONVE-19), and it exists because that one only calls
internal/watchevents/heartbeat_test.go:149
Function
TestAPayloadWearingThePrefixStillEndsCoverage
TestAPayloadWearingThePrefixStillEndsCoverage is the other half of the frame contract. The prefix buys forward compatibility, but it must not become
internal/events/redis_heartbeat_test.go:500
Function
TestAPayloadWearingThePrefixStillEndsCoverage
TestAPayloadWearingThePrefixStillEndsCoverage is the other half of the frame contract. The prefix buys forward compatibility, but it must not become a
internal/watchevents/heartbeat_test.go:123
Function
TestAPersistentlyRegressedGenerationIsAcceptedAsANewSpace
(t *testing.T)
internal/events/redis_idspace_test.go:804
Function
TestAPhaseOneInterleaveDoesNotDropEveryBuffer
(t *testing.T)
internal/events/redis_idspace_test.go:402
Function
TestAPhaseOneRestartClearsAStaleEpoch
(t *testing.T)
internal/events/redis_idspace_test.go:482
Function
TestAPlainBlocksLinkIsUnchangedByGates
A plain blocks link means what it always meant: a commitment gate neither reads nor writes item links, and an item link is no gate.
internal/store/commitment_gates_outcome_test.go:502
Function
TestAPostRegistrationStragglerBelowTheCursorDoesNotEatAnEarlierEvent
TestAPostRegistrationStragglerBelowTheCursorDoesNotEatAnEarlierEvent guards against the same two-spaces mistake the ID-valued ceiling made, committed
internal/events/redis_subscribe_confirm_test.go:969
Function
TestAPrefixedGarbagePayloadEndsCoverageEndToEnd
TestAPrefixedGarbagePayloadEndsCoverageEndToEnd is the half the classifier test cannot reach: asserting that decodePayload returns an error says nothi
internal/events/redis_heartbeat_test.go:525
Function
TestAPrefixedPayloadReachesReconciliationThroughTheRealReceivePath
(t *testing.T)
internal/events/redis_idspace_test.go:659
Function
TestAProbeDoesNotCreditTheSubscriptionThatReplacedIt
TestAProbeDoesNotCreditTheSubscriptionThatReplacedIt is the wiring for the other half of the fence. publishHeartbeats captures the generation, publish
internal/watchevents/heartbeat_test.go:645
Function
TestAProbeDoesNotCreditTheSubscriptionThatReplacedItsTarget
TestAProbeDoesNotCreditTheSubscriptionThatReplacedItsTarget closes a residual: the generation binding on lastProbeOK had no deterministic test, only t
internal/events/redis_heartbeat_test.go:1077
Function
TestAQuietInstanceIsNotCycledOnPhase1
TestAQuietInstanceIsNotCycledOnPhase1 is the regression test for the defect BUG-2738's first draft shipped: with no heartbeat and no traffic, a perfec
internal/watchevents/heartbeat_test.go:278
Function
TestAQuietWorkspaceIsNotCycledOnPhase1
TestAQuietWorkspaceIsNotCycledOnPhase1 is the regression test for a defect in this unit's first draft, and it is the one most worth keeping. Idle det
internal/events/redis_heartbeat_test.go:1718
Function
TestAReSaveOfAnEndedLinkedSchedulesTimingIsNotATimingEdit
(t *testing.T)
internal/store/commitment_links_revalidate_test.go:155
Function
TestARealBusMovesTheRealCounter
The bus-to-adapter-to-registry chain end to end: a real MemoryBus, a real EventsObserver, a real registry, so a bus that never calls its observer or a
internal/metrics/events_observer_test.go:176
Function
TestARearmedReminderIsNotFiredByAnInFlightPass
TestARearmedReminderIsNotFiredByAnInFlightPass A re-arm can move a reminder into the future between the candidate scan and the fire. It clears fired_
internal/store/reminders_test.go:772
Function
TestAReconnectOnAnIdleWorkspaceIsNotAReset
The guard that keeps pad_event_sequence_resets_total meaningful: a reconnect on a workspace this instance has buffered NOTHING for is not a coverage b
internal/events/redis_reconnect_test.go:168
Function
TestARecordedMissUnderLapsesIsLapsedEvenWhenTheOccurrenceStayedOpen
A miss recorded under lapses with the occurrence not closed (the engine kept the miss and left it open) reads as lapsed too.
internal/store/commitment_gates_outcome_test.go:209
Function
TestARecurringBlockerAdvancingNeitherReblocksNorReleases
The gate is held against the occurrence outstanding when it was written. A recurring blocker moving on to its next occurrence can neither re-block wor
internal/store/commitment_gates_outcome_test.go:106
Function
TestARecurringGatedChildStaysOpenForItsLaterOccurrences
A recurring gated child is gated by schedule: once open it stays open for its later occurrences.
internal/store/commitment_gates_outcome_test.go:146
Function
TestARedisBusWithASubscriptionAdmits
TestARedisBusWithASubscriptionAdmits is the control: the refusal keys on the empty slot, not on anything the fixture does. Without it the test above w
internal/watchevents/subscribe_refused_test.go:65
Function
TestARedisBusWithNoSubscriptionRefusesSubscribers
(t *testing.T)
internal/watchevents/subscribe_refused_test.go:43
Function
TestARejectedSubscribeLeavesTheSlotEmptyAtConstruction
TestARejectedSubscribeLeavesTheSlotEmptyAtConstruction pins BUG-2799's watchevents half: a SUBSCRIBE Redis answers with an ERROR REPLY. The write succ
internal/watchevents/redis_subscribe_rejected_test.go:26
Function
TestARejectedSubscribeRefusesItsCallerInsteadOfAdmittingIt
(t *testing.T)
internal/events/redis_subscribe_rejected_test.go:95
Function
TestAReminderWhoseWorkspaceDisagreesWithItsItemIsInert
TestAReminderWhoseWorkspaceDisagreesWithItsItemIsInert No door writes such a row (CreateReminder derives the pair from the item; import maps within t
internal/store/reminders_test.go:1489
Function
TestARepeatedIDIsTreatedAsBackwards
(t *testing.T)
internal/events/redis_idspace_test.go:1094
Function
TestAReplacedBufferVoidsTheCallersCoverageClaim
TestAReplacedBufferVoidsTheCallersCoverageClaim covers this case. An ID-space reset during the wait replaces the buffer wholesale. A position in the
internal/events/redis_subscribe_confirm_test.go:1060
Function
TestAReplacedLoopExitsQuietly
TestAReplacedLoopExitsQuietly pins the distinction the receive loop's own close-arm exists to make. That arm logs an ERROR and moves pad_watchevents_r
internal/watchevents/heartbeat_test.go:217
Function
TestAReplacementCanItselfBeCycled
TestAReplacementCanItselfBeCycled is the install-stamp rule stated as the consequence that actually matters. A replacement that inherits the OLD stamp
internal/watchevents/heartbeat_test.go:469
Function
TestARestoreKeepsTheLinksAndMakesThemWritableAgain
(t *testing.T)
internal/store/commitment_links_deleted_end_test.go:111
Function
TestAResubscriptionEndsThisInstancesCoverage
A Redis failover drops whatever was published while the subscription was down. Before this, PubSub.Channel resubscribed silently and the replay buffer
internal/events/redis_reconnect_test.go:78
Function
TestAResubscriptionEndsThisInstancesCoverage
The refusal half: a cursor from BEFORE the outage is no longer served, because this instance cannot account for what it missed while it was disconnect
internal/watchevents/redis_reconnect_test.go:187
Function
TestAResubscriptionOnAnIdleBusStillEndsCoverage
A resubscription with NOTHING in the buffer yet. Every other reconnect test publishes first, so all of them enter dropCoverage with real bookkeeping
internal/watchevents/redis_reconnect_test.go:528
Function
TestAResubscriptionSignalsEverySubscriberHoldingTheStreamOpen
THE PROPERTY THE UNIT EXISTS FOR: the client holding the stream OPEN across the flap is told, not merely the one that reconnects. A CLI sitting on api
internal/watchevents/redis_reconnect_test.go:278
Function
TestAResumeCancelledBeforeItStartsIsDeclinedOutright
TestAResumeCancelledBeforeItStartsIsDeclinedOutright is the entry-path twin. A client can be gone before the handler ever calls in — the request conte
internal/watchevents/redis_bus_resume_test.go:381
Function
TestAResumingJoinerIsToldSyncRequiredAcrossACycle
TestAResumingJoinerIsToldSyncRequiredAcrossACycle covers the case that discriminates. The concern was that a subscriber arriving DURING a cycle gets
internal/events/redis_heartbeat_test.go:300
Function
TestARoleAnEdgeUsesCannotBeChangedButOthersCan
(t *testing.T)
internal/store/commitment_links_guard_test.go:62
Function
TestARowWrittenAtTheCapIsStillClaimable
(t *testing.T)
internal/store/event_outbox_bounds_test.go:451
Function
TestAScriptThatDiedBeforePublishingDoesNotBlockItsRetry
(t *testing.T)
internal/events/redis_idspace_test.go:960
Function
TestASecondDragUsesTheOverriddenOffsetsMode
---- 5: a second drag takes mode, zone and all-day from the effective offset.
internal/store/commitment_links_review_test.go:79
Function
TestASeriesRenegotiationPreviewOfALinkedDeadlineIsRefusedToo
(t *testing.T)
internal/store/commitment_links_revalidate_test.go:124
Function
TestASkippedBlockerOccurrenceLeavesTheChildBlockedForADecision
(t *testing.T)
internal/store/commitment_gates_outcome_test.go:221
Function
TestASoftDeletedBlockerLeavesTheChildBlockedForADecision
A blocker removed from the workspace cannot succeed: the child stays blocked for a decision, and a restore brings the blocker back as it was.
internal/store/commitment_gates_outcome_test.go:387
Function
TestASoftDeletedGatedItemKeepsItsGateAcrossARestore
A gated item put in the trash keeps its gate, and so does a restore.
internal/store/commitment_gates_noschedule_test.go:179
Function
TestAStaleGoroutineCannotDropTheReplacementBuffer
A receive loop can notice its connection died long after the workspace was unsubscribed and resubscribed under it. Without a generation check in the c
internal/events/redis_reconnect_test.go:294
Function
TestAStaleRevisionIsRefusedBeforeAuthorityAndReason
A stale revision is the first refusal, whatever else the apply would hit.
internal/store/commitment_links_round2_test.go:92
Function
TestAStragglerAfterUnsubscribeDoesNotRebuildTheBuffer
The straggler: sub.cancel() signals the receive goroutine, it does not join it, so a message already in flight can land after the workspace was droppe
internal/events/redis_resume_coverage_test.go:55
Function
TestAStragglerCannotEnterTheReplacementsBuffer
TestAStragglerCannotEnterTheReplacementsBuffer is the fan-out half of the generation fence. The straggler test above covers the liveness stamp; nothin
internal/watchevents/heartbeat_test.go:687
Function
TestAStragglerCannotRefreshTheLivenessOfItsSuccessor
TestAStragglerCannotRefreshTheLivenessOfItsSuccessor pins the generation check on the liveness stamp. stopRedisSubscription only SIGNALS a receive lo
internal/events/redis_heartbeat_test.go:856
Function
TestAStragglerDoesNotEraseTheCounterBackwardsFloor
(t *testing.T)
internal/events/redis_idspace_test.go:1299
Function
TestAStragglerFromAnAbandonedIDSpaceIsDiscarded
(t *testing.T)
internal/events/redis_idspace_test.go:542
Function
TestAStragglerFromAnEndedSubscriptionCannotVouchForTheNewOne
The straggler test above never resubscribes before the stray message lands, so it passes with a fan-out guard that only checks "does SOME subscription
internal/events/redis_resume_coverage_test.go:120
Function
TestAStragglerFromBeforeAResetIsBoundedByTheNextNewSpaceEvent
(t *testing.T)
internal/events/redis_idspace_test.go:1221
Function
TestASubscriberArrivingMidEstablishmentWaitsForTheAcknowledgement
TestASubscriberArrivingMidEstablishmentWaitsForTheAcknowledgement covers the overlap between pendingSubs and wsSubs. establishSubscription installs w
internal/events/redis_subscribe_confirm_test.go:644
Function
TestASuccessfulProbeStillAllowsCycling
TestASuccessfulProbeStillAllowsCycling is the counterfactual: the premise check must suspend detection when we cannot probe, not disable it. Without t
internal/events/redis_heartbeat_test.go:1233
Function
TestATimerThatLosesToARejectionAdmitsNobody
TestATimerThatLosesToARejectionAdmitsNobody pins the one ordering the integration tests cannot schedule: the rejection and confirmTimeout become ready
internal/events/redis_subscribe_rejected_test.go:206
Function
TestATimingEditLeavesAGateFixedOnAnotherOccurrenceAlone
(t *testing.T)
internal/store/commitment_gates_rekey_test.go:93
Function
TestATimingEditLeavesAnOpenGateAlone
(t *testing.T)
internal/store/commitment_gates_rekey_test.go:54
Function
TestATimingEditLeavesAnOpenGateOnTheEditedOccurrenceAlone
An open gate whose key IS the outstanding occurrence (it opened some other way) is not followed to the new one either.
internal/store/commitment_gates_rekey_test.go:74
Function
TestATimingEditOfALinkedScheduleIsRefusedAndWritesNothing
(t *testing.T)
internal/store/commitment_links_guard_test.go:25
Function
TestATimingEditOfTheBlockerRacingAGateWriteLeavesTheGateOnTheCurrentKey
A timing edit of a blocker racing a gate write onto it: whichever goes first, the gate ends on the blocker's CURRENT outstanding occurrence. The queue
internal/store/commitment_gates_pg_test.go:199
Function
TestATimingEditOfTheBlockerRekeysAPendingGateFixedOnTheEditedOccurrence
(t *testing.T)
internal/store/commitment_gates_rekey_test.go:33
Function
TestATimingEditThatEndsTheBlockersScheduleFallsBackToTheItemStatus
An edit that leaves the schedule with no outstanding occurrence leaves the gate with no occurrence to wait for: the blocker item's status decides, as
internal/store/commitment_gates_rekey_test.go:140
Function
TestATimingEditThatKeepsTheKeyLeavesTheGateAlone
An edit that leaves the outstanding occurrence's key as it was changes nothing.
internal/store/commitment_gates_rekey_test.go:120
← previous
next →
16,001–16,100 of 28,840, ranked by callers