LCOV - code coverage report
Current view: top level - path_parser/model/arguments - smooth_curve_to_coordinate_sequence.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/arguments/coordinate_pair_sequence.dart';
       2             : import 'package:mrx_icon_font_gen/parser/path/model/command_arguments.dart';
       3             : 
       4             : class SmoothCurveToCoordinateSequence extends CommandArguments {
       5             :   final List<CoordinatePairDouble> coordinatePairDoubles;
       6             : 
       7           3 :   SmoothCurveToCoordinateSequence({
       8             :     required this.coordinatePairDoubles,
       9             :   });
      10             : 
      11           2 :   @override
      12             :   String toString() {
      13           4 :     return coordinatePairDoubles.join(' ');
      14             :   }
      15             : 
      16           3 :   @override
      17             :   bool operator ==(Object other) {
      18           3 :     if (other is! SmoothCurveToCoordinateSequence) {
      19             :       return false;
      20             :     }
      21          15 :     if (other.coordinatePairDoubles.length != coordinatePairDoubles.length) {
      22             :       return false;
      23             :     }
      24          12 :     for (int i = 0; i < coordinatePairDoubles.length; i++) {
      25          15 :       if (other.coordinatePairDoubles[i] != coordinatePairDoubles[i]) {
      26             :         return false;
      27             :       }
      28             :     }
      29             :     return true;
      30             :   }
      31             : 
      32           2 :   @override
      33           4 :   int get hashCode => Object.hashAll(coordinatePairDoubles);
      34             : }

Generated by: LCOV version 1.15