Branch Coverage

blib/lib/Venus/Check.pm
Criterion Covered Total %
branch 176 192 91.6


line true false branch
26 0 0 ref $data eq 'ARRAY' ? :
33 879 0 unless $data->{'on_eval'}
56 0 622 unless ($name)
59 551 71 if ($self->can($name)) { }
78 4 10 if ($source->coded($value, 'array')) { }
101 6 1 if ($source->coded($value, 'object')) { }
116 1 5 if (@pairs % 2)
126 1 4 unless ($value->can($key))
134 0 4 ref $data ? :
136 2 2 unless ($check->eval($value->$key))
145 3 2 if (not $result) { }
169 6 143 if ($source->coded($value, 'boolean')) { }
193 8 168 $self->{'$branch'} ? :
221 392 883 'Venus::Type'->new($data)->coded($name) ? :
229 6 15 if ($source->coded($value, 'code')) { }
252 5 4 if ($source->coded($value, 'object')) { }
267 2 3 if ($value->can('DOES') and $value->DOES($role)) { }
289 5 3 if (defined $value) { }
314 19 88 ref $data[$i] ? :
316 37 70 if ($check->eval($value)) { }
320 37 0 $check->{'$branch'} ? :
329 70 0 $check->{'$branch'} ? :
335 37 22 if ($returns) { }
356 7 1 if (defined $value) { }
371 4 12 if ($value eq $item) { }
400 836 1020 $self->$callback($data) ? :
401 1020 836 unless $result
413 1 1 !($passed || $failed) ? :
445 2 1 $result->{'okay'} ? :
3 2 $result ? :
453 35 150 if ($source->coded($value, 'float')) { }
482 27 5 if (defined $value) { }
495 26 1 if (UNIVERSAL::isa($value, 'HASH')) { }
508 16 10 if (keys %{$value;} > 0) { }
521 1 15 if (@pairs % 2)
531 1 26 unless (exists $value->{$key})
539 8 18 ref $data ? :
541 4 22 unless ($check->eval($value->{$key}))
550 5 10 if (not $result) { }
568 4 148 if ($source->coded($value, 'hash')) { }
595 0 9 ref $data[$i] ? :
597 6 3 if ($check->eval($value)) { }
601 6 0 $check->{'$branch'} ? :
609 3 0 $check->{'$branch'} ? :
616 3 3 if (@errors) { }
637 109 25 if ($source->coded($value, 'object')) { }
652 103 6 if ($value->isa($name)) { }
674 5 4 if ($source->coded($value, 'object')) { }
689 2 3 if ($value->isa($name)) { }
711 5 4 if ($source->coded($value, 'object')) { }
726 2 3 if ($value->can('DOES') and $value->DOES($role)) { }
746 5 0 $match ? :
756 53 163 if ($source->coded($value, 'number')) { }
779 8 13 if ($source->coded($value, 'object')) { }
802 6 3 if ($source->coded($value, 'string')) { }
817 5 1 if ($value =~ /^[A-Z](?:(?:\w|::)*[a-zA-Z0-9])?$/u) { }
831 2 3 if ('Venus::Space'->new($value)->loaded) { }
870 2 1 $result->{'okay'} ? :
3 2 $result ? :
878 10 1 if (defined $value) { }
891 5 5 if (ref $value) { }
912 2 8 if ($source->coded($value, 'regexp')) { }
933 100 102 if @data
937 0 202 unless defined $result
943 37 165 $okay ? :
951 5 5 if ($source->coded($value, 'object')) { }
968 2 3 if ($value->can($item)) { }
999 6 12 if ($source->coded($value, 'scalar')) { }
1022 123 158 if ($source->coded($value, 'string')) { }
1045 14 1 if (defined $value) { }
1058 9 5 if (UNIVERSAL::isa($value, 'ARRAY')) { }
1071 6 3 if (@data == @{$value;}) { }
1086 0 12 ref $data[$i] ? :
1088 3 9 unless ($check->eval($value->[$i]))
1097 3 3 if (not $result) { }
1132 3 16 if ($source->coded($value, 'undef')) { }
1155 12 1 if (defined $value) { }
1168 7 5 if (not ref $value) { }
1187 0 30 unless ($type)
1193 13 17 if (lc $type eq 'hash' or lc $type eq 'hashref') { }
17 0 elsif (lc $type eq 'array' or lc $type eq 'arrayref') { }
1196 8 1 if (defined $value) { }
1209 7 1 if (UNIVERSAL::isa($value, 'HASH')) { }
1222 5 2 if (keys %{$value;} > 0) { }
1239 2 3 unless ($check->eval($value->{$key}))
1248 2 3 if (not $result) { }
1261 26 2 if (defined $value) { }
1274 17 9 if (UNIVERSAL::isa($value, 'ARRAY')) { }
1287 12 5 if (@{$value;} > 0) { }
1305 6 6 unless ($check->eval($item))
1314 6 6 if (not $result) { }
1332 6 24 ref $_ ? :
30 0 if @next
1342 14 2 if (defined $value) { }
1355 11 3 if ($value =~ /^(?:1|y(?:es)?|0|n(?:o)?)$/iu) { }
1380 79 107 $data->{'branch'} ? :