Branch Coverage

blib/lib/Wikibase/Datatype/Print/Value/Time.pm
Criterion Covered Total %
branch 24 30 80.0


line true false branch
20 3 11 unless (defined $opts_hr)
23 13 1 unless (exists $opts_hr->{'print_name'})
27 1 13 unless ($obj->isa("Wikibase::Datatype::Value::Time"))
31 1 12 if (exists $opts_hr->{'cb'} and not $opts_hr->{'cb'}->isa("Wikibase::Cache"))
37 1 11 if ($opts_hr->{'print_name'} and exists $opts_hr->{'cb'}) { }
49 8 4 if ($obj->precision == 11) { }
0 4 elsif ($obj->precision == 10) { }
2 2 elsif ($obj->precision == 9) { }
2 0 elsif ($obj->precision == 8) { }
0 0 elsif ($obj->precision <= 7 and $obj->precision >= 0) { }
60 1 1 if ($obj->before or $obj->after)
61 1 0 $obj->before ? :
62 1 0 $obj->after ? :
85 8 4 $month != 0 ? :
8 4 $day != 0 ? :