Branch Coverage

blib/lib/Test2/Tools/URL.pm
Criterion Covered Total %
branch 26 32 81.2


line true false branch
29 1 2 if ($build) { }
40 0 27 unless $name =~ /^(?:scheme|authority|userinfo|hostport|host|port|path|query|fragment)$/
43 0 27 unless my $build = Test2::Compare::get_build()
63 2 32 $global_base ? :
2 34 $self->{'base'} ? :
73 0 25 unless $exists
74 1 24 unless $got
75 4 20 if ref $got and not &blessed($got)
76 1 19 if ref $got and not overload::Method($got, '""')
79 0 19 if $@
80 2 17 unless $url->has_recognized_scheme
117 2 25 if $method eq 'hostport'
121 0 27 if ($^O eq 'MSWin32' and $method eq 'path')
126 4 23 if ($method eq 'query' and not $check->isa('Test2::Compare::String'))
129 2 2 if ($check->isa('Test2::Compare::Hash')) { }
2 0 elsif ($check->isa('Test2::Compare::Array')) { }