LCOV - code coverage report
Current view: top level - lib/domain/usecases/cartographie - get_entreprises_of_batiment.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/map_pym/entreprise.dart';
       3             : import 'package:app_pym/domain/repositories/map_pym/entreprise_repository.dart';
       4             : import 'package:flutter/foundation.dart';
       5             : import 'package:flutter/material.dart';
       6             : import 'package:injectable/injectable.dart';
       7             : 
       8             : @prod
       9             : @lazySingleton
      10             : class GetEntreprisesOfBatiment extends Usecase<Future<List<Entreprise>>, int> {
      11             :   final EntrepriseRepository entrepriseRepository;
      12             : 
      13           1 :   const GetEntreprisesOfBatiment({
      14             :     @required this.entrepriseRepository,
      15             :   });
      16             : 
      17           1 :   @override
      18             :   Future<List<Entreprise>> call(int idBatiment) =>
      19           2 :       entrepriseRepository.fetchEntreprisesOfBatiment(idBatiment);
      20             : }

Generated by: LCOV version 1.13