Condition Coverage

blib/lib/Flat/Schema.pm
Criterion Covered Total %
condition 70 166 42.1


and 3 conditions

line !l l&&!r l&&r condition
33 0 0 8 defined $report_version and $report_version =~ /\A\d+\z/
48 0 1 0 defined $overrides and ref $overrides ne "ARRAY"
95 6 0 2 exists $profile->{'null_tokens'} and ref $profile->{'null_tokens'} eq "ARRAY"
99 4 0 4 exists $profile->{'rows_profiled'} and defined $profile->{'rows_profiled'}
4 0 4 exists $profile->{'rows_profiled'} and defined $profile->{'rows_profiled'} and $profile->{'rows_profiled'} =~ /\A\d+\z/
122 0 0 17 exists $col->{'index'} and defined $col->{'index'}
0 0 17 exists $col->{'index'} and defined $col->{'index'} and $col->{'index'} =~ /\A\d+\z/
129 0 17 0 defined $name and ref $name ne ""
141 4 0 13 exists $col->{'rows_observed'} and defined $col->{'rows_observed'}
4 0 13 exists $col->{'rows_observed'} and defined $col->{'rows_observed'} and $col->{'rows_observed'} =~ /\A\d+\z/
146 4 0 13 exists $col->{'null_count'} and defined $col->{'null_count'}
4 0 13 exists $col->{'null_count'} and defined $col->{'null_count'} and $col->{'null_count'} =~ /\A\d+\z/
211 4 0 4 exists $profile->{'rows_profiled'} and defined $profile->{'rows_profiled'}
4 0 4 exists $profile->{'rows_profiled'} and defined $profile->{'rows_profiled'} and $profile->{'rows_profiled'} =~ /\A\d+\z/
252 0 0 2 exists $entry->{'column_index'} and defined $entry->{'column_index'}
0 0 2 exists $entry->{'column_index'} and defined $entry->{'column_index'} and $entry->{'column_index'} =~ /\A\d+\z/
285 0 1 0 defined $set{'name'} and ref $set{'name'} ne ""
302 0 2 0 defined $len{$lk} and not $len{$lk} =~ /\A\d+\z/
401 1 0 0 defined $a and defined $b
415 0 0 0 defined $av and defined $bv
0 0 0 defined $av and defined $bv and int $av != int $bv
438 0 0 4 defined $inferred_value && defined $override_value
507 3 2 1 @temporal and @other
608 9 0 0 $a_is_undef and $b_is_undef
845 8 0 24 @$path >= 2 and $path->[0] eq "columns"
8 0 24 @$path >= 2 and $path->[0] eq "columns" and $path->[1] =~ /\A\d+\z/
861 8 0 0 @$path >= 3 and $path->[0] eq "columns"
8 0 0 @$path >= 3 and $path->[0] eq "columns" and $path->[2] eq "length"
867 8 0 0 @$path >= 3 and $path->[0] eq "columns"
8 0 0 @$path >= 3 and $path->[0] eq "columns" and $path->[2] eq "overrides"
873 0 4 4 @$path >= 1 and $path->[0] eq "generator"
879 0 0 4 @$path >= 1 and $path->[0] eq "profile"
885 0 0 0 @$path >= 3 and $path->[0] eq "columns"
0 0 0 @$path >= 3 and $path->[0] eq "columns" and $path->[2] eq "provenance"
900 0 0 0 @$path >= 4 and $path->[0] eq "columns"
0 0 0 @$path >= 4 and $path->[0] eq "columns" and $path->[3] eq "null_rate"
906 0 0 0 @$path >= 2 and $path->[0] eq "issues"
0 0 0 @$path >= 2 and $path->[0] eq "issues" and $path->[1] =~ /\A\d+\z/

or 2 conditions

line l !l condition
112 10 0 $Flat::Schema::a->{'index'} // 0
10 0 $Flat::Schema::b->{'index'} // 0
182 17 0 $col->{'provenance'}{'rows_observed'} // 0
183 17 0 $col->{'provenance'}{'null_count'} // 0
495 9 27 $evidence->{$_} // 0

or 3 conditions

line l !l&&r !l&&!r condition
258 0 0 2 not exists $entry->{'set'} or ref $entry->{'set'} ne "HASH"
272 0 0 1 not defined $set{'type'} or ref $set{'type'} ne ""
278 0 0 2 not defined $set{'nullable'} or ref $set{'nullable'} ne ""
291 0 0 1 not defined $set{'length'} or ref $set{'length'} ne "HASH"
398 0 1 0 defined $a or defined $b
404 0 0 0 ref $a ne "HASH" or ref $b ne "HASH"
438 4 0 0 defined $inferred_value || defined $override_value
469 2 0 3 not exists $col->{'overrides'} or ref $col->{'overrides'} ne "HASH"
490 11 0 6 not defined $evidence or ref $evidence ne "HASH"
11 0 6 not defined $evidence or ref $evidence ne "HASH" or not %$evidence
596 5 4 0 $ra <=> $rb || ($Flat::Schema::a->{'code'} // '') cmp ($Flat::Schema::b->{'code'} // '') || _cmp_column_index($Flat::Schema::a->{'column_index'}, $Flat::Schema::b->{'column_index'}) || ($Flat::Schema::a->{'message'} // '') cmp ($Flat::Schema::b->{'message'} // '') || _stable_details_string($Flat::Schema::a->{'details'}) cmp _stable_details_string($Flat::Schema::b->{'details'})
769 0 4 4 not defined $item or $item_ref eq ""
791 0 46 18 not defined $v or $v_ref eq ""
922 110 48 0 $ra <=> $rb || $a cmp $b