Branch Coverage

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


line true false branch
86 0 13340 if not $self->valid || $self->error_count
92 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') { }
97 15 7404 $formatted_annotations && $self->annotation_count ? :
7419 5965 $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 13388 if $self->output_format eq "data_only"
193 0 12980 if $encoder->can("indent_length")