Branch Coverage

blib/lib/Test/Class/Moose/Role/Executor.pm
Criterion Covered Total %
branch 77 88 87.5


line true false branch
63 0 19 if $self->test_configuration->statistics
80 29 2 unless my(@bad) = grep({not $_->isa('Test::Class::Moose');} @_)
84 1 1 if @bad > 1
85 1 1 @bad > 1 ? :
1 1 @bad > 1 ? :
90 1 1 @bad > 1 ? :
139 2 43 unless (@test_instances)
154 3 40 if @test_instances > 1
167 6 40 unless $instance_report->passed
180 40 6 unless $in_subtest
209 3 43 if $self->test_configuration->set_process_name
221 0 46 unless (@test_methods)
233 2 44 unless ($self->run_test_control_method($test_instance, 'test_startup', $instance_report))
243 4 40 if (my $message = $test_instance->test_skip)
248 1 3 if ($test_instance->run_control_methods_on_skip)
249 0 1 unless $self->_run_shutdown($test_instance, $instance_report)
267 7 103 unless $method_report->passed
275 0 40 if ($self->test_configuration->show_timing)
287 41 0 if $self->run_test_control_method($test_instance, 'test_shutdown', $instance_report)
301 0 187 $self->test_configuration->randomize ? :
312 4 183 if (my $include = $self->test_configuration->include)
315 4 183 if (my $exclude = $self->test_configuration->exclude)
319 66 121 ref $thing ? :
330 12 175 if (my $include = $self->test_configuration->include_tags)
334 18 58 if ('Test::Class::Moose::AttributeRegistry'->method_has_tag($class, $method, $tag))
345 8 179 if (my $exclude = $self->test_configuration->exclude_tags)
349 8 17 if ('Test::Class::Moose::AttributeRegistry'->method_has_tag($class, $method, $tag))
374 12 293 if $self->test_configuration->set_process_name
377 0 305 unless $TEST_CONTROL_METHODS{$phase}
380 218 87 $report_object->isa('Test::Class::Moose::Report::Method') ? :
405 1 303 unless $count == $ctx->hub->count
425 3 107 if $self->test_configuration->set_process_name
457 3 107 if (my $message = $test_instance->test_skip)
475 0 110 if ($self->test_configuration->show_timing)
482 103 7 $p ? :
484 108 2 if (not $skipped or $test_instance->run_control_methods_on_skip)
485 0 108 unless $self->run_test_control_method($test_instance, 'test_teardown', $method_report)
495 8 102 unless $num_tests and not $method_report->is_skipped
498 91 11 unless $method_report->has_plan
507 5 34 if (my $classes = $self->test_configuration->test_classes)
508 5 0 if @{$classes;}
514 34 3584 if $class eq 'Test::Class::Moose'
515 178 3406 if $class->isa('Test::Class::Moose')
518 0 34 if ($self->test_configuration->randomize_classes)