Branch Coverage

blib/lib/JSON/Schema/Modern/Result.pm
Criterion Covered Total %
branch 43 60 71.6


line true false branch
82 3 3 unless scalar @{$_[0]{"errors"} // []}
84 14327 1 unless scalar @{$_[0]{"annotations"} // []}
146 0 17399 if exists $$args{"_errors"}
147 24 17375 if exists $$args{"_annotations"}
153 1 25753 if ($style eq 'flag') { }
25748 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') { }
154 0 1 $self->valid ? :
158 14329 11419 $self->valid ? :
25 14304 $formatted_annotations && $self->annotation_count ? :
14329 11419 $self->valid ? :
9 25739 $self->valid && $self->defaults ? :
168 0 1 $self->valid ? :
0 0 $formatted_annotations && $self->annotation_count ? :
0 1 $self->valid ? :
194 17 12 if $keep
195 17 12 if $keep
201 0 2 unless $self->valid or @errors
204 0 2 $self->valid ? :
0 0 $formatted_annotations && $self->annotation_count ? :
0 2 $self->valid ? :
211 0 2 unless $self->error_count
222 0 0 $_[0]->valid ? :
225 1 7 unless $other->$JSON::Schema::Modern::Result::_isa(__PACKAGE__)
227 1 6 if builtin::refaddr($other) == builtin::refaddr($self)
229 3 3 $self->defaults || $other->defaults ? :
252 0 25752 if $self->output_format eq "data_only"
263 16878 0 if $encoder->can("indent_length")