handleUnitTest method

void handleUnitTest({
  1. required String pathTestPage,
  2. required String featureName,
  3. required String pageName,
  4. required Map pageValue,
  5. required List<Map<String, String>> resultModelUnitTest,
})

Implementation

void handleUnitTest({
  required String pathTestPage,
  required String featureName,
  required String pageName,
  required Map pageValue,
  required List<Map<String, String>> resultModelUnitTest,
}) {
  createDataDataSourceTest(
      pathTestPage, featureName, pageName, resultModelUnitTest);
  createDataRepositoryTest(
      pathTestPage, featureName, pageName, resultModelUnitTest);

  createDomainEntityTest(
      pathTestPage, featureName, pageName, resultModelUnitTest);
  createDomainRepositoryTest(
      pathTestPage, featureName, pageName, resultModelUnitTest);
  createDomainUseCaseTest(
      pathTestPage, featureName, pageName, resultModelUnitTest);

  createPresentationBlocTest(
      pathTestPage, featureName, pageName, resultModelUnitTest);
  createPresentationCubitTest(
      pathTestPage, featureName, pageName, resultModelUnitTest);
  createPresentationPageTest(
      pathTestPage, featureName, pageName, resultModelUnitTest);
  createPresentationWidgetTest(
      pathTestPage, featureName, pageName, resultModelUnitTest);

  createMapperTest(pathTestPage, featureName, pageName, resultModelUnitTest);
}