AuthTestClock class final
A mutable UTC clock for deterministic authentication tests.
Constructors
- AuthTestClock(DateTime now)
-
Creates a clock at
now.
Properties
Methods
-
advance(
Duration duration) → DateTime -
Moves the clock forward by
duration. -
call(
) → DateTime - Clock callback accepted by auth stores and plugins.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
DateTime value) → void -
Replaces the current time with
value, normalized to UTC. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited