FakeQueueClock class final

Manually advanced clock for deterministic tests.

Import it from package:durable_queue/testing.dart.

Implemented types

Constructors

FakeQueueClock(DateTime initial)
Creates a clock frozen at initial.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

advance(Duration duration) → void
Moves the clock forward by duration and wakes due delays.
delayUntil(DateTime time) → QueueDelay
Completes when time has been reached.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
now() → DateTime
Current time according to this clock.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited