Branch Coverage

blib/lib/Email/MIME/RFC2047/Address.pm
Criterion Covered Total %
branch 15 18 83.3


line true false branch
24 19 17 ref $string ? :
28 9 27 if ($$string_ref =~ /\G\s*($addr_spec_re)\s*/cg) { }
35 17 10 if ($$string_ref =~ /\G<\s*($addr_spec_re)\s*>\s*/cg) { }
8 2 elsif ($$string_ref =~ /\G:/cg) { }
42 15 2 if $name ne ''
45 0 8 if $name eq ''
50 2 6 if ($$string_ref =~ /\G\s*;\s*/cg) { }
58 0 4 unless $$string_ref =~ /\G;\s*/cg
72 0 32 if (not ref $string and pos $string < length $string)