testing library
Classes
- BlocxTestEntity
- A lightweight, immutable entity for testing collections and event hubs.
- BlocxTestEventHub
- In-memory test event hub with inspection and recording capabilities.
- BlocxTestFormEntity
- A lightweight, immutable form entity for testing form blocs.
-
FakeCursorPaginatedUseCase<
T extends BlocxBaseEntity> - Fake cursor-based paginated use case.
-
FakePaginatedSource<
T extends BlocxBaseEntity> - Fake paginated in-memory data source for unit testing.
-
FakePaginatedUseCase<
T extends BlocxBaseEntity> - Fake paginated use case for offset-based pagination.
-
FakeSearchUseCase<
T extends BlocxBaseEntity> - Fake search use case.
-
FakeUseCase<
Input, Output> - General-purpose fake use case for submit and operation tasks.
Enums
- BlocxTestFormField
- Field enum for BlocxTestFormEntity.
Functions
-
createFakeCursorPaginatedTask<
T extends BlocxBaseEntity> ({required FakeCursorPaginatedUseCase< T> useCase}) → BlocxCursorPaginatedUseCaseTask<BlocxCursorPaginatedInput, T> -
Helper that builds a BlocxCursorPaginatedUseCaseTask wrapping
useCase. -
createFakePaginatedTask<
T extends BlocxBaseEntity> ({required FakePaginatedUseCase< T> useCase}) → BlocxPaginatedUseCaseTask<BlocxPaginatedInput, T> -
Helper that builds a BlocxPaginatedUseCaseTask wrapping
useCase. -
createFakeSubmitTask<
Input, Output> ({required FakeUseCase< Input, Output> useCase, required Input inputBuilder()}) → BlocxUseCaseTask<Input, Output> -
Helper that builds a BlocxUseCaseTask wrapping
useCase. -
createTestEntities(
int count, {String prefix = 'Item'}) → List< BlocxTestEntity> -
Helper that creates a list of
countBlocxTestEntity objects.