Branch Coverage

File:blib/lib/Database/BI/Util.pm
Coverage:93.5%

line%coveragebranch
59100TFunless defined $str
60100TFif utf8::is_utf8($str)
76100TFunless defined $value and length $value
85100TFif $value =~ /\A-?[0-9]{1,300}(?:\.[0-9]+)?\z/
90100TFif $is_accounting and $text =~ /\A\d/
91100TFunless $text =~ /\A-?\d+(?:\.\d+)?(?:[eE][-+]?\d+)?\z/
97100TFunless abs $number <= $LARGEST_NUMBER
114100TFunless defined $spec and length $spec
115100TFif ref $spec
117100TFif $spec =~ /\A(?:utc|gmt|z)\z/i
118100TFif $spec =~ /\Alocal\z/i
119100TFif (my($sign, $hh, $mm) = $spec =~ /\A([+-])([0-9]{2})(?::?([0-9]{2}))?\z/)
120100TFunless $hh <= 14 and ($mm // 0) <= 59
123100TF$sign eq '-' ? :
137100TF$ZONE && $Database::BI::Util::ZONE->{'kind'} eq 'fixed' ? :
15350TFdefined $start ? :
164100TFif $mon % 12 and $mon < 0
167100TFif $naive < 31536000
178100TFif $epoch >= 31708800
180100TFif $epoch >= 31536000 + $offset
194100TF$mp < 10 ? :
195100TF$mon <= 2 ? :
209100TFunless $ZONE and $Database::BI::Util::ZONE->{'kind'} eq "fixed"
218100TF$m <= 2 ? :
21950TF$y >= 0 ? :
221100TF$m > 2 ? :
237100TF$y % 4 == 0 && $y % 100 != 0 || $y % 400 == 0 ? :
23850TFunless $mon >= 1 and $mon <= 12 and $dom >= 1 and $dom <= $dim[$mon - 1] and $hour <= 23 and $minute <= 59 and ($second // 0) <= 59
24350TFif ($zone_text =~ /\A([+-])([0-9]{2}):?([0-9]{2})?\z/)
244100TF$1 eq '-' ? :
250100TFdefined $second ? :
267100TFunless defined $value and not ref $value
268100TFunless my($day, $hour, $minute, $second, $zone) = $value =~ /$ISO_DATETIME_FAST/
269100TFunless defined $zone and $ZONE
270100TF$zone =~ /\A[Zz]\z/ ? :
281100TFunless @tm >= 6
287100TFdefined $epoch ? :
29950TF$z >= 0 ? :
305100TF$mp < 10 ? :
306100TF$m <= 2 ? :
316100TFif $m == 2 and $d == 29 and not $leap
338100TFunless defined $day and not ref $day and $day =~ /\A([0-9]{4})-([0-9]{2})-([0-9]{2})\z/
34050TFunless $m >= 1 and $m <= 12 and $d >= 1 and $d <= 31
342100TFunless join($", @back) eq "$y $m $d"
347100TFif $first > $last
354100TFunless $end < $last