blib/lib/Games/LMSolve/Registry.pm

filter: Statementstmt 90.7% 39 / 43 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 92.3% 12 / 13 Podpod 100% 1 / 1 totaltotal 91.2% 52 / 57 CC 1 SCAR 0.7
CC
1
Cov
91%
register_all_solvers
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/lib/Games/LMSolve/Plank/Hex.pm ↑ Summary
1 package Games::LMSolve::Registry;
2 2 $Games::LMSolve::Registry::VERSION = '0.14.1';
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6  
7 2 ▶use Games::LMSolve;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 ▶use vars qw(@ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 @ISA = qw(Games::LMSolve);
12  
13 2 ▶use Games::LMSolve::Alice;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 2 ▶use Games::LMSolve::Minotaur;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 2 ▶use Games::LMSolve::Numbers;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 2 ▶use Games::LMSolve::Plank::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 2 ▶use Games::LMSolve::Tilt::Single;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 ▶use Games::LMSolve::Tilt::Multi;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 2 ▶use Games::LMSolve::Tilt::RedBlue;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 2 ▶use Games::LMSolve::Plank::Hex;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22  
23 sub register_all_solvers
24 {
25 0 ▶ my $self = shift;
Subroutine register_all_solvers: not called CC=1 SCAR=6.9
Pod documented
26 0 $self->register_solvers(
27 {
28 'alice' => "Games::LMSolve::Alice",
29 'minotaur' => "Games::LMSolve::Minotaur",
30 'numbers' => "Games::LMSolve::Numbers",
31 'plank' => "Games::LMSolve::Plank::Base",
32 'hex_plank' => "Games::LMSolve::Plank::Hex",
33 'tilt_single' => "Games::LMSolve::Tilt::Single",
34 'tilt_multi' => "Games::LMSolve::Tilt::Multi",
35 'tilt_rb' => "Games::LMSolve::Tilt::RedBlue",
36 'tilt_puzzle' => "Games::LMSolve::Tilt::RedBlue",
37 }
38 );
39  
40 0 $self->set_default_variant("minotaur");
41  
42 0 return 0;
43 }
44  
45 2 1;
46  
47 __END__
« blib/lib/Games/LMSolve/Plank/Hex.pm ↑ Summary