Structures
The following structures are available globally.
-
Unit of virtual time consumed by the
See moreTestScheduler
Declaration
Swift
public struct VirtualTime : Hashable
extension VirtualTime: SignedNumeric
extension VirtualTime: Strideable
extension VirtualTime: ExpressibleByIntegerLiteral
extension VirtualTime: CustomDebugStringConvertible
-
Unit of relative virtual time consumed by the
See moreTestScheduler
Declaration
Swift
public struct VirtualTimeInterval
extension VirtualTimeInterval: SignedNumeric
extension VirtualTimeInterval: Comparable
extension VirtualTimeInterval: ExpressibleByIntegerLiteral
extension VirtualTimeInterval: SchedulerTimeIntervalConvertible
-
A collection of time-stamped
See moreSignal
sDeclaration
Swift
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) public struct TestSequence<Input, Failure> where Failure : Error
extension TestSequence: Sequence
extension TestSequence: RangeReplaceableCollection
extension TestSequence: ExpressibleByArrayLiteral
extension TestSequence: Equatable where Input: Equatable, Failure: Equatable
-
A
Publisher
that produces the elements provided in aTestSequence
.Initializable using the factory methods on
See moreTestScheduler
Declaration
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.Demand
transactions.
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 : SchedulerTimeIntervalConvertible
extension DemandLedger: Sequence
extension DemandLedger: RangeReplaceableCollection
extension DemandLedger: ExpressibleByArrayLiteral
extension DemandLedger: Equatable
-
Options for the defining the behavior of a
See moreTestableSubscriber
throughout its lifetimeDeclaration
Swift
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) public struct TestableSubscriberOptions