Branch Coverage

blib/lib/WWW/OAuth/Util.pm
Criterion Covered Total %
branch 22 28 78.5


line true false branch
18 1 14 unless defined $string
26 11 2 if (ref $form eq 'ARRAY') { }
2 0 elsif (ref $form eq 'HASH') { }
27 0 11 if @$form % 2
37 7 5 ref $_[0] ? :
40 8 4 if (&blessed($proto)) { }
4 0 elsif (ref $proto eq 'HASH') { }
41 4 4 if Role::Tiny::does_role($proto, 'WWW::OAuth::Request')
42 2 2 unless (defined $class)
43 1 1 if ($proto->isa('HTTP::Request')) { }
1 0 elsif ($proto->isa('Mojo::Message::Request')) { }
54 1 3 unless defined $class
60 8 0 unless $class =~ /::/
62 0 8 unless Role::Tiny::does_role($class, 'WWW::OAuth::Request')