LCOV - code coverage report
Current view: top level - lib/domain/usecases/mobility - fetch_bus_route.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 3 0.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/mobility/route.dart';
       3             : import 'package:app_pym/domain/repositories/mobility/route_repository.dart';
       4             : import 'package:injectable/injectable.dart';
       5             : 
       6             : @prod
       7             : @lazySingleton
       8             : class FetchBusRoute extends Usecase<Future<Route>, NoParams> {
       9             :   final MetropoleRouteRepository repository;
      10             : 
      11           0 :   const FetchBusRoute(this.repository);
      12             : 
      13           0 :   @override
      14             :   Future<Route> call(NoParams params) {
      15           0 :     final route = repository.fetchRoutes().first;
      16             : 
      17             :     return route;
      18             :   }
      19             : }

Generated by: LCOV version 1.13