Branch Coverage

blib/lib/Template/Plugin/Filter/IDN.pm
Criterion Covered Total %
branch 7 8 87.5


line true false branch
40 2 11 unless (defined $type)
41 1 1 $text =~ /[^ -~\s]/ ? :
44 6 7 if (&any(sub { $_ eq $type; } , 'encode', 'to_ascii')) { }
7 0 elsif (&any(sub { $_ eq $type; } , 'decode', 'to_utf8')) { }