line |
true |
false |
branch |
115
|
4 |
51 |
unless -d $self->test_dir
|
120
|
4 |
52 |
ref $_[0] eq 'CODE' ? :
|
123
|
0 |
7 |
unless $options->{'validate_data'} or $options->{'validate_json_string'}
|
126
|
0 |
49 |
if $options->{'validate_data'} and $options->{'validate_json_string'}
|
128
|
5 |
51 |
if $options->{'skip_tests'}
|
132
|
1 |
55 |
if ($options->{'add_resource'} and -d $self->additional_resources)
|
137
|
1 |
2 |
unless $path->is_file and $path =~ /\.json$/u
|
147
|
27 |
29 |
$self->_has_specification ? :
|
159
|
3 |
20 |
ref $options->{'tests'}{'file'} eq 'ARRAY' ? :
|
|
11 |
21 |
if $options->{'tests'} and $options->{'tests'}{'file'} and not grep(($_ eq $one_file->{'file'}), ref $options->{'tests'}{'file'} eq "ARRAY" ? @{$$options{"tests"}{"file"}} : $options->{'tests'}{'file'})
|
167
|
3 |
35 |
ref $options->{'tests'}{'group_description'} eq 'ARRAY' ? :
|
|
24 |
29 |
if $options->{'tests'} and $options->{'tests'}{'group_description'} and not grep(($_ eq $test_group->{'description'}), ref $options->{'tests'}{'group_description'} eq "ARRAY" ? @{$$options{"tests"}{"group_description"}} : $options->{'tests'}{'group_description'})
|
178
|
28 |
19 |
if !$o->{'file'} || grep(($_ eq $one_file->{'file'}), ref $o->{'file'} eq 'ARRAY' ? @{$$o{'file'}} : $o->{'file'}) and !$o->{'group_description'} || grep(($_ eq $test_group->{'description'}), ref $o->{'group_description'} eq 'ARRAY' ? @{$$o{'group_description'}} : $o->{'group_description'})
|
179
|
16 |
785 |
if $options->{'todo_tests'} and &any(sub {
|
182
|
0 |
801 |
if ($self->test_schemas)
|
183
|
0 |
0 |
unless $self->_has_specification
|
190
|
0 |
0 |
$options->{'validate_data'} ? :
|
191
|
0 |
0 |
unless ($result)
|
202
|
33 |
15 |
ref $options->{'tests'}{'test_description'} eq 'ARRAY' ? :
|
|
31 |
57 |
if $options->{'tests'} and $options->{'tests'}{'test_description'} and not grep(($_ eq $test->{'description'}), ref $options->{'tests'}{'test_description'} eq "ARRAY" ? @{$$options{"tests"}{"test_description"}} : $options->{'tests'}{'test_description'})
|
208
|
47 |
2759 |
if ref $options->{'skip_tests'} eq "ARRAY" and grep((($test_group->{'description'} . " - " . $test->{'description'}) =~ /$_/u), @{$$options{"skip_tests"}})
|
218
|
33 |
3 |
ref $o->{'test_description'} eq 'ARRAY' ? :
|
|
84 |
57 |
if !$o->{'file'} || grep(($_ eq $one_file->{'file'}), ref $o->{'file'} eq 'ARRAY' ? @{$$o{'file'}} : $o->{'file'}) and !$o->{'group_description'} || grep(($_ eq $test_group->{'description'}), ref $o->{'group_description'} eq 'ARRAY' ? @{$$o{'group_description'}} : $o->{'group_description'})
|
220
|
61 |
2745 |
if $options->{'todo_tests'} and &any(sub {
|
223
|
0 |
2806 |
if $schema_fails
|
225
|
34 |
1030 |
$todo ? :
|
|
1742 |
1064 |
$result ? :
|
234
|
0 |
56 |
$self->verbose ? :
|
238
|
43 |
13 |
if (not $self->test_dir =~ /\boptional\b/u and grep((!($_->{'file'} =~ m[^optional/]u) && $_->{'todo_fail'} + $_->{'fail'}), @results)) { }
|
334
|
273 |
17422 |
unless (defined $node->[1])
|
337
|
2055 |
15367 |
if (XXX) { }
|
|
7120 |
8247 |
elsif (XXX) { }
|
|
1759 |
6488 |
elsif (XXX) { }
|
339
|
0 |
2055 |
if tied @{$$node[1]}
|
343
|
2 |
7118 |
if tied %{$$node[1]}
|
350
|
8 |
6480 |
unless $flags & 1024 xor $flags & 768
|
407
|
2 |
607 |
if &any(sub {
|
408
|
24 |
583 |
unless $path->is_file
|
409
|
1 |
582 |
unless $path =~ /\.json$/u
|
411
|
11 |
571 |
unless @$data
|
426
|
0 |
173 |
unless $Test::JSON::Schema::Acceptance::a->[0] <=> $Test::JSON::Schema::Acceptance::b->[0]
|
439
|
3 |
29 |
if ($submodule_status->exists and $submodule_status->parent->subsumes($self->test_dir)) { }
|
|
0 |
58 |
elsif ($test_dir eq $orig_dir and not -d '.git') { }
|
450
|
29 |
3 |
if ($test_dir ne $orig_dir)
|
451
|
0 |
29 |
if ($orig_dir->subsumes($test_dir)) { }
|
|
29 |
0 |
elsif ('Path::Tiny'->cwd->subsumes($test_dir)) { }
|
459
|
2 |
30 |
$self->include_optional ? :
|