LCOV - code coverage report
Current view: top level - path_parser/model/commands - close_path_command.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 12 12 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.dart';
       2             : import 'package:mrx_icon_font_gen/parser/path/model/command.dart';
       3             : import 'package:vector_math/vector_math_64.dart';
       4             : 
       5             : class ClosePathCommand extends Command {
       6           2 :   @override
       7             :   String get absoluteCommandName => 'Z';
       8             : 
       9           2 :   @override
      10             :   String get relativeCommandName => 'z';
      11             : 
      12           2 :   ClosePathCommand({
      13             :     String? command,
      14             :     bool? isRelative,
      15           2 :   }) : super(
      16             :           command: command,
      17             :           isRelative: isRelative,
      18             :         );
      19             : 
      20           1 :   @override
      21             :   List<Command> applyTransformation(
      22             :     Matrix3 transform,
      23             :     CoordinatePair startPoint,
      24             :   ) {
      25           1 :     return [this];
      26             :   }
      27             : 
      28           1 :   @override
      29             :   CoordinatePair getLastPoint(CoordinatePair startPoint) {
      30             :     return startPoint;
      31             :   }
      32             : 
      33           2 :   @override
      34             :   bool operator ==(Object other) {
      35           2 :     if (other is! ClosePathCommand) {
      36             :       return false;
      37             :     }
      38           6 :     return command == other.command;
      39             :   }
      40             : 
      41           1 :   @override
      42           3 :   int get hashCode => Object.hash(command, commandArguments);
      43             : }

Generated by: LCOV version 1.15