LCOV - code coverage report
Current view: top level - Users/yeradis/Projects/Garage/dart/stay_points.dart/test - online_identification_test.dart (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 10 10 100.0 %
Date: 2017-10-10 20:17:03 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:stay_points/stay_points.dart';
       2             : import 'package:test/test.dart';
       3             : 
       4             : void main() {
       5           1 :     group('Online stay-point identification', () {
       6             :         final lat1 = 41.139129;
       7             :         final lon1 = 1.402244;
       8             : 
       9           1 :         final Location location = new Location.fromDegrees(latitude: lat1,
      10           1 :             longitude: lon1, timestamp: new DateTime.now());
      11             : 
      12             :         StayPointIdentification extractor;
      13             : 
      14           1 :         setUp(() {
      15           1 :             Threshold threshold = new Threshold(
      16           2 :                 minimumTime: new Duration(minutes: 4), minimumDistance: new Distance(meters: 20.0));
      17           1 :             extractor = new StayPointIdentification(threshold);
      18             :         });
      19             : 
      20           1 :         test('Should return UnimplementedError', () {
      21           2 :             expect(() => extractor.processBuffered(location: location),
      22           3 :                 throwsA(predicate((e) => e is UnimplementedError)));
      23             :         });
      24             :     });
      25             : }

Generated by: LCOV version 1.13