super_test library
Developed to simplify testing of SuperControllers, RxNotifiers and RxTs.
Functions
-
testController<
S extends SuperController, T> (String description, {required S build(), required T state(S controller), void onEnable(S controller)?, void onAlive(S controller)?, void onDisable(S controller)?, FutureOr< void> setUp()?, T seed()?, FutureOr<void> act(S controller)?, Duration? wait, int skip = 0, List<T> expect()?, FutureOr<void> verify(S controller)?, Object errors()?, FutureOr<void> tearDown()?, dynamic tags}) → void -
Test case for a
SuperController
object. -
testRxNotifier<
S extends RxNotifier< (T> , T>String description, {required S build(), FutureOr< void> setUp()?, T seed()?, FutureOr<void> act(S notifier)?, Duration? wait, int skip = 0, List<T> expect()?, FutureOr<void> verify(S notifier)?, Object errors()?, FutureOr<void> tearDown()?, dynamic tags}) → void -
Defines a test case for a
RxNotifier
object. -
testRxT<
T> (String description, {required RxT< T> build(), FutureOr<void> setUp()?, T seed()?, FutureOr<void> act(RxT<T> rx)?, Duration? wait, int skip = 0, List<T> expect()?, FutureOr<void> verify(RxT<T> rx)?, Object errors()?, FutureOr<void> tearDown()?, dynamic tags}) → void -
Defines a test case for a
RxT
object.