Branch Coverage

blib/lib/JSONSchema/Validator/Constraints/Draft6.pm
Criterion Covered Total %
branch 28 40 70.0


line true false branch
16 11 1208 if ($_[2] eq "integer")
24 0 7 unless $self->check_type($instance, "number")
26 2 5 if $instance < $exclusiveMaximum
38 0 3 unless $self->check_type($instance, "number")
40 1 2 if $instance > $exclusiveMinimum
52 0 2 unless $self->check_type($instance, "object")
58 1 3 unless $r
65 0 6 unless $self->check_type($instance, "array")
75 17 3 unless ($result)
83 3 17 if $result
86 3 3 if $result
103 0 10 if ($self->check_type($const, 'boolean', 1)) { }
2 8 elsif ($self->check_type($const, 'object', 1) or $self->check_type($const, 'array', 1)) { }
4 4 elsif ($self->check_type($const, 'number', 1)) { }
4 0 elsif (defined $const and defined $instance) { }
0 0 elsif (not defined $const || defined $instance) { }
104 0 0 $self->check_type($instance, 'boolean') ? :
108 2 0 $self->check_type($instance, 'object') || $self->check_type($instance, 'array') ? :
113 4 0 $self->check_type($instance, 'number') ? :
122 5 5 if $result