Branch Coverage

blib/lib/Catalyst/Test.pm
Criterion Covered Total %
branch 34 58 58.6


line true false branch
19 0 127 if $args->{'remote'}
27 2 125 unless $class
29 93 32 unless is_class_loaded($class)
50 0 79 if $ENV{'CATALYST_SERVER'}
54 1 78 unless $class
115 2 1 @_ ? :
121 1 0 @_ ? :
127 1 1 @_ ? :
149 2 125 unless $class
156 124 3 unless ref $opts eq "HASH"
157 3 124 if exists $opts->{'default_host'}
282 0 906 if $args->{'mangle_request'}
291 905 0 if $args->{'mangle_response'}
318 702 203 if (not $resp->content_type or $resp->content_is_html)
322 0 702 if $resp->content_is_xhtml
323 702 0 if $] >= "5.008" and $HTML::Parser::VERSION >= "3.4"
336 0 906 ref $class eq 'CODE' ? :
345 0 0 unless ($agent)
361 0 0 if ($server->path =~ m[^(.+)?/$])
363 0 0 if $path
375 0 0 if ($server->path)
378 0 0 $request->uri->path eq '/' || $request->uri->path eq '' ? :
383 0 0 if (@rp)
385 0 0 $sp eq $rp[0] ? :
390 0 0 if ($add_trailing)
417 4 907 unless ref $opts eq "HASH"
418 4 907 exists $opts->{'host'} ? :
27 884 if (my $host = exists $opts->{'host'} ? $opts->{'host'} : $default_host)
422 2 909 if (my $extra = $opts->{'extra_env'})