Branch Coverage

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


line true false branch
85 0 13341 if not $self->valid || $self->error_count
91 1 13389 if ($style eq 'flag') { }
13384 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') { }
96 15 7404 $formatted_annotations && $self->annotation_count ? :
7419 5965 $self->valid ? :
105 0 0 $formatted_annotations && $self->annotation_count ? :
0 1 $self->valid ? :
131 17 12 if $keep
132 17 12 if $keep
138 0 2 unless $self->valid or @errors
141 0 0 $formatted_annotations && $self->annotation_count ? :
0 2 $self->valid ? :
148 0 2 unless $self->error_count
158 0 0 $_[0]->valid ? :
161 1 4 unless $other->$JSON::Schema::Modern::Result::_isa("JSON::Schema::Modern::Result")
163 1 3 if &refaddr($other) == &refaddr($self)
186 0 13388 if $self->output_format eq "data_only"
192 0 12980 if $encoder->can("indent_length")