modules/common_utils/utils/utils
library
Functions
-
deepMergeMap(Map<String, dynamic> a, Map<String, dynamic> b)
→ Map<String, dynamic>
-
-
getStackBaseDefaultLogger()
→ Logger
-
-
queryMerge(Map<String, dynamic>? queryA, Map<String, dynamic>? queryB)
→ Map<String, dynamic>
-
-
repoServiceBlocEventGroupTestUtil<Bloc extends RepoServiceBloc<GroupEvent>, GroupEvent extends Enum, DataType, ExecutorParams>(Bloc repoServiceBlocFn(), {ExecutorParams? eventParams, String? eventKey, required GroupEvent groupEvent, required RepoServiceStubDefinition stub, void setUp(Bloc bloc)?, void verifier(List<RepoServiceBlocState<GroupEvent>> states, Either<Failure, DataType?>? executorResult)?, TypeMatcher<BaseRequest>? requestMatcher})
→ Future<void>
-
Example
-
repoServiceTestGenericUtil<T extends RepoServiceBase, DataType>(T repoService(), {void setUp()?, required Future<Either<Failure, DataType?>> act(T), required void verify(Either<Failure, DataType?> result)})
→ Future<void>
-
-
repoServiceTestHttpUtil<T extends RepoServiceBase, DataType>(T repoService(), {void setUp(HttpClientMock clientMock)?, required Future<Either<Failure, DataType>> act(T), required dynamic verify(HttpClientMock clientMock, Either<Failure, DataType> response), required String responseStubValue, int? statusCodeStubValue, })
→ Future<void>
-
Creates a new RepoServiceBase-specific test case with the given
repoService
.