Branch Coverage

lib/Serge/Sync/Plugin/TranslationService/weblate.pm
Criterion Covered Total %
branch 21 42 50.0


line true false branch
49 1 4 unless -d $self->{'data'}{'root_directory'}
50 1 3 unless defined $self->{'data'}{'config_file'}
51 0 3 unless -f $self->{'data'}{'config_file'}
52 1 2 unless defined $self->{'data'}{'project'}
54 0 1 if (not exists $self->{'data'}{'languages'} or scalar @{$self->{'data'}{'languages'};} == 0)
71 0 2 unless (-d $folder_path)
77 0 2 if ($cli_return != 0)
95 2 0 if (-f $full_path)
98 0 2 if ($self->{'data'}{'fuzzy'})
105 0 2 if ($cli_return != 0)
138 4 8 if (exists $langs_hash{$language_code})
150 2 0 unless ($langs)
172 4 4 if ($capture)
176 4 0 if ($json_response == '')
188 0 0 if (&reftype($json_tree) == 'ARRAY')
194 0 0 if ($result == 'true')
204 4 0 if (&reftype($json_tree) == 'ARRAY')
217 0 0 if -f $_
230 0 4 if ($@ or not $tree)
232 0 0 if ($error_text) { }
248 0 0 unless ($langs)