Branch Coverage

File:inc/Test/Class.pm
Coverage:42.8%

line%coveragebranch
51100TFref $self ? :
6150TFunless my $test_info = _test_info($self)
7350TFif ('Test::Class::MethodInfo'->is_num_tests($arg)) { }
0TFelsif ('Test::Class::MethodInfo'->is_method_type($arg)) { }
8750TFunless $parent_class->can($name)
880TFif _method_info($class, $parent_class, $name)
9550TFif ($symbol eq 'ANON') { }
9950TFif _is_public_method($class, $name)
10150TFunless eval { do { my($type, $num_tests) = _parse_attribute_args($args); $$Tests{$class}{$name} = 'Test::Class::MethodInfo'->new('name', $name, 'num_tests', $num_tests, 'type', $type) } }
120100TFref $self ? :
12650TFunless ref $proto
13850TFif $@
145100TFif ($info->is_type($type))
14650TFunless $type eq 'test' and not $name =~ /$method_regexp/
15850TFif (my $reason = $self->SKIP_CLASS)
1590TF$reason eq '1' ? :
16550TFif $num_startup_shutdown_methods eq 'no_plan'
16850TFif $num_fixture_tests eq 'no_plan'
171100TFif $num_tests eq 'no_plan'
17850TFif (_isa_class('Test::Class', $test)) { }
0TFelsif (defined $test and $test =~ /^\d+$/) { }
180100TFif $n eq 'no_plan'
1850TFunless defined $test
19950TFunless $info
201100TFif $num_tests eq 'no_plan'
20350TFunless $num_tests =~ /^\+/
21750TFif $start_test == $current_test
21950TFunless $result
2270TFif defined $Current_method and $method ne $Current_method
24250TFunless (defined $description)
24750TFunless ($is_ok)
254100TFunless $skip_reason
25650TFif $exception
259100TFif $num_expected eq 'no_plan'
260100TFif ($num_done == $num_expected) { }
50TFelsif ($num_done > $num_expected) { }
26150TFunless $exception eq ''
26750TFif ($exception ne '') { }
281100TFif $Builder->has_plan
283100TFif ($num_tests eq 'no_plan') { }
29450TFif @_
30050TFunless defined $object_or_class
30150TFif $object_or_class eq 'Contextual::Return::Value'
303100TFif $object_or_class->isa($class)
31350TFunless $Check_block_has_run
31650TFif (@tests == 1 and not ref $tests[0])
32350TFif $t =~ /^\d+$/
32450TFunless _isa_class('Test::Class', $t)
32650TFif (my $reason = $t->SKIP_CLASS) { }
3280TFunless $reason eq '1'
33050TFunless ref $t
3320TFunless _has_no_tests($t, $method)
3340TFunless $method_passed
3350TFunless $method_passed
34250TFif $ENV{'TEST_VERBOSE'}
34450TFunless _has_no_tests($t, $method)
34550TFunless _run_method($t, $method, \@tests)
3490TFunless _has_no_tests($t, $method)
3500TFunless _run_method($t, $method, \@tests)
3600TFif $class eq 'Test::Class'
3610TFif _isa_class('Test::Class', $class)
3680TFunless my $class = _find_calling_test_class($self)
3700TFunless my $info = _method_info($self, $class, $method)
3720TFif defined $n
3780TFunless defined $Current_method
3890TFunless $Builder->expected_tests
3950TFunless $Builder->has_plan
3980TF$num_failed < 254 ? :
4030TFunless $Builder->has_plan