Branch Coverage

blib/lib/String/Replace/Safe.pm
Criterion Covered Total %
branch 20 32 62.5


line true false branch
19 3 10 if (@_ == 1 and ref $_[0] and reftype($_[0]) eq 'HASH') { }
0 10 elsif (@_ == 1 and ref $_[0] and reftype($_[0]) eq 'ARRAY') { }
22 0 0 if @{$_[0];} & 1
25 0 10 if @_ & 1
41 2 2 if (@_ == 1 and ref $_[0] and reftype($_[0]) eq 'HASH') { }
0 2 elsif (@_ == 1 and ref $_[0] and reftype($_[0]) eq 'ARRAY') { }
44 0 0 if @{$_[0];} & 1
47 0 2 if @_ & 1
53 0 8 ref $val && reftype $val eq 'ARRAY' ? :
100 5 7 if (wantarray) { }
6 1 elsif (defined wantarray) { }
103 6 0 @_ ? :
123 0 17 unless @_
125 10 7 if (blessed($_[0]) and $_[0]->isa('String::Replace::Safe')) { }
133 0 4 unless @_
135 2 2 if (blessed($_[0]) and $_[0]->isa('String::Replace::Safe')) { }