Branch Coverage

blib/lib/Macro/Simple.pm
Criterion Covered Total %
branch 21 36 58.3


line true false branch
47 0 2 if ('HASH' eq ref $generator and $generator->{'is'}) { }
0 2 elsif ('HASH' eq ref $generator and $generator->{'assert'}) { }
1 1 elsif (not ref $generator) { }
107 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')) { }
115 0 2 unless defined $args[-1]
117 2 0 if ($prototype =~ /\A\((.+)\)\z/)
126 1 4 if (/\A;/)
132 0 4 if (/\A\\/)
137 0 4 if (/\A\[(.+?)\]/) { }
146 3 1 unless ($saw_semicolon)
147 0 3 unless $#args >= $i
152 0 4 if ($backslashed and $chars eq '@') { }
0 4 elsif ($backslashed and $chars eq '%') { }
0 4 elsif ($chars =~ /[\@%]/) { }
153 0 0 unless $arg =~ /\A\s*\@/
157 0 0 unless $arg =~ /\A\s*\%/
167 0 2 if ($#args >= $i and not $saw_slurpy)