Branch Coverage

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


line true false branch
196 0 45 if (my $log = $$config{'log'})
197 0 0 if $$log{'level'}
198 0 0 if $$log{'file'} ||= $$log{'path'} || $ENV{'CONVOS_FRONTEND_LOGFILE'}
208 2 43 if $ENV{'CONVOS_BACKEND_ONLY'}
212 1 42 if $ENV{'CONVOS_SECURE_COOKIES'}
217 0 43 if (not $ENV{'CONVOS_INVITE_CODE'} and $$config{'invite_code'})
222 1 42 if ($ENV{'CONVOS_TEMPLATES'})
232 2 41 if $ENV{'CONVOS_BACKEND_EMBEDDED'}
272 0 4 if (my $base = $c->req->headers->header('X-Request-Base'))
275 0 4 if (not $c->app->config->{'hostname_is_set'}++)
282 0 45 $ENV{'MOJO_CONFIG'} ? :
285 0 45 if $ENV{'CONVOS_FRONTEND_PID_FILE'}
286 0 45 if $ENV{'RUN_AS_GROUP'}
287 0 45 if $ENV{'RUN_AS_USER'}
288 2 43 if $ENV{'CONVOS_ORGANIZATION_NAME'}
296 2 1 if $SIG{'USR2'}
302 0 1 if ($backend->pid and $backend->pid_running) { }
318 0 45 if -d $self->home->rel_dir('templates')
371 159 7 unless $url = $ENV{$k}
376 38 7 unless ($url)
377 0 38 if ($self->config('redis')) { }
1 37 elsif ($self->mode eq 'production') { }
392 1 7 if $ENV{'CONVOS_REDIS_INDEX'} and not $url->path->[0]
412 0 0 if $secrets and @$secrets
413 0 0 if $locked
426 1 13 if $pid_file and -r $pid_file