File Coverage

blib/lib/Acme/Godot.pm
Criterion Covered Total %
statement 12 15 80.0
branch 0 2 0.0
condition n/a
subroutine 5 5 100.0
pod n/a
total 17 22 77.2


line stmt bran cond sub pod time code
1             #This is a -*- perl -*- module file
2             #
3             # Copyright (c) 2007 Salve J. Nilsen
4             #
5              
6 1     1   901 use strict;
  1         2  
  1         44  
7             package Acme::Godot;
8              
9 1     1   778 use version; our $VERSION = qv(0.1.1)->numify;
  1         2329  
  1         7  
10              
11             # Module implementation here
12              
13             BEGIN {
14 1     1   243 eval {
15             sub _waiting_for_godot {
16 1     1   5019122 sleep 60 * 60 * 24; # Act 1 - the first day
17 1         46 sleep 60 * 60 * 24 * 365; # Intermission. Get your snacks!
18 0         0 sleep 60 * 60 * 24; # Act 2 - the second day
19             }
20              
21             sub _godot_has_arrived {
22 1     1   5 0; # Nowhere to be seen.
23             }
24             };
25              
26 1         4 PLAY: while (! _godot_has_arrived() ) {
27 1         4 _waiting_for_godot();
28 0 0       0 redo PLAY unless _godot_has_arrived();
29             }
30             continue {
31 0         0 exit; # The play is over! Godot is here!
32             }
33             }
34              
35              
36             1; # End of Acme::Godot
37             __END__