LCOV - code coverage report
Current view: top level - lib/domain/usecases/services - fetch_service_categories.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 3 3 100.0 %
Date: 2020-06-26 11:36:11 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:app_pym/core/usecases/usecase.dart';
       2             : import 'package:app_pym/domain/entities/app_pym/service_categorie.dart';
       3             : import 'package:app_pym/domain/repositories/app_pym/service_categorie_repository.dart';
       4             : import 'package:injectable/injectable.dart';
       5             : 
       6             : @prod
       7             : @lazySingleton
       8             : class FetchServiceCategories
       9             :     extends Usecase<Future<List<ServiceCategorie>>, NoParams> {
      10             :   final ServiceCategorieRepository repository;
      11             : 
      12           1 :   const FetchServiceCategories(this.repository);
      13             : 
      14           1 :   @override
      15             :   Future<List<ServiceCategorie>> call(NoParams _) {
      16           2 :     return repository.fetchAll();
      17             :   }
      18             : }

Generated by: LCOV version 1.13