| line | % | coverage | condition |
| 2735 | 100 | | $cache_conf->{'driver'} // "Memory" |
| 2742 | 50 | | $app->config("model_dir") // ".bi" |
| 2792 | 100 | | defined $self->config("ai_calls_per_hour") and not $self->config("ai_calls_per_hour") =~ /\A[0-9]+\z/u |
| 2806 | 100 | | $ENV{'MOJO_MAX_LINE_SIZE'} ||= 262144 |
| 2807 | 100 | | $ENV{'MOJO_LISTEN'} // "" |
| 2815 | 67 | | ref $secrets eq 'ARRAY' && @{$secrets;} |
| 2822 | 67 | | $self->config("login_expiration") // $DEFAULT_LOGIN_EXPIRATION |
| 2842 | 50 | | $ENV{'HOME'} // "" |
| 2843 | 33 | | $home || 'File::Spec'->tmpdir |
| 33 | | $home && -d "$home/Downloads" |
| 2846 | 100 | | ref $exports eq "ARRAY" and @{$exports;} |
| 2850 | 33 | | (-e "$dir" ? Database::BI::Controller::Dashboard::_resolved_path("$dir") : undef) // "$dir" |
| 2905 | 50 | | $self->config->{'page_cache_duration'} // "5 minutes" |
| 2945 | 100 | | Database::BI::Controller::Dashboard::request_refusal($c) // (return) |
| 3003 | 100 | | $headers->content_type // "" |
| 3028 | 100 | | defined $policy and not defined $headers->header($name) |
| 3038 | 100 | | defined $enforced and $enforced =~ /(?:\A|;)\s*frame-ancestors\b/iu |
| 3087 | 100 | | $c->param("jtype") // "" |
| 3099 | 50 | | $c->app->config("mariadb_servers") // {} |
| 100 | | $c->param("srccol") // "" |
| 3116 | 100 | | $conf->{'platform'} // "web" |
| 3117 | 50 | | $c->stash("language") // "" |
| 3118 | 33 | | $language =~ /\A[a-z]{2}(?:[-_][A-Za-z]{2})?\z/u and -d $c->app->home->child("templates/$platform/$language") |
| 100 | | $conf->{'language'} // "en" |
| 3131 | 100 | | $args->{'status'} // 0 |
| 3132 | 100 | | $c->req->headers->accept // "" |
| 80 | | A | B | C | D | E | F | dec |
|---|
| 0 | X | X | X | X | X | 0 | | 1 | 0 | 0 | X | X | X | 0 | | 1 | 0 | 1 | 0 | X | X | 0 | | 1 | 0 | 1 | 1 | 0 | X | 0 | | 1 | 0 | 1 | 1 | 1 | 0 | 0 | | 1 | 0 | 1 | 1 | 1 | 1 | 1 | | 1 | 1 | X | 0 | X | X | 0 | | 1 | 1 | X | 1 | 0 | X | 0 | | 1 | 1 | X | 1 | 1 | 0 | 0 | | 1 | 1 | X | 1 | 1 | 1 | 1 |
| defined $args->{'text'} and $status == 400 || $status == 403 and $c->req->method eq "GET" and ($c->req->headers->accept // "") =~ m[\btext/html\b]u and not $c->req->url->path->to_string =~ m[\A/api/]u |
| 3151 | 67 | | defined $args->{'text'} and not defined $c->stash("format") |
| 50 | | $args->{'format'} //= "txt" |
| 3154 | 100 | | $c->app->config("ai_api_key") // "" |
| 3161 | 67 | | defined $d3_url && !ref($d3_url) && length $d3_url |
| 3170 | 100 | | $args->{'template'} // "" |
| 3172 | 33 | | $args->{'columns'} // $c->stash("columns") |
| 3173 | 33 | | $args->{'records'} // $c->stash("records") |
| 3177 | 100 | | ref $active eq "HASH" and not grep({$_ eq $active->{'col'};} @time) |
| 3181 | 33 | | $args->{'title'} // $c->stash("title") |
| 3189 | 67 | | ($args->{'template'} // "") =~ /\Anot_found\.\w+\z/u and (($args->{'format'} // $c->stash("format")) // "html") eq "html" |
| 100 | | $args->{'template'} // "" |
| 33 | | $args->{'format'} // $c->stash("format") |
| 50 | | ($args->{'format'} // $c->stash("format")) // "html" |
| 3235 | 100 | | $self->config->{'data_dir'} // "data" |
| 3244 | 50 | | $self->config->{'cache'} // {} |
| 3245 | 33 | | $cache_conf->{'ttl_url'} // $DEFAULT_CACHE_TTL_URL |
| 3247 | 50 | | $cache_conf->{'driver'} // "Memory" |
| 3264 | 50 | | $c->app->config("url_private_hosts") // [] |
| 3283 | 0 | | $c->app->config("mariadb_servers") // {} |
| 3414 | 100 | | defined $dir and not ref $dir and length $dir |
| 3436 | 50 | | (stat $entry)[9] // 0 |
| 3455 | 50 | | $config // {} |
| 3457 | 100 | | ref $value or not length $value or $value eq 0 |
| 3468 | 100 | | A | B | C | D | dec |
|---|
| 0 | 0 | X | X | 0 | | 0 | 1 | 0 | 0 | 0 | | 0 | 1 | 0 | 1 | 1 | | 0 | 1 | 1 | X | 1 | | 1 | X | X | X | 1 |
| not defined $value or not ref $value and !length($value) || $value eq '0' || $COOP_VALUES{$value} |
| 3483 | 100 | | $config // {} |
| 3485 | 100 | | ref $value or not length $value or $value eq 0 |
| 3497 | 100 | | not defined $value or not ref $value and $value =~ /\A(?:[\x20-\x7e]*)\z/u |
| 3521 | 50 | | $c->req->url->to_abs->host // "" |
| 3522 | 86 | | A | B | C | D | E | F | dec |
|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 0 | 1 | 1 | | 0 | 0 | 0 | 0 | 1 | X | 1 | | 0 | 0 | 0 | 1 | X | X | 1 | | 0 | 0 | 1 | X | X | X | 1 | | 0 | 1 | X | X | X | X | 1 | | 1 | X | X | X | X | X | 1 |
| $host eq "" or $host eq "localhost" or $host =~ /\.localhost\z/u or $host =~ /\A\d{1,3}(?:\.\d{1,3}){3}\z/u or $host =~ /:/u or $host =~ /\A\[/u |
| 3527 | 100 | | ref $value or not length $value or $value eq 0 |
| 3538 | 100 | | A | B | C | D | dec |
|---|
| 0 | 0 | X | X | 0 | | 0 | 1 | 0 | 0 | 0 | | 0 | 1 | 0 | 1 | 1 | | 0 | 1 | 1 | X | 1 | | 1 | X | X | X | 1 |
| not defined $value or not ref $value and !length($value) || $value eq '0' |
| 3539 | 100 | | not ref $value and $value =~ /$HSTS_RE/u |
| 3555 | 100 | | defined $hash and not ref $hash and length $hash |
| 3556 | 100 | | ref $dirs eq "ARRAY" and @{$dirs;} |
| 3571 | 100 | | defined $hash and ref $hash || length $hash |
| 3576 | 100 | | ref $expiration || $expiration |
| 100 | | defined $expiration and ref $expiration || !($expiration =~ /\A[0-9]+\z/u) || $expiration < 60 |
| 3596 | 100 | | defined $hash and length $hash |
| 3600 | 50 | | $listen // "" |
| 3602 | 50 | | $ENV{'HYPNOTOAD_APP'} and ref $hypnotoad eq "HASH" and ref $hypnotoad->{'listen'} eq "ARRAY" |
| 3604 | 50 | | "Mojo::URL"->new($place)->host // "" |
| 3605 | 80 | | A | B | C | D | dec |
|---|
| 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 1 | 1 | | 0 | 0 | 1 | X | 1 | | 0 | 1 | X | X | 1 | | 1 | X | X | X | 1 |
| $host eq "localhost" or $host =~ /\A127\./u or $host eq "[::1]" or $host eq "::1" |
| 3629 | 100 | | (ref $name || $name) // "undef" |
| 100 | | defined $name and not ref $name and $name =~ /\A(?:\*\.)?[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?(?:\.[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?)+\z/u |
| 100 | | ref $name || $name |
| 3654 | 50 | | $@ // "unknown error" |
| 3669 | 50 | | defined $every and ref $every || length $every |
| 3687 | 100 | | defined $value and ref $value || length $value |
| 3709 | 100 | | (ref $root || $root) // "undef" |
| 100 | | defined $root and not ref $root and length $root |
| 100 | | ref $root || $root |
| 3729 | 100 | | (ref $dir || $dir) // "undef" |
| 100 | | defined $dir and not ref $dir and length $dir |
| 100 | | ref $dir || $dir |
| 3735 | 67 | | ref $roots eq "ARRAY" and @{$roots;} |
| 3742 | 67 | | /\A\./u and $_ ne "." |
| 3761 | 100 | | (ref $name || $name) // "undef" |
| 100 | | defined $name and not ref $name and $name =~ /\A(?:\*|(?:\*\.)?[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?(?:\.[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?)*)\z/u |
| 100 | | ref $name || $name |
| 3785 | 100 | | (ref $location || $location) // "undef" |
| 100 | | defined $location and not ref $location and $location =~ m[\Ahttps?://[^\s,]+\z]u |
| 100 | | ref $location || $location |
| 3803 | 100 | | $config->{'hypnotoad'} //= {} |
| 3805 | 100 | | $hypnotoad->{'listen'} //= [$DEFAULT_HYPNOTOAD_LISTEN] |
| 3846 | 50 | | $config //= {} |
| 3847 | 33 | | defined $nonce and $nonce =~ /$NONCE_RE/u |
| 3850 | 67 | | defined $set and not ref $set |
| 3851 | 100 | | length $set and $set ne 0 |
| 3852 | 50 | | $nonce // "" |
| 3859 | 50 | | defined $url and not ref $url and length $url |
| 3897 | 50 | | $framers // [] |
| 3911 | 50 | | $config // {} |
| 3912 | 67 | | defined $value && !ref($value) |
| 3925 | 100 | | ref $value and ref $value ne "ARRAY" |
| 3929 | 100 | | $entry // "undef" |
| 3947 | 67 | | defined $entry and not ref $entry |
| 3954 | 50 | | defined $port and $port == 0 || $port > 65535 |
| 3973 | 100 | | defined $url and not ref $url and length $url |
| 3980 | 100 | | $scheme // "" |
| 3981 | 100 | | length $scheme and not $scheme =~ /\Ahttps?\z/u |
| 3989 | 67 | | @labels > 1 and $labels[0] =~ /\{/u |
| 3991 | 100 | | $i == 0 and $labels[0] eq "*" |