Branch Coverage

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


line true false branch
19 0 129 if $args->{'remote'}
27 2 127 unless $class
29 93 34 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 127 unless $class
156 126 3 unless ref $opts eq "HASH"
157 3 126 if exists $opts->{'default_host'}
282 0 913 if $args->{'mangle_request'}
291 912 0 if $args->{'mangle_response'}
318 709 203 if (not $resp->content_type or $resp->content_is_html)
322 0 709 if $resp->content_is_xhtml
323 709 0 if $] >= "5.008" and $HTML::Parser::VERSION >= "3.4"
336 0 913 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 914 unless ref $opts eq "HASH"
418 4 914 exists $opts->{'host'} ? :
27 891 if (my $host = exists $opts->{'host'} ? $opts->{'host'} : $default_host)
422 2 916 if (my $extra = $opts->{'extra_env'})