Branch Coverage

blib/lib/JSON/Validator/Joi.pm
Criterion Covered Total %
branch 54 62 87.1


line true false branch
28 1 41 ref $self->type eq 'ARRAY' ? :
42 1 5 unless $self->type eq $by->type
49 7 4 unless $ref eq 'ARRAY' or $ref eq 'HASH'
52 2 3 if ($self->type eq 'array') { }
2 1 elsif ($self->type eq 'object') { }
53 1 1 if $by->{'items'}
57 1 1 if ref $by->{'required'} eq 'ARRAY'
59 0 2 unless $by->{'properties'}
79 0 8 ref $_[0] ? :
82 7 21 if $property->{'required'}
105 1 2 if $self->{'strict'}
106 2 1 if $self->{'items'}
107 2 1 if defined $self->{'max'}
108 2 1 if defined $self->{'min'}
109 0 3 if $self->{'unique'}
124 1 13 if defined $self->{'enum'} and @{$self->{'enum'};}
125 5 9 if defined $self->{'max'}
126 5 9 if defined $self->{'min'}
127 0 14 if defined $self->{'multiple_of'}
136 1 5 if $self->{'strict'}
137 0 6 if defined $self->{'max'}
138 0 6 if defined $self->{'min'}
139 0 6 if $self->{'regex'}
141 6 0 if ref $self->{'properties'} eq 'HASH'
142 4 2 if ref $self->{'required'} eq 'ARRAY'
151 1 17 if defined $self->{'enum'} and @{$self->{'enum'};}
152 6 12 if defined $self->{'format'}
153 2 16 if defined $self->{'max'}
154 5 13 if defined $self->{'min'}
155 5 13 if defined $self->{'regex'}
161 6 4 unless $_[0]{'type'}