Branch Coverage

blib/lib/Wikibase/Datatype/Print/Value/Time.pm
Criterion Covered Total %
branch 18 20 90.0


line true false branch
20 3 8 unless (defined $opts_hr)
23 10 1 unless (exists $opts_hr->{'print_name'})
27 1 10 unless ($obj->isa("Wikibase::Datatype::Value::Time"))
31 1 9 if (exists $opts_hr->{'cb'} and not $opts_hr->{'cb'}->isa("Wikibase::Cache"))
37 1 8 if ($opts_hr->{'print_name'} and exists $opts_hr->{'cb'}) { }
47 8 1 if ($obj->precision == 11) { }
0 1 elsif ($obj->precision == 10) { }
1 0 elsif ($obj->precision == 9) { }
67 8 1 $month != 0 ? :
8 1 $day != 0 ? :