File Coverage

examples/primes.spl
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             #!/usr/bin/env perl
2 1     1   2397 use Lingua::Shakespeare;
  1         5  
  1         9  
3              
4             Prime Number Computation in Copenhagen.
5              
6             Romeo, a young man of Verona.
7             Juliet, a young woman.
8             Hamlet, a temporary variable from Denmark.
9             The Ghost, a limiting factor (and by a remarkable coincidence also
10             Hamlet's father).
11              
12              
13             Act I: Interview with the other side.
14              
15             Scene I: At the last hour before dawn.
16              
17             [Enter the Ghost and Juliet]
18              
19             The Ghost:
20             You pretty little warm thing! Thou art as prompt as the difference
21             between the square of thyself and your golden hair. Speak your mind.
22              
23             Juliet:
24             Listen to your heart!
25              
26             [Exit the Ghost]
27              
28             [Enter Romeo]
29              
30             Juliet:
31             Thou art as sweet as a sunny summer's day!
32              
33              
34             Act II: Determining divisibility.
35              
36             Scene I: A private conversation.
37              
38             Juliet:
39             Art thou more cunning than the Ghost?
40              
41             Romeo:
42             If so, let us proceed to scene V.
43              
44             [Exit Romeo]
45              
46             [Enter Hamlet]
47              
48             Juliet:
49             You are as villainous as the square root of Romeo!
50              
51             Hamlet:
52             You are as lovely as a red rose.
53              
54             Scene II: Questions and the consequences thereof.
55              
56             Juliet:
57             Am I better than you?
58              
59             Hamlet:
60             If so, let us proceed to scene III.
61              
62             Juliet:
63             Is the remainder of the quotient between Romeo and me as good as
64             nothing?
65              
66             Hamlet:
67             If so, let us proceed to scene IV.
68             Thou art as bold as the sum of thyself and a roman.
69              
70             Juliet:
71             Let us return to scene II.
72              
73             Scene III: Romeo must die!
74              
75             [Exit Hamlet]
76              
77             [Enter Romeo]
78              
79             Juliet:
80             Open your heart.
81              
82             [Exit Juliet]
83              
84             [Enter Hamlet]
85              
86             Romeo:
87             Thou art as rotten as the difference between nothing and the sum of a
88             snotty stinking half-witted hog and a small toad!
89             Speak your mind!
90              
91             [Exit Romeo]
92              
93             [Enter Juliet]
94              
95             Scene IV: One small dog at a time.
96              
97             [Exit Hamlet]
98              
99             [Enter Romeo]
100              
101             Juliet:
102             Thou art as handsome as the sum of thyself and my chihuahua!
103             Let us return to scene I.
104              
105             Scene V: Fin.
106              
107             [Exeunt]