Condition Coverage

blib/lib/JSON/Validator/Formats.pm
Criterion Covered Total %
condition 18 33 54.5


and 3 conditions

line !l l&&!r l&&r condition
103 48 123 1 length $auth_host and not length $scheme
106 42 127 1 length $scheme and not lc($scheme) =~ /^[a-z][a-z0-9\+\-\.]*$/
112 0 47 120 defined $auth_host and length $auth_host
129 2 0 0 &DATA_VALIDATE_IP() and Data::Validate::IP::is_ipv4($_[0])
132 0 1 7 $_ >= 0 and $_ <= 255

or 2 conditions

line l !l condition
9 0 49 $ENV{'JSON_VALIDATOR_WARN'} // 1
70 0 0 $email[0] // ''
0 0 $email[1] // ''
77 0 0 $@ || undef
86 0 0 $@ || undef
101 721 311 $_ // ''

or 3 conditions

line l !l&&r !l&&!r condition
113 0 120 0 not length $path or $path =~ m[^/]
124 1 2 2 !length($_[0]) || $_[0] =~ m[^/]