Mario/SMB.pm

filter: Statementstmt 92.8% 13 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod 100% 1 / 1 totaltotal 91.3% 21 / 23 SCAR 0.0
CC
1
Cov
93%
games
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Mario/SMBTLL.pm ↑ Summary Mario/SMB3.pm »
1 4 ▶use 5.16.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 package Games::Nintendo::Mario::SMB 0.208;
4  
5 4 ▶use base qw(Games::Nintendo::Mario);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 16 ▶sub _names { qw[Mario Luigi] }
Subroutine _names: called CC=1 SCAR=0.0
8 16 ▶sub _states { qw[normal super fire] }
Subroutine _states: called CC=1 SCAR=0.0
9 7 ▶sub _items { qw[mushroom flower] }
Subroutine _items: called CC=1 SCAR=0.0
10  
11 sub _goto_hash {
12 {
13 16 ▶ damage => {
Subroutine _goto_hash: called CC=1 SCAR=0.0
14 normal => 'dead',
15 _else => 'normal'
16 },
17 mushroom => {
18 fire => 'fire',
19 _else => 'super',
20 },
21 flower => {
22 normal => 'super',
23 _else => 'fire'
24 }
25 }
26 }
27  
28 sub games {
29 0 ▶ return ('Super Mario Bros.');
Subroutine games: not called CC=1 SCAR=6.9
Pod documented
30 }
31  
32 4 "It's-a me! Mario!";
33  
34 __END__
« Mario/SMBTLL.pm ↑ Summary Mario/SMB3.pm »