Branch Coverage

lib/Serge/Sync/Plugin/TranslationService/zanata.pm
Criterion Covered Total %
branch 30 36 83.3


line true false branch
70 1 10 unless defined $self->{'data'}{'project_config'}
71 1 9 unless -f $self->{'data'}{'project_config'}
73 5 4 if (defined $self->{'data'}{'cache_dir'})
74 2 3 unless -d $self->{'data'}{'cache_dir'}
77 2 5 if (defined $self->{'data'}{'user_config'})
78 1 1 unless -f $self->{'data'}{'user_config'}
81 2 4 unless (defined $self->{'data'}{'push_type'})
85 1 5 if ($self->{'data'}{'push_type'} ne 'both' and $self->{'data'}{'push_type'} ne 'source')
97 2 8 if (defined $self->{'data'}{'user_config'})
101 2 8 if ($langs)
109 0 2 if (defined $self->{'data'}{'debug'} and $self->{'data'}{'debug'})
113 0 2 if (defined $self->{'data'}{'errors'} and $self->{'data'}{'errors'})
117 0 2 if (defined $self->{'data'}{'disable_ssl_cert'} and $self->{'data'}{'disable_ssl_cert'})
121 0 2 if (defined $self->{'data'}{'dry_run'} and $self->{'data'}{'dry_run'})
144 3 2 if (defined $self->{'data'}{'cache_dir'})
148 0 1 if (defined $self->{'data'}{'use_cache'} and $self->{'data'}{'use_cache'})
152 0 1 if (defined $self->{'data'}{'purge_cache'} and $self->{'data'}{'purge_cache'})
164 1 4 if (defined $self->{'data'}{'file_types'})