Branch Coverage

blib/lib/JSON/Schema/Modern/Result.pm
Criterion Covered Total %
branch 28 42 66.6


line true false branch
86 0 13212 if not $self->valid || $self->error_count
92 1 13261 if ($style eq 'flag') { }
13256 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') { }
97 15 7328 $formatted_annotations && $self->annotation_count ? :
7343 5913 $self->valid ? :
106 0 0 $formatted_annotations && $self->annotation_count ? :
0 1 $self->valid ? :
132 17 12 if $keep
133 17 12 if $keep
139 0 2 unless $self->valid or @errors
142 0 0 $formatted_annotations && $self->annotation_count ? :
0 2 $self->valid ? :
149 0 2 unless $self->error_count
159 0 0 $_[0]->valid ? :
162 1 4 unless $other->$JSON::Schema::Modern::Result::_isa("JSON::Schema::Modern::Result")
164 1 3 if &refaddr($other) == &refaddr($self)
187 0 13260 if $self->output_format eq "data_only"
193 0 12854 if $encoder->can("indent_length")