blib/lib/PERLCORE/Predicates/IsEven.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 12 | 91.6 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 5 | 80.0 |
pod | 0 | 1 | 0.0 |
total | 15 | 18 | 83.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package PERLCORE::Predicates::IsEven; | ||||||
2 | |||||||
3 | 1 | 1 | 65403 | use 5.006; | |||
1 | 4 | ||||||
4 | 1 | 1 | 5 | use strict; | |||
1 | 2 | ||||||
1 | 21 | ||||||
5 | 1 | 1 | 5 | use warnings; | |||
1 | 1 | ||||||
1 | 45 | ||||||
6 | |||||||
7 | 1 | 1 | 457 | use parent 'Exporter'; | |||
1 | 291 | ||||||
1 | 6 | ||||||
8 | |||||||
9 | our $VERSION = '0.01'; | ||||||
10 | |||||||
11 | our @EXPORT_OK = qw(isEven); | ||||||
12 | |||||||
13 | 0 | 0 | 0 | sub isEven { $_[0] % 2 == 0; } | |||
14 | |||||||
15 | 1; | ||||||
16 | |||||||
17 | __END__ |