Branch Coverage

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


line true false branch
60 0 18 if $self->test_configuration->statistics
77 28 2 unless my(@bad) = grep({not $_->isa('Test::Class::Moose');} @_)
81 1 1 if @bad > 1
82 1 1 @bad > 1 ? :
1 1 @bad > 1 ? :
87 1 1 @bad > 1 ? :
136 2 42 unless (@test_instances)
151 3 39 if @test_instances > 1
164 6 39 unless $instance_report->passed
177 39 6 unless $in_subtest
206 3 42 if $self->test_configuration->set_process_name
218 0 45 unless (@test_methods)
230 2 43 unless ($self->run_test_control_method($test_instance, 'test_startup', $instance_report))
240 4 39 if (my $message = $test_instance->test_skip)
245 1 3 if ($test_instance->run_control_methods_on_skip)
246 0 1 unless $self->_run_shutdown($test_instance, $instance_report)
264 7 102 unless $method_report->passed
272 0 39 if ($self->test_configuration->show_timing)
284 40 0 if $self->run_test_control_method($test_instance, 'test_shutdown', $instance_report)
298 0 186 $self->test_configuration->randomize ? :
309 4 182 if (my $include = $self->test_configuration->include)
312 4 182 if (my $exclude = $self->test_configuration->exclude)
316 65 121 ref $thing ? :
327 12 174 if (my $include = $self->test_configuration->include_tags)
331 18 58 if ('Test::Class::Moose::AttributeRegistry'->method_has_tag($class, $method, $tag))
342 8 178 if (my $exclude = $self->test_configuration->exclude_tags)
346 8 17 if ('Test::Class::Moose::AttributeRegistry'->method_has_tag($class, $method, $tag))
371 12 289 if $self->test_configuration->set_process_name
374 0 301 unless $TEST_CONTROL_METHODS{$phase}
377 216 85 $report_object->isa('Test::Class::Moose::Report::Method') ? :
402 1 299 unless $count == $ctx->hub->count
422 3 106 if $self->test_configuration->set_process_name
454 3 106 if (my $message = $test_instance->test_skip)
472 0 109 if ($self->test_configuration->show_timing)
479 102 7 $p ? :
481 107 2 if (not $skipped or $test_instance->run_control_methods_on_skip)
482 0 107 unless $self->run_test_control_method($test_instance, 'test_teardown', $method_report)
492 8 101 unless $num_tests and not $method_report->is_skipped
495 90 11 unless $method_report->has_plan
504 5 33 if (my $classes = $self->test_configuration->test_classes)
505 5 0 if @{$classes;}
511 33 3487 if $class eq 'Test::Class::Moose'
512 177 3310 if $class->isa('Test::Class::Moose')
515 0 33 if ($self->test_configuration->randomize_classes)