Branch Coverage

lib/Badger/Logic.pm
Criterion Covered Total %
branch 25 40 62.5


line true false branch
48 2 1 @_ ? :
55 0 26 unless defined $text
57 0 26 ref $text ? :
64 21 0 @_ && ref $_[0] eq 'HASH' ? :
85 22 0 ref $text ? :
90 0 22 if ($$tref =~ / \G \s* (.+) $/cgisx)
103 35 38 if ($$text =~ / \G \s+ (and|or) \s+ /cgix) { }
0 38 elsif ($$text =~ / \G \s* \( /cgx) { }
105 0 35 if $Badger::Logic::DEBUG
113 0 0 unless $$text =~ / \G \s* \) /cgx
126 13 60 if ($$text =~ / \G \s* (not) \s+ /cgix)
128 0 13 if $Badger::Logic::DEBUG
141 54 19 if ($$text =~ / \G \s* (\w+) /cgix) { }
3 16 elsif ($$text =~ / \G \s* (['"]) ((?:\\?.)*?) \1 /cgix) { }
16 0 elsif ($$text =~ / \G \s* \( /cgx) { }
142 0 54 if $Badger::Logic::DEBUG
146 0 3 if $Badger::Logic::DEBUG
152 0 16 unless $$text =~ / \G \s* \) /cgx
178 41 0 @_ && ref $_[0] eq 'HASH' ? :
191 7 5 $self->[0]->evaluate(@_) ? :