Branch Coverage

blib/lib/Template/Plugin/LinkTo.pm
Criterion Covered Total %
branch 20 20 100.0


line true false branch
11 91 74 unless my $str = shift()
19 1 24 $$opt{'img'} ? :
22 21 4 if (my $href = escape($$opt{'href'}))
23 11 10 ($$opt{'target'} = escape($$opt{'target'})) ? :
26 5 16 ($$opt{'confirm'} = escape($$opt{'confirm'})) ? :
29 1 20 ($$opt{'title'} = escape($$opt{'title'})) ? :
32 1 20 ($$opt{'class'} = escape($$opt{'class'})) ? :
35 1 20 ($$opt{'rel'} = escape($$opt{'rel'})) ? :
47 11 10 if ($params)
50 5 6 unless $href =~ /\?/