Branch Coverage

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


line true false branch
48 1 4 unless -d $self->{'data'}{'root_directory'}
49 1 3 unless defined $self->{'data'}{'config_file'}
50 0 3 unless -f $self->{'data'}{'config_file'}
51 1 2 unless defined $self->{'data'}{'project'}
53 0 1 if (not exists $self->{'data'}{'languages'} or scalar @{$self->{'data'}{'languages'};} == 0)
70 0 2 unless (-d $folder_path)
76 0 2 if ($cli_return != 0)
94 2 0 if (-f $full_path)
97 0 2 if ($self->{'data'}{'fuzzy'})
104 0 2 if ($cli_return != 0)
137 4 8 if (exists $langs_hash{$language_code})
149 2 0 unless ($langs)
171 4 4 if ($capture)
175 4 0 if ($json_response == '')
187 0 0 if (&reftype($json_tree) == 'ARRAY')
193 0 0 if ($result == 'true')
203 4 0 if (&reftype($json_tree) == 'ARRAY')
216 0 0 if -f $_
229 0 4 if ($@ or not $tree)
231 0 0 if ($error_text) { }
247 0 0 unless ($langs)