ZenTestUtils class

Utility functions for testing

Constructors

ZenTestUtils()

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

createMockController<T extends ZenController>(T factory(), ZenTestContainer container, {String? tag}) → T
Create a mock controller for testing
createTestEnvironment({String? name, void setup(ZenTestContainer container)?}) → ZenTestContainer
Create a test environment with optional setup
pump() → Future<void>
Wait for all pending reactive updates
runInTestEnvironment<T>(Future<T> test(ZenTestContainer container), {String? name, void setup(ZenTestContainer container)?}) → Future<T>
Run a test with a clean Zen environment
verifyReactiveChanges<T>(Rx<T> reactive, List<T> expectedChanges, Future<void> action()) → Future<bool>
Verify that a reactive value changes as expected
wait(Duration duration) → Future<void>
Wait for a specific duration (useful for debounce/throttle testing)