Branch Coverage

blib/lib/Mojolicious/Plugin/Localize/Command/localize.pm
Criterion Covered Total %
branch 25 32 78.1


line true false branch
34 1 8 unless $self->lang
61 1 7 if (-e $output) { }
7 0 elsif ($self->write_rel_file($output, encode('UTF-8', $data))) { }
75 90 64 if (not ref $dict or ref $dict eq 'SCALAR' or ref $dict eq 'CODE') { }
0 64 elsif (ref $dict eq 'ARRAY') { }
81 52 38 unless grep /[\*\+]/u, @elements
104 22 2 if ($loc_act = $dict->{'_'} and ref $loc_act eq "CODE" and $loc_act = $dict->{'_'}->($self->controller) and ref $loc_act eq "ARRAY" and $loc_act->[0] eq $SPECIAL)
111 8 14 if (exists $$dict{$self->lang})
132 21 1 if ($$dict{$self->base}) { }
0 2 elsif ($dict->{'-'} and $$dict{$dict->{'-'}}) { }
142 1 21 unless ($locale_example)
163 140 10 if $_ ne "-"
166 10 107 if ($dict->{'-'} and $_ eq $dict->{'-'}) { }
229 0 18 if (not ref $value) { }
18 0 elsif (ref $value eq 'SCALAR') { }
0 0 elsif (ref $value eq 'CODE') { }