blib/lib/Data/Object/Autobox/Composite/Number.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 14 | 85.7 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 6 | 66.6 |
pod | 0 | 2 | 0.0 |
total | 16 | 22 | 72.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Data::Object::Autobox::Composite::Number; | ||||||
2 | |||||||
3 | 2 | 2 | 1857 | use 5.010; | |||
2 | 6 | ||||||
2 | 68 | ||||||
4 | 2 | 2 | 9 | use strict; | |||
2 | 3 | ||||||
2 | 68 | ||||||
5 | 2 | 2 | 10 | use warnings; | |||
2 | 3 | ||||||
2 | 63 | ||||||
6 | |||||||
7 | 2 | 2 | 442 | use Data::Object::Class 'with'; | |||
2 | 14064 | ||||||
2 | 15 | ||||||
8 | |||||||
9 | with 'Data::Object::Role::Number'; | ||||||
10 | |||||||
11 | sub data { | ||||||
12 | 0 | 0 | 0 | goto &detract; | |||
13 | } | ||||||
14 | |||||||
15 | sub detract { | ||||||
16 | 0 | 0 | 0 | return shift; | |||
17 | } | ||||||
18 | |||||||
19 | 1; |