blib/lib/SVG/Estimate/Role/EndToPoint.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package SVG::Estimate::Role::EndToPoint;
2 $SVG::Estimate::Role::EndToPoint::VERSION = '1.0116';
3 use strict;
4 use Moo::Role;
5  
6 =head1 NAME
7  
8 SVG::Estimate::Role::EndToPoint - Change arguments from "end" to "point", mainly for Path command objects
9  
10 =head1 VERSION
11  
12 version 1.0116
13  
14 =cut
15  
16 around BUILDARGS => sub {
17 my ($orig, $class, @args) = @_;
18 my $args = @args % 2 ? $args[0] : { @args };
19 $args->{point} = $args->{end};
20 return $class->$orig($args);
21 };
22  
23  
24 1;