File Coverage

blib/lib/Games/ABC_Path/Generator/Coord.pm
Criterion Covered Total %
statement 19 19 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 26 26 100.0


line stmt bran cond sub pod time code
1             package Games::ABC_Path::Generator::Coord;
2             $Games::ABC_Path::Generator::Coord::VERSION = '0.6.1';
3 9     9   376358 use 5.006;
  9         31  
4              
5 9     9   39 use strict;
  9         16  
  9         232  
6 9     9   43 use warnings;
  9         33  
  9         440  
7              
8 9     9   411 use integer;
  9         27  
  9         37  
9              
10 9     9   326 use parent 'Games::ABC_Path::Solver::Coord';
  9         16  
  9         47  
11              
12 9     9   2665 use Games::ABC_Path::Solver::Constants;
  9         17  
  9         1857  
13              
14              
15             sub _from_int
16             {
17 278     278   479 my ( $class, $int ) = @_;
18 278         994 return $class->new( { y => ( $int / $LEN ), x => ( $int % $LEN ) } );
19             }
20              
21              
22              
23             1; # End of Games::ABC_Path::Generator::Coord
24              
25             __END__