Condition Coverage

blib/lib/Catmandu/SFX.pm
Criterion Covered Total %
condition 17 30 56.6


and 3 conditions

line !l l&&!r l&&r condition
20 0 0 4 defined $from and $from =~ / (in|from) \s+ (\d+) (\s+volume:\s+(\S+))? (\s+issue:\s+(\S+))? (.*) /x
35 0 4 0 defined $until and $until =~ / until \s+ (\d+) (\s+volume:\s+(\S+))? (\s+issue:\s+(\S+))? /x
89 0 0 6 is_array_ref($years) and @$years > 0
117 0 2 4 exists $parsed->{'limit'} and $parsed->{'limit'}{'num'}
2 1 3 exists $parsed->{'limit'} and $parsed->{'limit'}{'num'} and $parsed->{'limit'}{'type'} eq 'year'
3 1 2 exists $parsed->{'limit'} and $parsed->{'limit'}{'num'} and $parsed->{'limit'}{'type'} eq 'year' and $parsed->{'limit'}{'available'} == 0
135 0 0 1 is_array_ref($years) and @$years > 0

or 3 conditions

line l !l&&r !l&&!r condition
69 0 4 2 exists $res->{'end'}{'year'} or exists $res->{'limit'}{'num'}
111 4 2 0 $start_year //= $this_year
114 0 6 0 $end_year //= $this_year