Branch Coverage

blib/lib/Data/Types.pm
Criterion Covered Total %
branch 47 48 97.9


line true false branch
37 0 8 unless defined $_[0]
38 3 5 unless $_[0] =~ /^[0-9]+$/
43 1 15 unless defined $_[0]
45 6 9 unless defined $num and $num >= 0
50 1 7 unless $_[0]
51 3 4 unless $_[0] =~ /^[0-9]+$/
56 3 13 unless $_[0]
58 7 6 unless $num and $num > 0.5
63 2 11 unless defined $_[0] and $_[0] ne ''
64 7 4 unless $_[0] =~ /^[+-]?[0-9]+$/
69 2 11 unless defined $_[0] and $_[0] ne ''
71 1 10 unless defined $num
76 2 26 unless defined $_[0] and $_[0] ne ''
77 11 15 unless $_[0] =~ /^[+-]?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)$/
82 4 24 unless defined $_[0] and $_[0] ne ''
84 2 22 unless defined $num
106 2 11 unless defined $_[0] and $_[0] ne ''
107 4 7 unless $_[0] =~ /^([+-]?)(?=[0-9]|\.[0-9])[0-9]*(\.[0-9]*)?([Ee]([+-]?[0-9]+))?$/
112 2 11 unless defined $_[0] and $_[0] ne ''
114 1 10 unless defined $num
115 3 7 $num =~ /e|E/ ? :
121 4 1 if defined $_[0]
124 1 6 unless defined $_[0]
125 1 5 $_[1] ? :