Branch Coverage

blib/lib/Mail/Alias/Reader/Parser.pm
Criterion Covered Total %
branch 42 42 100.0


line true false branch
24 11 19 if $token->isa('T_BEGIN', 'T_COMMENT', 'T_WHITESPACE')
26 9 10 if ($token->is_value) { }
6 4 elsif ($token->isa('T_COMMA')) { }
27 1 8 if $last_token->is_value
32 1 5 unless $last_token->is_value or $last_token->isa('T_COMMA')
35 1 3 unless $token->isa('T_END')
41 1 3 unless @destinations
53 50 102 if $token->isa('T_BEGIN', 'T_COMMENT', 'T_WHITESPACE')
55 22 80 if ($last_token->isa('T_BEGIN')) { }
20 60 elsif ($token->isa('T_COLON')) { }
20 40 elsif ($token->isa('T_COMMA')) { }
13 27 elsif ($token->isa('T_END')) { }
26 1 elsif ($token->is_value) { }
56 2 20 unless $token->is_address
59 2 18 unless $last_token->is_address
60 2 16 if $name
65 2 18 unless $last_token->is_value or $last_token->isa('T_COMMA')
68 2 11 unless $last_token->is_value or $last_token->isa('T_COMMA')
82 2 9 unless defined $name
91 6 22 if $mode eq 'forward'
92 21 1 if $mode eq 'aliases'