Branch Coverage

blib/lib/Test2/Tools/URL.pm
Criterion Covered Total %
branch 38 44 86.3


line true false branch
30 1 2 if ($build) { }
41 45 7 unless defined $check_name
42 45 7 if ($check_name)
44 0 45 unless $name =~ /^(?:scheme|authority|userinfo|hostport|host|port|path|query|fragment|user|password|media_type|data)$/
48 0 52 unless my $build = Test2::Compare::get_build()
71 1 1 defined $_ && (ref $_ || $_) ? :
86 1 1 $p{'got'} ? :
120 2 74 $global_base ? :
2 76 $self->{'base'} ? :
130 0 46 unless $exists
131 1 45 unless $got
132 4 41 if ref $got and not &blessed($got)
133 1 40 if ref $got and not overload::Method($got, '""')
136 0 40 if $@
137 2 38 unless $url->has_recognized_scheme
174 2 50 if $method eq 'hostport'
175 47 5 $uri->can($method) ? :
176 1 51 if $lc and defined $value
179 0 52 if ($^O eq 'MSWin32' and $method eq 'path')
184 6 46 if ($method eq 'query' and not $check->isa('Test2::Compare::String'))
186 4 2 if ($check->isa('Test2::Compare::Hash')) { }
2 0 elsif ($check->isa('Test2::Compare::Array')) { }