Branch Coverage

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


line true false branch
60 0 19 if $self->test_configuration->statistics
77 29 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 43 unless (@test_instances)
151 3 40 if @test_instances > 1
164 6 40 unless $instance_report->passed
177 40 6 unless $in_subtest
206 3 43 if $self->test_configuration->set_process_name
218 0 46 unless (@test_methods)
230 2 44 unless ($self->run_test_control_method($test_instance, 'test_startup', $instance_report))
240 4 40 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 103 unless $method_report->passed
272 0 40 if ($self->test_configuration->show_timing)
284 41 0 if $self->run_test_control_method($test_instance, 'test_shutdown', $instance_report)
298 0 187 $self->test_configuration->randomize ? :
309 4 183 if (my $include = $self->test_configuration->include)
312 4 183 if (my $exclude = $self->test_configuration->exclude)
316 66 121 ref $thing ? :
327 12 175 if (my $include = $self->test_configuration->include_tags)
331 18 58 if ('Test::Class::Moose::AttributeRegistry'->method_has_tag($class, $method, $tag))
342 8 179 if (my $exclude = $self->test_configuration->exclude_tags)
346 8 17 if ('Test::Class::Moose::AttributeRegistry'->method_has_tag($class, $method, $tag))
371 12 293 if $self->test_configuration->set_process_name
374 0 305 unless $TEST_CONTROL_METHODS{$phase}
377 218 87 $report_object->isa('Test::Class::Moose::Report::Method') ? :
402 1 303 unless $count == $ctx->hub->count
422 3 107 if $self->test_configuration->set_process_name
454 3 107 if (my $message = $test_instance->test_skip)
472 0 110 if ($self->test_configuration->show_timing)
479 103 7 $p ? :
481 108 2 if (not $skipped or $test_instance->run_control_methods_on_skip)
482 0 108 unless $self->run_test_control_method($test_instance, 'test_teardown', $method_report)
492 8 102 unless $num_tests and not $method_report->is_skipped
495 91 11 unless $method_report->has_plan
504 5 34 if (my $classes = $self->test_configuration->test_classes)
505 5 0 if @{$classes;}
511 34 3584 if $class eq 'Test::Class::Moose'
512 178 3406 if $class->isa('Test::Class::Moose')
515 0 34 if ($self->test_configuration->randomize_classes)