Branch Coverage

blib/lib/Dist/AutomationPolicy.pm
Criterion Covered Total %
branch 20 28 71.4


line true false branch
113 0 16 $self->has_description ? :
0 16 $self->has_document ? :
7 9 $self->models->[0] ? :
139 0 9 if (@args == 1 and not ref $args[0])
143 4 5 @args == 1 && ref $args[0] eq 'HASH' ? :
145 4 5 if (my $version = $args{'version'})
146 0 4 if &PositiveInt()->check($version) and $version != 1
151 3 6 if (my $template = delete $args{'template'})
187 3 0 if (my $match = $templates{$template}) { }
208 1 3 if (@args == 1 and not ref $args[0])
212 0 4 @args == 1 && ref $args[0] eq 'HASH' ? :
214 0 4 unless defined $args{'json'}
216 2 2 unless ref $args{'json'}
218 4 0 if (my $res = $schema->validate($args{'json'})) { }