Branch Coverage

blib/lib/Test/Class/Tiny.pm
Criterion Covered Total %
branch 34 50 68.0


line true false branch
251 0 2 unless ($self->{'_running'})
261 0 1 unless $name
263 0 1 if (@_ == 2)
276 4 1 unless (ref $self)
283 0 5 unless (ref $self)
292 0 5 if (my $reason = $self->SKIP_CLASS) { }
299 1 4 if (my $startup_hr = $self->{'startup'})
303 5 0 if (my $tests_hr = $self->{'test'})
312 5 0 unless defined $hub->plan
317 24 2 if $event->increments_count
319 10 16 if ($event->can("name") and not defined $event->name)
331 0 19 unless $tests_hr->{$a}{'simple_name'} cmp $tests_hr->{$b}{'simple_name'}
338 0 17 if (my $ptn = $ENV{'TEST_METHOD'})
339 0 0 unless $fn =~ /$ptn/
342 0 17 if ($ENV{'TEST_VERBOSE'})
355 0 17 unless (eval { do { $self->$fn; 1 } })
360 15 2 if ($want_count)
361 0 15 if ($want_count != $got_count)
372 1 4 if (my $shutdown_hr = $self->{'shutdown'})
383 5 0 unless ($self->{'_analyzed'})
397 37 733 unless $self->can($name)
401 11 722 if ($name =~ /$prefix_regexp/) { }
9 713 elsif ($name =~ /$suffix_regexp/) { }
413 4 16 if ($whatsit =~ s/_//) { }
435 0 12 if ($funcs_hr->{$fn}) { }