Branch Coverage

blib/lib/CGI/Widget/Path.pm
Criterion Covered Total %
branch 8 28 28.5


line true false branch
12 0 2 $#_ == 0 ? :
13 0 2 unless defined $$self{'separator'}
14 1 1 unless defined $$self{'link_last'} and $$self{'link_last'} =~ /^(0|1)$/
15 2 0 unless defined $$self{'link'} and $$self{'link'} =~ /^(0|1)$/
17 1 1 if ($$self{'path'})
32 0 0 if $$self{'base_url'}
36 0 0 unless exists ${@{$$self{'elems'};};}[$i]{'name'} and ${@{$$self{'elems'};};}[$i]{'name'} ne ''
38 0 0 if $i > 0
40 0 0 unless ($$wrap{'tag'} =~ /^a$/i and $i == $#{@{$$self{'elems'};};} && !$$self{'link_last'} || !$$self{'link'})
41 0 0 ${@{$$self{'elems'};};}[$i]{'append'} ? :
0 0 $_ =~ /^href$/i ? :
0 0 $$wrap{'attr'} ? :
52 2 0 unless defined $args{'position'}
59 0 0 unless defined $args{'position'}