| scripts/jsonvalidate | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 10 | 74 | 13.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 131 | 0 | 0 | 0 | $main::opts->{$action} and $action_found |
| 0 | 0 | 0 | $main::opts->{$action} and $action_found and $action_found ne $action | |
| 0 | 0 | 0 | $main::opts->{$action} and not length $action_found | |
| 167 | 1 | 0 | 0 | exists $dict->{$action_found}{'code'} && ref $dict->{$action_found}{'code'} eq 'CODE' |
| 215 | 1 | 0 | 0 | not defined $main::opts->{'schema_base'} and defined $root_schema_path |
| 265 | 0 | 1 | 0 | ref $s eq "HASH" and defined $s->{'$id'} |
| 279 | 0 | 0 | 0 | defined $fragment && length $fragment |
| 290 | 0 | 0 | 0 | $main::opts->{'allow_file_refs'} and defined $main::opts->{'schema_base'} |
| 335 | 0 | 0 | 0 | $path->exists and $path->is_file |
| 465 | 0 | 0 | 1 | length($exit // "") and $exit =~ /^\d+$/u |
| 514 | 0 | 0 | 1 | defined $p and $p->exists |
| 533 | 0 | 0 | 0 | -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT)) |
| line | l | !l | condition |
|---|---|---|---|
| 90 | 1 | 0 | 'Getopt::Class'->new({'dictionary', $dict}) || die('Error instantiating Getopt::Class object: ', 'Getopt::Class'->error, "\n") |
| 93 | 1 | 0 | $opt->exec || die('An error occurred executing Getopt::Class: ', $opt->error, "\n") |
| 322 | 0 | 0 | $main::opts->{'remote_refs'} // 0 |
| 465 | 1 | 0 | $exit // "" |
| 559 | 0 | 0 | $obj->can($colour) || die("Colour '${colour}' is unsupported by Term::ANSIColor::Simple") |
| 565 | 0 | 0 | (caller 1)[3] || '' |
| 567 | 0 | 0 | (caller $frame + 1)[3] // "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 278 | 0 | 0 | 0 | $doc_uri //= $abs_uri |
| 282 | 0 | 0 | 0 | exists $by_id{$abs_uri} or exists $by_id{$doc_uri} |
| 284 | 0 | 0 | 0 | $by_id{$abs_uri} // $by_id{$doc_uri} |
| 319 | 0 | 0 | 0 | $has_fragment || $main::opts->{'remote_refs'} |
| 431 | 0 | 1 | 0 | $main::opts->{'quiet'} || $main::opts->{'json'} |
| 547 | 5 | 0 | 0 | not $LOG_LEVEL or $LOG_LEVEL < $required_level |
| 632 | 0 | 0 | 0 | $main::opts->{'quiet'} or $main::opts->{'errors_only'} |
| 0 | 0 | 0 | $main::opts->{'quiet'} or $main::opts->{'errors_only'} or $main::opts->{'emit_js'} |