Branch Coverage

blib/lib/JSV/Context.pm
Criterion Covered Total %
branch 40 50 80.0


line true false branch
43 783 638 !$self->loose_type ? :
51 10144 1224 unless exists $$schema{$keyword->keyword}
55 212 1209 if ($self->is_matched_types('integer_or_string', 'number_or_string')) { }
237 972 elsif ($self->is_matched_types('integer', 'number')) { }
439 533 elsif ($self->is_matched_types('string')) { }
157 376 elsif ($self->current_type eq 'array') { }
328 48 elsif ($self->current_type eq 'object') { }
60 1399 85 unless exists $$schema{$keyword->keyword}
66 649 62 unless exists $$schema{$keyword->keyword}
72 1648 108 unless exists $$schema{$keyword->keyword}
78 489 139 unless exists $$schema{$keyword->keyword}
85 2296 0 if defined $_
1222 418 unless grep({exists $schema->{$_} if defined $_;} $keyword->keyword, @{$keyword->additional_keywords;}) > 0
91 0 1421 $self->enable_history ? :
95 0 1421 if (my $e = $@)
103 592 829 if (scalar @{$self->errors;})
104 0 592 $self->enable_history ? :
108 0 592 if ($self->throw_error)
125 0 2036 if ($ENV{'JSV_DEBUG'} or $self->enable_history)
148 0 422 if ($ENV{'JSV_DEBUG'})
154 0 422 if ($self->throw_immediate) { }
155 0 0 $self->enable_history ? :
169 11 411 if (&JSON::is_bool(scalar $self->current_instance)) { }
170 9 2 if ($self->current_instance == JSON::true()) { }
187 888 2714 grep({$self->{'current_type'} eq $_;} @types) > 0 ? :