blib/lib/Wikibase/Datatype/Print/Value/Quantity.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 14 | 14 | 100.0 |
line | true | false | branch |
---|---|---|---|
18 | 4 | 4 | unless (defined $opts_hr) |
21 | 6 | 2 | unless (exists $opts_hr->{'print_name'}) |
25 | 1 | 7 | unless ($obj->isa("Wikibase::Datatype::Value::Quantity")) |
29 | 1 | 6 | if (exists $opts_hr->{'cb'} and not $opts_hr->{'cb'}->isa("Wikibase::Cache")) |
35 | 5 | 1 | if ($obj->unit) |
36 | 2 | 3 | if ($opts_hr->{'print_name'} and exists $opts_hr->{'cb'}) { } |
45 | 5 | 1 | if ($unit) |