Branch Coverage

blib/lib/Test/Able/Role/Meta/Class.pm
Criterion Covered Total %
branch 61 70 87.1


line true false branch
262 6 1 $self->current_test_object ? :
293 0 31 unless @{$self->test_objects;}
300 40 1 if $exceptions_before_startup == @{$self->method_exceptions;}
332 158 1916 if ($type eq 'test')
335 157 1 if $method->do_setup
341 2070 4 unless ($setup_exception_count)
350 1913 161 unless ($setup_exception_count or $self->dry_run)
354 8 1905 if (my $exception = $@)
355 1 7 unless $self->on_method_exception
366 1 6 if &Scalar::Util::blessed($exception) and $exception->isa('Test::Able::FatalException')
370 1905 6 if ($self->on_method_plan_fail and $method->plan =~ /^\d+$/)
372 0 1905 if ($tests_diff != $method->plan)
375 0 0 if ($self->on_method_plan_fail eq 'die') { }
383 157 1915 if ($type eq 'test')
384 156 1 if $method->do_teardown
407 1777 1208 if ($method->can('type'))
409 331 1446 if defined $method_type and $method_type eq $type
414 0 9 unless $a->order <=> $b->order
434 82 103 unless $self->$has_name
452 25 0 if $self->$has_name
468 44 2026 if $ENV{'TEST_VERBOSE'}
486 6 596 if ($method->plan eq 'no_plan') { }
491 120 476 if ($accessor_name eq 'setup_methods') { }
129 347 elsif ($accessor_name eq 'teardown_methods') { }
503 0 33 unless defined $plan
541 11 52 if ($object_plan eq 'no_plan') { }
549 0 55 unless defined $plan
551 8 47 if $self->dry_run
553 1 46 unless $self->builder->has_plan
556 33 14 if ($self->builder->{'No_Plan'} or $self->builder->{'was_No_Plan'})
557 32 1 if ($plan =~ /^\d+$/) { }
558 17 15 if ($self->has_last_runner_plan) { }
560 0 17 $last eq 'no_plan' ? :
582 47 8 if $hacked_test_builder
589 3 5 if ($$builder{'was_No_Plan'} and $self->runner_plan =~ /\d+/)