Structures

The following structures are available globally.

VirtualTime value definition

  • Unit of virtual time consumed by the TestScheduler

    See more

    Declaration

    Swift

    public struct VirtualTime : Hashable
    extension VirtualTime: SignedNumeric
    extension VirtualTime: Strideable
    extension VirtualTime: ExpressibleByIntegerLiteral
    extension VirtualTime: CustomDebugStringConvertible

VirtualTimeInterval value definition

  • Unit of relative virtual time consumed by the TestScheduler

    See more

    Declaration

    Swift

    public struct VirtualTimeInterval
    extension VirtualTimeInterval: SignedNumeric
    extension VirtualTimeInterval: Comparable
    extension VirtualTimeInterval: ExpressibleByIntegerLiteral
    extension VirtualTimeInterval: SchedulerTimeIntervalConvertible

TestSequence definition

  • A collection of time-stamped Signals

    See more

    Declaration

    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

Publisher definition

  • A Publisher that produces the elements provided in a TestSequence.

    Initializable using the factory methods on TestScheduler

    See more

    Declaration

    Swift

    @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
    public struct TestablePublisher<Output, Failure> : Publisher where Failure : Error

TestSequence definition

  • A sequence of Subscribers.Demand transactions.

    DemandLedger‘s can be compared to see if they match expectations.

    See more

    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

TestableSubscriberOptions value definition