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