triple_test library

Functions

storeTest<T extends BaseStore>(String description, {required FutureOr<T> build(), dynamic act(T store)?, required dynamic expect(), Duration? wait, dynamic verify(T store)?}) FutureOr<void>
Creates a new store-specific test case with the given description. storeTest will handle asserting that the store emits the expected states (in order) after act is executed. storeTest also handles ensuring that no additional states are emitted by closing the store stream before evaluating the expectation.
whenObserve<State>(MockStore<State> store, {required dynamic input(), Duration delay = const Duration(), List<Triple<State>> triples = const [], State? initialState}) → void