Branch Coverage

blib/lib/DBIx/Class/Schema/SanityChecker.pm
Criterion Covered Total %
branch 27 44 61.3


line true false branch
184 0 1 length ref $schema ? :
194 0 1 unless $self->${\"format_${ch}_errors";}($err)
1 5 if @$err
201 1 1 if @errors_found
281 0 1 if $ENV{'DBIC_ASSERT_NO_FAILING_SANITY_CHECKS'}
318 6 8 defined &blessed($_) ? :
0 14 !defined($_) ? :
355 0 7 unless describe_class_methods($_)->{'methods_with_supers'}
367 176 0 unless $_->{'attributes'}{'DBIC_method_is_indirect_sugar'} or $_->{'attributes'}{'DBIC_method_is_generated_from_resultsource_metadata'}
386 0 0 $_->{'attributes'}{'DBIC_method_is_bypassable_resultsource_proxy'} ? :
0 0 if $nonsugar_methods and not $$seen_shadowing_configurations{join "\000", map({&refaddr($_);} $_, @$nonsugar_methods)}++
413 0 1 $_->{'initial_mro'} eq $_->{'current_mro'} ? :
438 3 4 ${"${class}::__INITIAL_MRO_UPON_DBIC_LOAD__";} ? :
475 30 1 if grep({$_->{'via_class'} ne $class;} @$_) > 1
479 62 0 if $_->{'via_class'} ne $class
482 4 1 unless not $desc->{'mro'}{'is_c3'} and $desc->{'methods_with_supers'} and my(@potentially_problematic_method_stacks) = grep({grep {not $$base_ISA{$_->{'via_class'}} if $_->{'via_class'} ne $class;} @$_ if grep({$_->{'via_class'} ne $class;} @$_) > 1;} values %{$$desc{'methods_with_supers'};})
507 3 7 unless &dbic_internal_try(sub { &serialize($stack) eq &serialize(describe_class_methods({'class', $class, 'use_mro', 'c3'})->{'methods'}{$stack->[0]{'name'}}); } )
515 1 0 if $affected_methods
558 3 4 defined &blessed($_) ? :
0 7 !defined($_) ? :
569 0 0 $group eq 'Core' ? :
0 28 if $class->isa($foreign_base)