Branch Coverage

blib/lib/Test/Module/Runnable/Base.pm
Criterion Covered Total %
branch 20 64 31.2


line true false branch
163 503 4 if (defined $domain and length $domain) { }
164 500 3 if 'rand' eq $domain
169 500 7 if ($useRandomDomain) { }
194 0 292 unless $self->can($method)
195 281 11 unless $method =~ $self->pattern
223 2 1 unless $params{'n'}
225 0 3 if (ref $params{'tests'} eq 'ARRAY') { }
229 1 2 if (@ARGV)
233 2 0 if $arg ne $testName
238 0 1 if (scalar @userRunTests > 0)
258 0 35 unless $self->can($method)
272 0 35 if $self->mocker
294 0 0 unless $ENV{'TEST_VERBOSE'}
308 0 0 unless ($class->can($method) or $class->can('AUTOLOAD'))
312 0 0 if defined $return and ref $return ne 'CODE' and ref $return ne 'ARRAY'
314 0 0 unless ($self->{'mock_module'}{$class})
324 0 0 if ($return)
326 0 0 if (ref $return eq 'ARRAY') { }
328 0 0 if (@$return) { }
339 0 0 if (ref $val eq 'CODE') { }
340 0 0 if (wantarray) { }
350 0 0 unless $empty
359 0 0 wantarray ? :
374 0 0 if (not $class) { }
0 0 elsif (not $method) { }
375 0 0 if $method
381 0 0 if ($self->{'mock_module'}{$class})
480 0 0 unless ($args{'withObject'})
523 35 0 unless defined $modeName and length $modeName
557 129 0 if defined $returnValue and $returnValue eq '0'
558 0 0 unless (defined $method)
559 0 0 if 'setUpBeforeClass' ne $type and 'tearDownAfterClass' ne $type