Branch Coverage

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


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