Verify/App/Golf.pm

filter: Statementstmt 62.9% 17 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 100% 1 / 1 totaltotal 65.7% 23 / 35 CC 1 SCAR 2.5
CC
1
Cov
63%
run
2.0
__ANON__
2.0
BEGIN
1.0
CRAP 1.3
« Verify/Column.pm ↑ Summary Verify/VariantsMap.pm »
1 package Games::Solitaire::Verify::App::Golf;
2 1 $Games::Solitaire::Verify::App::Golf::VERSION = '0.2601';
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use autodie;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Games::Solitaire::Verify::Golf ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Path::Tiny qw/ path /;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10  
11 sub run
12 0 ▶{
Subroutine run: not called CC=1 SCAR=6.9
Pod documented
13 0 my ( $self, $args ) = @_;
14 0 my ( $board_fn, $solution_fn ) = @ARGV;
15 0 my $verifier = Games::Solitaire::Verify::Golf->new(
16 {
17 board_string => path($board_fn)->slurp_raw(),
18 %$args,
19 }
20 );
21  
22 0 open my $fh, '<', $solution_fn;
23 0 ▶ $verifier->process_solution( sub { my $l = <$fh>; chomp $l; return $l; } );
Subroutine __ANON__: not called CC=1 SCAR=6.9
24 0 print "Solution is OK.\n";
25 0 exit(0);
26 }
27  
28 1 1;
29  
30 __END__
« Verify/Column.pm ↑ Summary Verify/VariantsMap.pm »