line |
true |
false |
branch |
19
|
1 |
6 |
unless (defined $obj)
|
22
|
1 |
5 |
unless ($obj->isa("Wikibase::Datatype::Value::Quantity"))
|
25
|
1 |
4 |
unless (defined $base_uri)
|
32
|
3 |
1 |
if (defined $obj->unit) { }
|
37
|
1 |
3 |
defined $obj->lower_bound ? :
|
|
1 |
3 |
defined $obj->upper_bound ? :
|
57
|
0 |
4 |
if (not exists $struct_hr->{'type'} or $struct_hr->{'type'} ne "quantity")
|
66
|
1 |
3 |
if ($unit eq 1) { }
|
79
|
1 |
3 |
$struct_hr->{'value'}{'lowerBound'} ? :
|
|
1 |
3 |
$struct_hr->{'value'}{'upperBound'} ? :
|
90
|
6 |
0 |
if ($value =~ /^\d+$/)
|
100
|
6 |
0 |
if ($value =~ /^\+(\d+)$/ms)
|