Branch Coverage

blib/lib/Time/Piece/Guess.pm
Criterion Covered Total %
branch 49 192 25.5


line true false branch
74 0 3 unless (defined $string)
80 1 2 if ($string =~ /\.\d+/)
86 0 3 if ($string =~ /^\d+$/) { }
0 3 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9]\:[0-5][0-9][-+]\d+$/) { }
0 3 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9]\:[0-5][0-9]Z$/) { }
0 3 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9]\:[0-5][0-9]\ .+$/) { }
0 3 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9]\:[0-5][0-9]\:[0-5][0-9][-+]\d+$/) { }
0 3 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]Z$/) { }
0 3 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]\ .+$/) { }
0 3 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9]\:[0-5][0-9][-+]\d+$/) { }
0 3 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9]\:[0-5][0-9]Z$/) { }
0 3 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9]\:[0-5][0-9]\ .+$/) { }
2 1 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9][-+]\d+$/) { }
0 1 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]Z$/) { }
0 1 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]\ .+$/) { }
0 1 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9]\:[0-5][0-9][-+]\d+$]) { }
0 1 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9]\:[0-5][0-9]Z$]) { }
0 1 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9]\:[0-5][0-9]\ .+$]) { }
0 1 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9][-+]\d+$]) { }
0 1 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]Z$]) { }
0 1 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]\ .+$]) { }
0 1 elsif ($string =~ /^\d\d\d\d\d\d\d\d\ [0-2][0-9]\:[0-5][0-9][-+]\d+$/) { }
0 1 elsif ($string =~ /^\d\d\d\d\d\d\d\d\ [0-2][0-9]\:[0-5][0-9]Z$/) { }
0 1 elsif ($string =~ /^\d\d\d\d\d\d\d\d\ [0-2][0-9]\:[0-5][0-9]\ .+$/) { }
0 1 elsif ($string =~ /^\d\d\d\d\d\d\d\d\ [0-2][0-9]\:[0-5][0-9]\:[0-5][0-9][-+]\d+$/) { }
0 1 elsif ($string =~ /^\d\d\d\d\d\d\d\d\ [0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]Z$/) { }
0 1 elsif ($string =~ /^\d\d\d\d\d\d\d\d\ [0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]\ .+$/) { }
0 1 elsif ($string =~ /\^d\d\d\d\d\d\d\dT[0-2][0-9]\:[0-5][0-9][-+]\d+$/) { }
0 1 elsif ($string =~ /\^d\d\d\d\d\d\d\dT[0-2][0-9]\:[0-5][0-9]Z$/) { }
0 1 elsif ($string =~ /\^d\d\d\d\d\d\d\dT[0-2][0-9]\:[0-5][0-9]\ .+$/) { }
0 1 elsif ($string =~ /^\d\d\d\d\d\d\d\dT[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9][-+]\d+$/) { }
0 1 elsif ($string =~ /^\d\d\d\d\d\d\d\dT[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]Z$/) { }
0 1 elsif ($string =~ /^\d\d\d\d\d\d\d\dT[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]\ .+$/) { }
0 1 elsif ($string =~ m[^\d\d\d\d\d\d\d\d/[0-2][0-9]\:[0-5][0-9][-+]\d+$]) { }
0 1 elsif ($string =~ m[^\d\d\d\d\d\d\d\d/[0-2][0-9]\:[0-5][0-9]Z$]) { }
0 1 elsif ($string =~ m[^\d\d\d\d\d\d\d\d/[0-2][0-9]\:[0-5][0-9]\ .+$]) { }
0 1 elsif ($string =~ m[^\d\d\d\d\d\d\d\d/[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9][-+]\d+$]) { }
0 1 elsif ($string =~ m[^\d\d\d\d\d\d\d\d/[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]Z$]) { }
0 1 elsif ($string =~ m[^\d\d\d\d\d\d\d\d/[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]\ .+$]) { }
0 1 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9]\:[0-5][0-9]$/) { }
0 1 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]$/) { }
0 1 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9]\:[0-5][0-9]$/) { }
1 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]$/) { }
0 0 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9]\:[0-5][0-9]$]) { }
0 0 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]$]) { }
0 0 elsif ($string =~ /^\d\d\d\d\d\d\d\d\ [0-2][0-9]\:[0-5][0-9]$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\d\d\d\d\ [0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\d\d\d\dT[0-2][0-9]\:[0-5][0-9]$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\d\d\d\dT[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]$/) { }
0 0 elsif ($string =~ m[^\d\d\d\d\d\d\d\d/[0-2][0-9]\:[0-5][0-9]$]) { }
0 0 elsif ($string =~ m[^\d\d\d\d\d\d\d\d/[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]$]) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9][0-5][0-9][-+]\d+$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9][0-5][0-9]Z$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9][0-5][0-9]\ .+$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9][0-5][0-9][0-5][0-9][-+]\d+$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9][0-5][0-9][0-5][0-9]Z$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9][0-5][0-9][0-5][0-9]\ .+$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9][0-5][0-9][-+]\d+$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9][0-5][0-9]Z$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9][0-5][0-9]\ .+$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9][0-5][0-9][0-5][0-9][-+]\d+$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9][0-5][0-9][0-5][0-9]Z$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9][0-5][0-9][0-5][0-9]\ .+$/) { }
0 0 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9][0-5][0-9][-+]\d+$]) { }
0 0 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9][0-5][0-9]Z$]) { }
0 0 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9][0-5][0-9]\ .+$]) { }
0 0 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9][0-5][0-9][0-5][0-9][-+]\d+$]) { }
0 0 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9][0-5][0-9][0-5][0-9]Z$]) { }
0 0 elsif ($string =~ /^\d\d\d\d\d\d\d\d\ [0-2][0-9][0-5][0-9][-+]\d+$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\d\d\d\d\ [0-2][0-9][0-5][0-9]Z$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\d\d\d\d\ [0-2][0-9][0-5][0-9][0-5][0-9][-+]\d+$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\d\d\d\d\ [0-2][0-9][0-5][0-9][0-5][0-9]Z$/) { }
0 0 elsif ($string =~ /\^d\d\d\d\d\d\d\dT[0-2][0-9][0-5][0-9][-+]\d+$/) { }
0 0 elsif ($string =~ /\^d\d\d\d\d\d\d\dT[0-2][0-9][0-5][0-9]Z$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\d\d\d\dT[0-2][0-9][0-5][0-9][0-5][0-9][-+]\d+$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\d\d\d\dT[0-2][0-9][0-5][0-9][0-5][0-9]Z$/) { }
0 0 elsif ($string =~ m[^\d\d\d\d\d\d\d\d/[0-2][0-9][0-5][0-9][-+]\d+$]) { }
0 0 elsif ($string =~ m[^\d\d\d\d\d\d\d\d/[0-2][0-9][0-5][0-9]Z$]) { }
0 0 elsif ($string =~ m[^\d\d\d\d\d\d\d\d/[0-2][0-9][0-5][0-9][0-5][0-9][-+]\d+$]) { }
0 0 elsif ($string =~ m[^\d\d\d\d\d\d\d\d/[0-2][0-9][0-5][0-9][0-5][0-9]Z$]) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9][0-5][0-9]$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\d\ [0-2][0-9][0-5][0-9][0-5][0-9]$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9][0-5][0-9]$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\-\d\d-\d\dT[0-2][0-9][0-5][0-9][0-5][0-9]$/) { }
0 0 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9][0-5][0-9]$]) { }
0 0 elsif ($string =~ m[^\d\d\d\d\-\d\d-\d\d/[0-2][0-9][0-5][0-9][0-5][0-9]$]) { }
0 0 elsif ($string =~ /^\d\d\d\d\d\d\d\d\ [0-2][0-9][0-5][0-9]$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\d\d\d\d\ [0-2][0-9][0-5][0-9][0-5][0-9]$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\d\d\d\dT[0-2][0-9][0-5][0-9]$/) { }
0 0 elsif ($string =~ /^\d\d\d\d\d\d\d\dT[0-2][0-9][0-5][0-9][0-5][0-9]$/) { }
0 0 elsif ($string =~ m[^\d\d\d\d\d\d\d\d/[0-2][0-9][0-5][0-9]$]) { }
0 0 elsif ($string =~ m[^\d\d\d\d\d\d\d\d/[0-2][0-9][0-5][0-9][0-5][0-9]$]) { }
378 0 1 unless (defined $string)
384 0 1 unless (defined $format)
388 0 1 if (defined $ms_clean_regex)
394 0 1 if ($@)