@@ -61,10 +61,10 @@ public final class TestableSubscriber<Input, Failure: Error> {
6161 public typealias Sequence = TestSequence < Input , Failure >
6262
6363 /// A time-stamped log of `Signal`s produced during the lifetime of a subscription to a publisher.
64- public internal( set) var sequence = TestSequence < Input , Failure > ( )
64+ public internal( set) var recordedOutput = TestSequence < Input , Failure > ( )
6565 /// A time-stamped account of `Subscribers.Demand`s issued upstream, and incoming elements
6666 /// downstream, during the lifetime of a subscription to a publisher.
67- public internal( set) var demands = DemandLedger < VirtualTime > ( )
67+ public internal( set) var recordedDemandLog = DemandLedger < VirtualTime > ( )
6868
6969 private let scheduler : TestScheduler
7070 private let options : TestableSubscriberOptions
@@ -85,7 +85,7 @@ public final class TestableSubscriber<Input, Failure: Error> {
8585 func issueDemandCredit( _ demand: Subscribers . Demand ) {
8686
8787 demandBalance += demand
88- demands . append ( ( scheduler. now, demandBalance, . credit( amount: demand) ) )
88+ recordedDemandLog . append ( ( scheduler. now, demandBalance, . credit( amount: demand) ) )
8989
9090 subscription? . request ( demand)
9191 }
@@ -94,7 +94,7 @@ public final class TestableSubscriber<Input, Failure: Error> {
9494
9595 let authorized = ( demandBalance > . none)
9696 demandBalance -= authorized ? demand : . none
97- demands . append ( ( scheduler. now, demandBalance, . debit( authorized: authorized) ) )
97+ recordedDemandLog . append ( ( scheduler. now, demandBalance, . debit( authorized: authorized) ) )
9898 if !authorized {
9999 signalNegativeBalance ( )
100100 }
@@ -147,14 +147,14 @@ extension TestableSubscriber: Subscriber {
147147 self . demandBalance = . none
148148 self . subscription = subscription
149149
150- sequence . append ( ( scheduler. now, . subscription) )
150+ recordedOutput . append ( ( scheduler. now, . subscription) )
151151
152152 issueDemandCredit ( options. initialDemand)
153153 delayedReplenishDemandIfNeeded ( )
154154 }
155155
156156 public func receive( _ input: Input ) -> Subscribers . Demand {
157- sequence . append ( ( scheduler. now, . input( input) ) )
157+ recordedOutput . append ( ( scheduler. now, . input( input) ) )
158158
159159 debitDemand ( . max( 1 ) )
160160 delayedReplenishDemandIfNeeded ( )
@@ -163,7 +163,7 @@ extension TestableSubscriber: Subscriber {
163163 }
164164
165165 public func receive( completion: Subscribers . Completion < Failure > ) {
166- sequence . append ( ( scheduler. now, . completion( completion) ) )
166+ recordedOutput . append ( ( scheduler. now, . completion( completion) ) )
167167 }
168168}
169169
0 commit comments