Branch Coverage

blib/lib/Locale/KeyedText.pm
Criterion Covered Total %
branch 52 74 70.2


line true false branch
39 49 47 if scalar @_
52 49 45 if scalar @_
79 26 0 if (@args == 1 and ref $args[0] eq 'HASH') { }
0 0 elsif (scalar @args % 2 == 0) { }
99 7 19 unless (defined $msg_vars_ref)
152 37 0 defined $msg_vars->{$_} ? :
168 12 1 defined $msg_vars->{$_} ? :
184 2 29 unless defined $val
187 2 27 if $val eq $EMPTY_STR
194 0 24 unless defined $val
197 0 24 if ref $val ne 'HASH'
202 1 23 if exists $val->{$EMPTY_STR}
228 46 53 if scalar @_
240 46 41 if scalar @_
267 25 0 if (@args == 1 and ref $args[0] eq 'HASH') { }
0 0 elsif (scalar @args % 2 == 0) { }
288 5 20 if (ref $set_names_ref ne 'ARRAY')
291 5 20 if (ref $member_names_ref ne 'ARRAY')
386 4 19 unless ($module_is_loaded)
391 0 4 if $@
401 5 18 unless defined $text
433 0 4 if $@
455 0 23 if $@
466 0 18 unless defined $text
474 18 1 defined $var_value ? :
496 0 73 unless defined $val
499 0 73 if $val eq $EMPTY_STR
506 0 48 unless defined $val
509 0 48 if ref $val ne 'ARRAY'
514 2 46 if @{$val;} == 0
516 2 58 unless defined $val_elem
519 0 58 if $val_elem eq $EMPTY_STR
527 0 18 unless defined $val
530 0 18 if ref $val ne 'HASH'
535 0 18 if exists $val->{$EMPTY_STR}
540 0 21 unless defined $val
543 2 19 if not &blessed($val) && $val->isa('Locale::KeyedText::Message')