Condition Coverage

lib/SIRTX/Datecode.pm
Criterion Covered Total %
condition 13 32 40.6


and 3 conditions

line !l l&&!r l&&r condition
28 0 0 87 defined $type and defined $data
61 72 0 15 $type eq "datecode" and $data =~ /^(0|[1-9][0-9]*)$/u
72 0 0 $type eq "epoch" and $data =~ /^-?(0|[1-9][0-9]*)$/u
0 0 72 $type eq "iso8601" and $data =~ /^[12][0-9]{3}(?:-[0-9]{2}(?:-[0-9]{2})?)?Z?$/u
192 0 0 0 $as eq "Data::Identifier" and scalar keys %opts == 0
261 0 0 0 $self->{'datecode'} >= 0 and $self->{'datecode'} <= 65535
326 32 0 40 defined $month && length $month
327 62 0 10 defined $day && length $day
331 0 66 6 $year >= 1582 and $year <= 1904

or 2 conditions

line l !l condition
271 0 0 $self->iso8601 // ""

or 3 conditions

line l !l&&r !l&&!r condition
74 15 72 0 $code //= $pkg->_build_from_iso($iso)