Branch Coverage

blib/lib/Convos.pm
Criterion Covered Total %
branch 33 52 63.4


line true false branch
201 0 45 if (my $log = $$config{'log'})
202 0 0 if $$log{'level'}
203 0 0 if $$log{'file'} ||= $$log{'path'} || $ENV{'CONVOS_FRONTEND_LOGFILE'}
212 2 43 if $ENV{'CONVOS_BACKEND_ONLY'}
216 1 42 if $ENV{'CONVOS_SECURE_COOKIES'}
221 0 43 if (not $ENV{'CONVOS_INVITE_CODE'} and $$config{'invite_code'})
226 1 42 if ($ENV{'CONVOS_TEMPLATES'})
236 2 41 if $ENV{'CONVOS_BACKEND_EMBEDDED'}
276 0 4 if (my $base = $c->req->headers->header('X-Request-Base'))
279 0 4 if (not $c->app->config->{'hostname_is_set'}++)
286 0 45 $ENV{'MOJO_CONFIG'} ? :
289 0 45 if $ENV{'CONVOS_FRONTEND_PID_FILE'}
290 0 45 if $ENV{'RUN_AS_GROUP'}
291 0 45 if $ENV{'RUN_AS_USER'}
292 2 43 if $ENV{'CONVOS_ORGANIZATION_NAME'}
300 2 1 if $SIG{'USR2'}
306 0 1 if ($backend->pid and $backend->pid_running) { }
322 0 45 if -d $self->home->rel_dir('templates')
376 159 7 unless $url = $ENV{$k}
381 38 7 unless ($url)
382 0 38 if ($self->config('redis')) { }
1 37 elsif ($self->mode eq 'production') { }
397 1 7 if $ENV{'CONVOS_REDIS_INDEX'} and not $url->path->[0]
417 0 0 if $secrets and @$secrets
418 0 0 if $locked
431 1 13 if $pid_file and -r $pid_file