Branch Coverage

blib/lib/RPi/RTC/DS3231.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
18 0 0 unless defined $rtc_addr
30 0 0 defined $output && $output eq 'f' ? :
37 0 0 if (defined $year)
44 0 0 if (defined $month)
51 0 0 if (defined $mday)
58 0 0 if (defined $wday)
65 0 0 if (defined $hour)
73 0 0 if (defined $min)
80 0 0 if (defined $sec)
91 0 0 if (defined $meridien)
92 0 0 if ($meridien ne 'AM' and $meridien ne 'PM')
95 0 0 if ($meridien eq 'AM') { }
103 0 0 getMeridien($self->_fd) ? :
107 0 0 if (defined $value)
108 0 0 if (not $value =~ /\d+/ or $value != 12 and $value != 24)
111 0 0 $value == 12 ? :
114 0 0 getMilitary($self->_fd) ? :
125 0 0 if $self->clock_hours == 12
132 0 0 if (defined $datetime)
135 0 0 if (@dt = $datetime =~ /(\d{4})-(\d{2})-(\d{2})\s+(\d{2}):(\d{2}):(\d{2})/) { }
140 0 0 if $ch == 12
150 0 0 if $ch == 12
165 0 0 if ($self->clock_hours == 12) { }
188 0 0 if ($self->clock_hours == 12) { }
221 0 0 unless (exists $self->{'fd'})
230 0 0 unless (defined $int and $int =~ /\d+/)
234 0 0 length $int < 2 ? :