Skip to content

refactor(code): update barrel file #44

refactor(code): update barrel file

refactor(code): update barrel file #44

GitHub Actions / 🧪📊 Unit tests report succeeded Feb 21, 2024 in 1s

🧪📊 Unit tests report ✔️

Tests passed successfully

Report Passed Failed Skipped Time
test_reports/home_test_report.json 2✔️ 20s
test_reports/statistic_test_report.json 32✔️ 32s

✔️ test_reports/home_test_report.json

4 tests were completed in 20s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
features/home/test/src/domain/usecases/get_all_banner_test.dart 2✔️ 54ms

✔️ features/home/test/src/domain/usecases/get_all_banner_test.dart

 (setUpAll)
 (tearDownAll)
GetAllBanner
  ✔️ should return list of banners if call success
  ✔️ should return failure if exception if failed

✔️ test_reports/statistic_test_report.json

53 tests were completed in 32s with 32 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
features/statistic/test/src/data/datasources/covid_test_remote_data_source_test.dart 1✔️ 48ms
features/statistic/test/src/data/datasources/statistic_remote_data_source_test.dart 2✔️ 47ms
features/statistic/test/src/data/repositories/covid_test_repository_impl_test.dart 3✔️ 91ms
features/statistic/test/src/data/repositories/statistic_repository_impl_test.dart 4✔️ 69ms
features/statistic/test/src/domain/entities/covid_test_test.dart 6✔️ 25ms
features/statistic/test/src/domain/usecases/get_latest_covid_test_test.dart 2✔️ 41ms
features/statistic/test/src/domain/usecases/get_latest_national_statistic_test.dart 2✔️ 51ms
features/statistic/test/src/domain/usecases/get_latest_statistic_test.dart 2✔️ 52ms
features/statistic/test/src/presentation/cubits/latest_covid_test/latest_covid_test_cubit_test.dart 4✔️ 54ms
features/statistic/test/src/presentation/cubits/latest_national_statistic/latest_national_statistic_cubit_test.dart 3✔️ 49ms
features/statistic/test/src/presentation/cubits/latest_statistic/latest_statistic_cubit_test.dart 3✔️ 76ms

✔️ features/statistic/test/src/data/datasources/covid_test_remote_data_source_test.dart

 (setUpAll)
 (tearDownAll)
CovidTestRemoteDataSource latest()
  ✔️ should return list of covid test when success

✔️ features/statistic/test/src/data/datasources/statistic_remote_data_source_test.dart

 (setUpAll)
 (tearDownAll)
StatisticRemoteDataSource latest()
  ✔️ should return latest data of covid-19 when success
StatisticRemoteDataSource latestNational()
  ✔️ should return latest national data of covid-19 when success

✔️ features/statistic/test/src/data/repositories/covid_test_repository_impl_test.dart

 (setUpAll)
 (tearDownAll)
CovidTestRepositoryImpl latest()
  ✔️ should return list of covid test when success
  ✔️ should return failure when response not success
  ✔️ should return failure when exception occured

✔️ features/statistic/test/src/data/repositories/statistic_repository_impl_test.dart

 (setUpAll)
 (tearDownAll)
StatisticRepositoryImpl latest()
  ✔️ should return latest statistic of covid-19 when success
  ✔️ should return failure when exception occured
StatisticRepositoryImpl latestNational()
  ✔️ should return latest national statistic of covid-19 when success
  ✔️ should return failure when exception occured

✔️ features/statistic/test/src/domain/entities/covid_test_test.dart

 (setUpAll)
CovidTest
  ✔️ total properties should the same as total of other property
  ✔️ reactivePercentage is equals to positive/total
  ✔️ nonReactivePercentage is equals to negative/total
  ✔️ invalidPercentage is equals to invalid/total
  ✔️ inProcessPercentage is equals to process/total
  ✔️ nameAbbreviation return first letter of every word from name

✔️ features/statistic/test/src/domain/usecases/get_latest_covid_test_test.dart

 (setUpAll)
 (tearDownAll)
GetLatestCovidTest
  ✔️ should return list of covid test when success
  ✔️ should return covid test failure when failed

✔️ features/statistic/test/src/domain/usecases/get_latest_national_statistic_test.dart

 (setUpAll)
 (tearDownAll)
GetLatestNationalStatistic
  ✔️ should return latest national covid-19 statistic when success
  ✔️ should return statistic failure when failed

✔️ features/statistic/test/src/domain/usecases/get_latest_statistic_test.dart

 (setUpAll)
 (tearDownAll)
GetLatestStatistic
  ✔️ should return latest covid-19 statistic when success
  ✔️ should return statistic failure when failed

✔️ features/statistic/test/src/presentation/cubits/latest_covid_test/latest_covid_test_cubit_test.dart

 (setUpAll)
 (tearDownAll)
LatestCovidTestCubit
  ✔️ should emit nothing when initialize
  ✔️ should emit [Loading,Loaded] states when success
  ✔️ should emit [Loading,Empty] states when success and data empty
  ✔️ should emit [Loading,Failed] states when failed

✔️ features/statistic/test/src/presentation/cubits/latest_national_statistic/latest_national_statistic_cubit_test.dart

 (setUpAll)
 (tearDownAll)
LatestNationalStatisticCubit
  ✔️ should emit nothing when initialize
  ✔️ should emit [Loading,Loaded] states when success
  ✔️ should emit [Loading,Failed] states when failed

✔️ features/statistic/test/src/presentation/cubits/latest_statistic/latest_statistic_cubit_test.dart

 (setUpAll)
 (tearDownAll)
LatestStatisticCubit
  ✔️ should emit nothing when initialize
  ✔️ should emit [Loading,Loaded] states when success
  ✔️ should emit [Loading,Failed] states when failed