Branch Coverage

lib/Mojolicious/Plugin/Human.pm
Criterion Covered Total %
branch 57 78 73.0


line true false branch
266 15 77 unless defined $tz
267 0 77 unless length $tz
270 24 53 unless 'DateTime::TimeZone'->is_valid_name($tz)
279 0 108 unless $str
282 42 66 if ($str =~ /$REGEXP_TIMESTAMP/) { }
288 0 108 if not $dt or $@
304 0 12 unless $datetime
310 0 12 unless defined $str
312 0 12 unless $datetime
319 0 21 unless $datetime
326 0 21 unless $datetime
333 0 21 unless $datetime
340 0 21 unless $datetime
347 1 3 unless defined $sec
358 1 2 if $days
359 0 3 $sec < 0 ? :
371 2 6 unless defined $str
372 2 4 unless length $str
387 2 2 unless defined $stream
398 0 31 unless $phone
402 0 31 unless 10 <= length $phone
406 17 14 unless $phone =~ /^\+/
413 0 24 unless $phone
417 0 24 unless $phone
430 0 8 unless $str
448 0 6 unless defined $str
449 0 6 unless defined $count
460 3 1 $tail >= 2 && $tail < 5 ? :
1 4 $tail == 1 ? :
1 5 $tail == 0 ? :
467 0 6 $tail >= 10 && $tail < 21 ? :
476 0 6 unless defined $count
482 3 1 $tail >= 2 && $tail < 5 ? :
1 4 $tail == 1 ? :
1 5 $tail == 0 ? :
489 0 6 $tail >= 10 && $tail < 21 ? :
498 1 3 unless defined $str
499 1 2 unless length $str
502 1 1 $length < length $str ? :