lib/Games/Nonogram.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 12 | 50.0 |
branch | 0 | 4 | 0.0 |
condition | n/a | ||
subroutine | 2 | 3 | 66.6 |
pod | n/a | ||
total | 8 | 19 | 42.1 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Games::Nonogram; | ||||||
2 | |||||||
3 | 1 | 1 | 1570 | use strict; | |||
1 | 1 | ||||||
1 | 33 | ||||||
4 | 1 | 1 | 5 | use warnings; | |||
1 | 2 | ||||||
1 | 153 | ||||||
5 | |||||||
6 | our $VERSION = '0.01'; | ||||||
7 | |||||||
8 | sub bootstrap { | ||||||
9 | 0 | 0 | my $class = shift; | ||||
10 | |||||||
11 | 0 | 0 | my $target = @ARGV ? 'CommandLine' : 'Shell'; | ||||
12 | 0 | my $package = "Games::Nonogram::$target"; | |||||
13 | 0 | eval qq{ require $package }; | |||||
14 | 0 | 0 | die $@ if $@; | ||||
15 | 0 | $package->bootstrap; | |||||
16 | } | ||||||
17 | |||||||
18 | 1; | ||||||
19 | |||||||
20 | __END__ |