Branch Coverage

blib/lib/Venus/Type.pm
Criterion Covered Total %
branch 82 94 87.2


line true false branch
31 1947 1 if (keys %$data == 1 and exists $data->{'value'}) { }
1 0 elsif (keys %$data) { }
61 0 114 unless $code
69 0 114 if $callback
91 126 1047 unless defined $data
92 935 112 if scalar_is_blessed($data)
109 3 932 if $data->isa("Regexp")
118 4 2 if ($data and $data->isa("Venus::Hash"))
121 1 7 ref $val ? :
126 2 4 if ($data and $data->isa("Venus::Array"))
129 0 8 ref $val ? :
143 24 88 if ref $data
144 1 87 if scalar_is_boolean($data)
145 6 81 if scalar_is_float($data)
146 66 15 if scalar_is_numeric($data)
171 10 14 if ref $data eq "ARRAY"
172 0 14 if ref $data eq "CODE"
173 11 3 if ref $data eq "HASH"
195 0 12 unless scalar_is_blessed($data)
197 12 0 if UNIVERSAL::isa($data, "Venus::Kind")
207 1 7 if ($data and ref $data and ref $data eq "HASH")
210 2 0 scalar_is_blessed($val) ? :
215 1 7 if ($data and ref $data and ref $data eq "ARRAY")
218 4 0 scalar_is_blessed($val) ? :
730 0 1 &Scalar::Util::looks_like_number($data) ? :
746 0 1 &Scalar::Util::looks_like_number($data) ? :
843 56 559 if (not defined $data) { }
75 484 elsif (scalar_is_blessed($data)) { }
134 350 elsif (ref $data) { }
19 331 elsif (scalar_is_boolean($data)) { }
67 264 elsif (scalar_is_float($data)) { }
118 146 elsif (scalar_is_numeric($data)) { }
848 18 57 $data->isa('Regexp') ? :
852 42 92 if (ref $data eq 'ARRAY') { }
34 58 elsif (ref $data eq 'CODE') { }
46 12 elsif (ref $data eq 'HASH') { }
878 4 611 wantarray ? :
884 10 11 if $#_ <= 0
894 1 10 if $#_ <= 0
904 0 10 if $#_ <= 0
914 6 11 if $#_ <= 0
924 11 11 if $#_ <= 0
934 66 10 if $#_ <= 0
944 3 10 if $#_ <= 0
954 3 13 if $#_ <= 0
964 15 17 if $#_ <= 0
974 126 11 if $#_ <= 0