Condition Coverage

blib/lib/Test/JSON/Schema/Acceptance.pm
Criterion Covered Total %
condition 68 78 87.1


and 3 conditions

line !l l&&!r l&&r condition
126 7 49 0 $options->{'validate_data'} and $options->{'validate_json_string'}
132 55 0 1 $options->{'add_resource'} and -d $self->additional_resources
137 1 0 2 $path->is_file and $path =~ /\.json$/u
159 189 9 23 $options->{'tests'} and $options->{'tests'}{'file'}
9 12 11 $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 772 15 38 $options->{'tests'} and $options->{'tests'}{'group_description'}
15 14 24 $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 27 19 28 !$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 731 54 16 $options->{'todo_tests'} and &any(sub {
202 2749 40 48 $options->{'tests'} and $options->{'tests'}{'test_description'}
40 17 31 $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 2701 58 47 ref $options->{'skip_tests'} eq "ARRAY" and grep((($test_group->{'description'} . " - " . $test->{'description'}) =~ /$_/u), @{$$options{"skip_tests"}})
218 81 57 84 !$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 2596 149 61 $options->{'todo_tests'} and &any(sub {
238 3 56 151 !($_->{'file'} =~ m[^optional/]u) && $_->{'todo_fail'} + $_->{'fail'}
0 13 43 not $self->test_dir =~ /\boptional\b/u and grep((!($_->{'file'} =~ m[^optional/]u) && $_->{'todo_fail'} + $_->{'fail'}), @results)
439 0 29 3 $submodule_status->exists and $submodule_status->parent->subsumes($self->test_dir)
29 0 0 $test_dir eq $orig_dir and not -d ".git"

or 2 conditions

line l !l condition
448 32 0 $self->specification // "unknown"

or 3 conditions

line l !l&&r !l&&!r condition
123 49 7 0 $options->{'validate_data'} or $options->{'validate_json_string'}
178 25 22 27 !$o->{'file'} || grep(($_ eq $one_file->{'file'}), ref $o->{'file'} eq 'ARRAY' ? @{$$o{'file'}} : $o->{'file'})
17 11 19 !$o->{'group_description'} || grep(($_ eq $test_group->{'description'}), ref $o->{'group_description'} eq 'ARRAY' ? @{$$o{'group_description'}} : $o->{'group_description'})
218 48 13 23 not $o->{'test_description'} or grep(($_ eq $test->{'description'}), ref $o->{'test_description'} eq "ARRAY" ? @{$$o{"test_description"}} : $o->{'test_description'})
75 66 81 !$o->{'file'} || grep(($_ eq $one_file->{'file'}), ref $o->{'file'} eq 'ARRAY' ? @{$$o{'file'}} : $o->{'file'})
51 33 57 !$o->{'group_description'} || grep(($_ eq $test_group->{'description'}), ref $o->{'group_description'} eq 'ARRAY' ? @{$$o{'group_description'}} : $o->{'group_description'})

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
350 8 4182 2298 0 $flags & 1024 xor $flags & 768