Branch Coverage

blib/lib/Macro/Simple.pm
Criterion Covered Total %
branch 20 36 55.5


line true false branch
29 0 0 if ("HASH" eq ref $generator and $generator->{'is'})
33 0 2 if ('HASH' eq ref $generator and $generator->{'assert'}) { }
1 1 elsif (not ref $generator) { }
88 2 6 if ($t->isa('PPI::Token::Operator') and $t =~ /\A(,|\=\>)\z/) { }
4 2 elsif (defined $args[-1] or not $t->isa('PPI::Token::Whitespace')) { }
96 0 2 unless defined $args[-1]
98 2 0 if ($prototype =~ /\A\((.+)\)\z/)
107 1 4 if (/\A;/)
113 0 4 if (/\A\\/)
118 0 4 if (/\A\[(.+?)\]/) { }
127 3 1 unless ($saw_semicolon)
128 0 3 unless $#args >= $i
133 0 4 if ($backslashed and $chars eq '@') { }
0 4 elsif ($backslashed and $chars eq '%') { }
0 4 elsif ($chars =~ /[\@%]/) { }
134 0 0 unless $arg =~ /\A\s*\@/
138 0 0 unless $arg =~ /\A\s*\%/
148 0 2 if ($#args >= $i and not $saw_slurpy)