Structures
The following structures are available globally.
-
Unit of virtual time consumed by the
See moreTestSchedulerDeclaration
Swift
public struct VirtualTime : Hashableextension VirtualTime: SignedNumericextension VirtualTime: Strideableextension VirtualTime: ExpressibleByIntegerLiteralextension VirtualTime: CustomDebugStringConvertible
-
Unit of relative virtual time consumed by the
See moreTestSchedulerDeclaration
Swift
public struct VirtualTimeIntervalextension VirtualTimeInterval: SignedNumericextension VirtualTimeInterval: Comparableextension VirtualTimeInterval: ExpressibleByIntegerLiteralextension VirtualTimeInterval: SchedulerTimeIntervalConvertible
-
A collection of time-stamped
See moreSignalsDeclaration
Swift
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) public struct TestSequence<Input, Failure> where Failure : Errorextension TestSequence: Sequenceextension TestSequence: RangeReplaceableCollectionextension TestSequence: ExpressibleByArrayLiteralextension TestSequence: Equatable where Input: Equatable, Failure: Equatable
-
A
Publisherthat produces the elements provided in aTestSequence.Initializable using the factory methods on
See moreTestSchedulerDeclaration
Swift
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) public struct TestablePublisher<Output, Failure> : Publisher where Failure : Error
-
A sequence of
Subscribers.Demandtransactions.
See moreDemandLedger‘s can be compared to see if they match expectations.Declaration
Swift
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) public struct DemandLedger<Time> where Time : Strideable, Time.Stride : SchedulerTimeIntervalConvertibleextension DemandLedger: Sequenceextension DemandLedger: RangeReplaceableCollectionextension DemandLedger: ExpressibleByArrayLiteralextension DemandLedger: Equatable
-
Options for the defining the behavior of a
See moreTestableSubscriberthroughout its lifetimeDeclaration
Swift
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) public struct TestableSubscriberOptions
View on GitHub
Structures Reference