Branch Coverage

blib/lib/Catmandu/Interactive.pm
Criterion Covered Total %
branch 18 28 64.2


line true false branch
69 3 7 if ($line =~ /^\\(.*)/)
70 0 3 if length $buffer
74 1 2 if ($command eq 'h') { }
1 1 elsif ($command eq 'r') { }
1 0 elsif ($command eq 'q') { }
80 1 0 if (@{$self->_history;} > 0) { }
98 0 8 if length $buffer
100 8 0 if (length $line)
104 2 6 if ($error) { }
6 0 elsif ($keep_reading == 0) { }
137 0 5 unless $self->silent
142 0 2 unless $self->silent
149 0 14 unless $self->silent
176 0 2 if (ref $_ eq 'Catmandu::FixParseError' and $_->message =~ /Can't use an undefined value as a SCALAR reference at/) { }