blib/lib/Acme/Godot.pm

filter: Statementstmt 73.3% 11 / 15 Branchbran 25.0% 1 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 70.8% 17 / 24 CC 3 SCAR 9.2
CC
3
Cov
63%
BEGIN
4.4
_waiting_for_godot
1.3
BEGIN
1.0
CRAP 2.5
↑ Summary
1 #This is a -*- perl -*- module file
2 #
3 # Copyright (c) 2007-2015 Salve J. Nilsen
4 #
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 package Acme::Godot;
9  
10 1 ▶use version; our $VERSION = version->parse(0.1.10)->numify;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 ▶BEGIN {
Subroutine BEGIN: called CC=3 SCAR=14.8
13 eval {
14 1 ▶ sub _waiting_for_godot {
Subroutine _waiting_for_godot: called CC=1 SCAR=2.6
15 1 sleep 60 * 60 * 24; # Act 1 - the first day
16 0 sleep 60 * 60 * 24 * 365; # Intermission. Get your snacks!
17 0 sleep 60 * 60 * 24; # Act 2 - the second day
18 }
19  
20 1 ▶ sub _godot_has_arrived {
Subroutine _godot_has_arrived: called CC=1 SCAR=0.0
21 1 0; # Nowhere to be seen.
22 }
23 1 };
24  
25 1 ▶PLAY: while (!_godot_has_arrived()) {
Branch: 1 branch
BranchTrueFalseTotal
if (not _godot_has_arrived()) 1 0 1
26 1 _waiting_for_godot();
27 0 ▶ redo PLAY unless _godot_has_arrived();
Branch: 1 branch
BranchTrueFalseTotal
unless _godot_has_arrived() 0 0 0
28 } continue {
29 0 exit; # Rejoice, Godot is here! Let's get outta here.
30 }
31 }
32  
33  
34 1; # End of Acme::Godot
35 __END__
↑ Summary