LazxObserverTestHelpers<T> extension
Testing helpers for LazxObserver.
Provides waitForValue and expectEmits to simplify async value assertions in tests.
Import via package:lazx/lazx_testing.dart — never bundled in production.
- on
-
- LazxObserver<
T>
- LazxObserver<
Methods
-
expectEmits(
List< T> expected, {Duration timeout = const Duration(seconds: 5)}) → Future<void> -
Available on LazxObserver<
Collects the nextT> , provided by the LazxObserverTestHelpers extensionexpected.length emissions from stream and verifies they matchexpectedin order. -
waitForValue(
T targetValue, {Duration timeout = const Duration(seconds: 5)}) → Future< void> -
Available on LazxObserver<
Completes whenT> , provided by the LazxObserverTestHelpers extensiontargetValueis observed on the stream.