blib/lib/Unit/Duration.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 37 | 49 | 75.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
20 | 1 | 1 | 0 | $name and not $table |
1 | 1 | 0 | $table and not $name | |
42 | 1 | 0 | 1 | $name and $table |
74 | 4 | 0 | 7 | $settings->{'compress'} and not $settings->{'_as'} |
282 | 3 | 8 | 3 | $settings->{'pluralize'} && $_->{'int'} != 1 |
line | l | !l | condition |
---|---|---|---|
23 | 1 | 1 | $params->{'intra_space'} //= " " |
24 | 1 | 1 | $params->{'extra_space'} //= ", " |
25 | 1 | 1 | $params->{'pluralize'} //= 1 |
26 | 1 | 1 | $params->{'unit_type'} //= "short" |
27 | 1 | 1 | $params->{'compress'} //= 0 |
138 | 42 | 0 | $_->{'unit'}{'amount'} // 1 |
141 | 42 | 6 | $unit->{'amount'} //= 1 |
190 | 53 | 0 | $duration //= "" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
20 | 0 | 0 | 2 | $name and not $table or $table and not $name |
69 | 7 | 0 | 4 | $settings->{'compress'} //= $self->{'compress'} |
110 | 28 | 4 | 0 | shift @parts // $unit->{'short'} |
120 | 46 | 2 | 0 | $unit->{'long'} //= $unit->{'short'} |
227 | 80 | 3 | 581 | $unit_name eq $_->{'letter'} || $unit_name eq $_->{'short'} || $unit_name eq $_->{'long'} |
274 | 24 | 8 | 0 | $settings->{$_} //= $self->{$_} |