Branch Coverage

blib/lib/JSON/Schema/Modern/Result.pm
Criterion Covered Total %
branch 45 62 72.5


line true false branch
77 3 3 unless scalar @{$_[0]{"errors"} // []}
79 14321 1 unless scalar @{$_[0]{"annotations"} // []}
145 0 17414 if exists $$args{"_errors"}
146 24 17390 if exists $$args{"_annotations"}
148 10 17404 if (exists $$args{"data"} and exists $$args{"defaults"})
156 1 25774 if ($style eq 'flag') { }
25769 5 elsif ($style eq 'basic') { }
1 4 elsif ($style eq 'strict_basic') { }
2 2 elsif ($style eq 'terse') { }
2 0 elsif ($style eq 'data_only') { }
157 0 1 $self->valid ? :
161 14323 11446 $self->valid ? :
25 14298 $formatted_annotations && $self->annotation_count ? :
14323 11446 $self->valid ? :
10 25759 $self->valid && $self->defaults ? :
171 0 1 $self->valid ? :
0 0 $formatted_annotations && $self->annotation_count ? :
0 1 $self->valid ? :
197 17 12 if $keep
198 17 12 if $keep
204 0 2 unless $self->valid or @errors
207 0 2 $self->valid ? :
0 0 $formatted_annotations && $self->annotation_count ? :
0 2 $self->valid ? :
214 0 2 unless $self->error_count
225 0 0 $_[0]->valid ? :
228 1 7 unless builtin::blessed($other) and $other->isa(__PACKAGE__)
230 1 6 if builtin::refaddr($other) == builtin::refaddr($self)
232 3 3 $self->defaults || $other->defaults ? :
255 0 25773 if $self->output_format eq "data_only"
266 16890 0 if $encoder->can("indent_length")