Branch Coverage

blib/lib/SeeAlso/Client.pm
Criterion Covered Total %
branch 14 28 50.0


line true false branch
26 4 2 if (@_ % 2) { }
33 0 6 unless defined $baseurl
54 0 0 if (defined $json) { }
64 1 6 unless defined $url
66 5 1 unless UNIVERSAL::isa($url, 'URI')
67 2 4 unless defined $url and is_web_uri($url->as_string)
71 0 4 if defined $query{'id'} or defined $query{'callback'}
84 0 2 if UNIVERSAL::isa($identifier, 'SeeAlso::Identifier')
86 0 2 unless defined $identifier
91 2 0 unless $$self{'is_simple'}
94 0 2 if (defined $callback)
95 0 0 unless $callback =~ /^[a-zA-Z0-9\._\[\]]+$/
107 0 0 if exists $$self{'formats'}
112 0 0 if ($xml)