line |
true |
false |
branch |
115
|
4 |
53 |
unless -d $self->test_dir
|
120
|
4 |
54 |
ref $_[0] eq 'CODE' ? :
|
123
|
0 |
7 |
unless $options->{'validate_data'} or $options->{'validate_json_string'}
|
126
|
0 |
51 |
if $options->{'validate_data'} and $options->{'validate_json_string'}
|
128
|
5 |
53 |
if $options->{'skip_tests'}
|
132
|
1 |
57 |
if ($options->{'add_resource'} and -d $self->additional_resources)
|
139
|
1 |
2 |
unless $path->is_file and $path =~ /\.json$/u
|
149
|
27 |
31 |
$self->_has_specification ? :
|
161
|
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'})
|
169
|
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'})
|
180
|
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'})
|
181
|
16 |
880 |
if $options->{'todo_tests'} and &any(sub {
|
184
|
0 |
896 |
if ($self->test_schemas)
|
185
|
0 |
0 |
unless $self->_has_specification
|
190
|
0 |
0 |
XXX && $test_group->{'schema'}{'$schema'} ? :
|
194
|
0 |
0 |
$options->{'validate_data'} ? :
|
195
|
0 |
0 |
unless ($result)
|
206
|
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'})
|
212
|
47 |
2953 |
if ref $options->{'skip_tests'} eq "ARRAY" and grep((($test_group->{'description'} . " - " . $test->{'description'}) =~ /$_/u), @{$$options{"skip_tests"}})
|
222
|
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'})
|
224
|
61 |
2939 |
if $options->{'todo_tests'} and &any(sub {
|
227
|
0 |
3000 |
if $schema_fails
|
229
|
34 |
1116 |
$todo ? :
|
|
1850 |
1150 |
$result ? :
|
238
|
0 |
58 |
$self->verbose ? :
|
242
|
45 |
13 |
if (not $self->test_dir =~ /\boptional\b/u and grep((!($_->{'file'} =~ m[^optional/]u) && $_->{'todo_fail'} + $_->{'fail'}), @results)) { }
|
342
|
291 |
19041 |
unless (defined $node->[1])
|
345
|
2127 |
16914 |
if (XXX) { }
|
|
7902 |
9012 |
elsif (XXX) { }
|
|
1493 |
7519 |
elsif (XXX) { }
|
347
|
0 |
2127 |
if tied @{$$node[1]}
|
351
|
2 |
7900 |
if tied %{$$node[1]}
|
358
|
8 |
7511 |
unless $flags & 1024 xor $flags & 768
|
430
|
2 |
623 |
if &any(sub {
|
431
|
24 |
599 |
unless $path->is_file
|
432
|
1 |
598 |
unless $path =~ /\.json$/u
|
434
|
11 |
587 |
unless @$data
|
449
|
0 |
186 |
unless $Test::JSON::Schema::Acceptance::a->[0] <=> $Test::JSON::Schema::Acceptance::b->[0]
|
462
|
3 |
31 |
if ($submodule_status->exists and $submodule_status->parent->subsumes($self->test_dir)) { }
|
|
0 |
62 |
elsif ($test_dir eq $orig_dir and not -d '.git') { }
|
473
|
31 |
3 |
if ($test_dir ne $orig_dir)
|
474
|
0 |
31 |
if ($orig_dir->subsumes($test_dir)) { }
|
|
31 |
0 |
elsif ('Path::Tiny'->cwd->subsumes($test_dir)) { }
|
482
|
2 |
32 |
$self->include_optional ? :
|