LCOV - code coverage report
Current view: top level - path_parser/model/arguments - coordinate_pair.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 10 10 100.0 %
Date: 2022-02-22 16:00:34 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:mrx_icon_font_gen/parser/path/model/command_arguments.dart';
       2             : 
       3             : class CoordinatePair extends CommandArguments {
       4             :   final double x;
       5             :   final double y;
       6             : 
       7          16 :   CoordinatePair({
       8             :     required double x,
       9             :     required double y,
      10          32 :   })  : x = double.parse(x.toStringAsFixed(2)),
      11          32 :         y = double.parse(y.toStringAsFixed(2));
      12             : 
      13          11 :   @override
      14             :   String toString() {
      15          55 :     return '${x.toStringAsFixed(2)} ${y.toStringAsFixed(2)}';
      16             :   }
      17             : 
      18          16 :   @override
      19             :   bool operator ==(Object other) {
      20          16 :     if (other is! CoordinatePair) {
      21             :       return false;
      22             :     }
      23          96 :     return x == other.x && y == other.y;
      24             :   }
      25             : 
      26          11 :   @override
      27          33 :   int get hashCode => Object.hash(x, y);
      28             : }

Generated by: LCOV version 1.15