AuthExpect class abstract final

Plain-throw assertion helpers for auth-engine Result/Option/phase tests.

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

err<T>(Result<T> result, {String? reason}) → Problem
Asserts result is a Err and returns its problem.
errType<T>(Result<T> result, String type) → Problem
Asserts result is a Err whose problem type equals type.
none<T>(Option<T> option, {String? reason}) → void
Asserts option is None.
ok<T>(Result<T> result, {String? reason}) → T
Asserts result is a Ok and returns its value.
phase(OnboardingPhase actual, OnboardingPhase expected) → void
Asserts the terminal onboarding phase equals expected.
some<T>(Option<T> option, {String? reason}) → T
Asserts option is Some and returns its value.
status(Problem problem, int expected) → void
Asserts problem carries the expected status.