LCOV - code coverage report
Current view: top level - lib/domain/usecases/services - fetch_services_of_categorie.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.dart';
       3             : import 'package:app_pym/domain/entities/app_pym/service_categorie.dart';
       4             : import 'package:app_pym/domain/repositories/app_pym/service_repository.dart';
       5             : import 'package:injectable/injectable.dart';
       6             : 
       7             : @prod
       8             : @lazySingleton
       9             : class FetchServicesOfCategorie
      10             :     extends Usecase<Future<List<Service>>, ServiceCategorie> {
      11             :   final ServiceRepository repository;
      12           1 :   const FetchServicesOfCategorie(this.repository);
      13             : 
      14           1 :   @override
      15             :   Future<List<Service>> call(ServiceCategorie categorie) {
      16           3 :     return repository.fetchServicesOf(categorie.id);
      17             :   }
      18             : }

Generated by: LCOV version 1.13