Branch Coverage

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


line true false branch
82 3 3 unless scalar @{$_[0]{"errors"} // []}
84 14321 1 unless scalar @{$_[0]{"annotations"} // []}
150 0 17414 if exists $$args{"_errors"}
151 24 17390 if exists $$args{"_annotations"}
153 10 17404 if (exists $$args{"data"} and exists $$args{"defaults"})
161 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') { }
162 0 1 $self->valid ? :
166 14323 11446 $self->valid ? :
25 14298 $formatted_annotations && $self->annotation_count ? :
14323 11446 $self->valid ? :
10 25759 $self->valid && $self->defaults ? :
176 0 1 $self->valid ? :
0 0 $formatted_annotations && $self->annotation_count ? :
0 1 $self->valid ? :
202 17 12 if $keep
203 17 12 if $keep
209 0 2 unless $self->valid or @errors
212 0 2 $self->valid ? :
0 0 $formatted_annotations && $self->annotation_count ? :
0 2 $self->valid ? :
219 0 2 unless $self->error_count
230 0 0 $_[0]->valid ? :
233 1 7 unless $other->$JSON::Schema::Modern::Result::_isa(__PACKAGE__)
235 1 6 if builtin::refaddr($other) == builtin::refaddr($self)
237 3 3 $self->defaults || $other->defaults ? :
260 0 25773 if $self->output_format eq "data_only"
271 16890 0 if $encoder->can("indent_length")