RxTesting class
Testing utilities for reactive values
Constructors
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
-
createMock<
T> (T initialValue) → Rx< T> - Create a mock reactive value for testing
-
expectAllEqual<
T> (List< Rx< rxValues, T expectedValue) → voidT> > - Test multiple reactive values for consistency
-
expectDisposed<
T> (Rx< T> rx) → void - Test that reactive values are disposed properly
-
expectErrorCount(
int expectedCount, void test()) → void - Verify that a specific number of errors were logged
-
expectNotDisposed<
T> (Rx< T> rx) → void - Test that reactive values are not disposed
-
expectRxChange<
T> (Rx< T> rx, T expectedValue, {Duration timeout = const Duration(seconds: 1)}) → Future<void> - Test that a reactive value changes to expected value
-
expectRxException(
void operation(), String expectedMessage, {Type? expectedOriginalError}) → void - Test that an operation throws a specific RxException
-
expectRxFailure<
T> (RxResult< T> result, String expectedMessage) → void - Test that an RxResult is failure with specific error
-
expectRxNoChange<
T> (Rx< T> rx, Duration duration) → Future<void> - Test that an Rx value does not change within a duration
-
expectRxSuccess<
T> (RxResult< T> result, T expectedValue) → void - Test that an RxResult is success with specific value
-
withErrorConfig(
RxErrorConfig config, void test()) → void - Test error configuration
-
withErrorLogger(
void logger(RxException error), void test()) → void - Test with custom error logger
-
withSilentErrors(
void test()) → void - Test with silent error logging