Branch Coverage

blib/lib/Tangerine/hook/mooselike.pm
Criterion Covered Total %
branch 15 18 83.3


line true false branch
14 6 146 if ($self->type eq 'compile' and $s->[0] eq 'use' and scalar @$s > 1 and &any(sub { $s->[1] eq $_; } , 'Moose', 'Mouse', 'Moo', 'Mo')) { }
7 261 elsif ($self->type eq 'runtime' and &any(sub { $s->[0] eq $_; } , 'extends', 'with')) { }
22 1 6 if (scalar @$s > 2 and &none(sub { $s->[2] eq $_; } , '=>', ',', ';'))
29 6 16 if &any(sub { $s->[$i] eq $_; } , '=>', ',')
30 6 10 if $s->[$i] eq ';'
31 0 10 if substr($s->[$i], 0, 1) eq '('
32 6 4 if (substr($s->[$i], 0, 1) ne '{') { }
37 0 4 unless $last
39 4 0 if $s->[$i] =~ /^\{.*-version\s*?(=>|,)\s*?((qq?\s*?[^\w]\s*)|'|")?v? (?\d+?(\.\d+)*)((\s*?[^\w])|'|")?.*\}\s*$/osx