Branch Coverage

lib/Smartcat/App/Utils.pm
Criterion Covered Total %
branch 16 20 80.0


line true false branch
35 8 1 if $project_workdir_name ne ''
39 29 1 if $_ eq $result[0]
62 3 2 if ($should_extract_file_id)
64 2 1 if ($filename =~ /^(.+)---([^\.].+?)$/)
77 4 2 if ($should_extract_file_id)
79 4 0 if ($filename =~ /^(.+)---([^\.].+?)$/)
92 4 1 if ($name =~ /^(.+)---([^\.].+?)(\..+)?$/)
153 0 0 unless open my $fh, '>', $filepath
165 0 3 unless open my $fh, $filepath
173 1 2 if ($text =~ /msgid "[^"]/s)