Branch Coverage

blib/lib/Mojolicious/Command/generate/lexicont.pm
Criterion Covered Total %
branch 29 42 69.0


line true false branch
30 2 12 if ($arg_num < 2)
37 12 0 if (ref $self->app eq 'CODE') { }
54 1 10 unless (-e $org_file or -e $src_file)
62 11 0 if (-e $src_file)
68 0 11 if ($@)
78 1 10 if ($@)
84 1 9 if (-e $org_file) { }
91 0 1 if ($@)
98 1 3 if (defined $srclex{$key} and $orglex{$key} ne $srclex{$key})
108 0 3 if (-e $dest_file)
114 0 0 if ($@)
122 6 0 if (not defined $srclex{$key} or defined $changes{$key} and $changes{$key} == 1) { }
134 3 0 if (defined $$conf{'json'} and $$conf{'json'} == 1)
144 0 2 utf8::is_utf8($orglex{$_}) ? :
149 1 0 if (defined $$conf{'json'} and $$conf{'json'} == 1)
172 8 2 if (defined $$conf{'json'} and $$conf{'json'} == 1)
183 6 2 if (defined $$conf{'json'} and $$conf{'json'} == 1)
187 0 12 utf8::is_utf8($srclex{$_}) ? :
214 1 26 if ($@)
222 0 24 if (defined $self->conf->{'sleep'})
226 2 24 if ($@)