Branch Coverage

lib/Types/Standard/Map.pm
Criterion Covered Total %
branch 56 74 75.6


line true false branch
29 1 1 exists $values->{'of'} ? :
30 0 2 unless defined $keys
31 0 2 unless defined $vals
33 1 1 unless (Types::TypeTiny::is_TypeTiny($keys))
38 1 1 unless (Types::TypeTiny::is_TypeTiny($vals))
47 0 2 $type->has_coercion ? :
0 2 exists $values->{'where'} ? :
53 1 1 $INC{'Type/Registry.pm'} ? :
2 0 unless ref $caller or $caller eq "-lexical" or $globals->{'lexical'}
62 0 30 unless @_
66 2 26 unless Types::TypeTiny::is_TypeTiny($keys)
69 1 25 unless Types::TypeTiny::is_TypeTiny($values)
78 42 8 defined $known ? :
81 18 7 if (@known == 2)
83 18 0 if $xsub
97 0 25 unless $k->can_be_inlined and $v->can_be_inlined
103 42 8 defined $known ? :
106 18 7 if (@known == 2)
113 259 69 if $xsubname and not $Type::Tiny::AvoidCallbacks
132 1 2 unless ($kparam->check($k))
143 1 1 unless ($vparam->check($value->{$k}))
161 10 6 unless $kparam->has_coercion or $vparam->has_coercion
163 5 1 $kparam->has_coercion ? :
167 6 0 $vparam->has_coercion ? :
173 4 2 if (!$kparam->has_coercion || $kparam->coercion->can_be_inlined and !$vparam->has_coercion || $vparam->coercion->can_be_inlined and $kcoercable_item->can_be_inlined and $vcoercable_item->can_be_inlined) { }
193 3 0 $kparam->has_coercion ? :
3 0 $vparam->has_coercion ? :
210 3 0 @_ ? :
215 1 5 unless $kcoercable_item->check($k) and $vcoercable_item->check($value->{$k})
219 5 0 $kparam->has_coercion ? :
5 0 $vparam->has_coercion ? :
233 6 39 if $self == &Types::Standard::Map()
236 43 0 if $_->has_parent
246 3 7 unless $self->my_hashref_allows_key($key)
247 0 7 if $self == &Types::Standard::Map()
250 7 0 if $_->has_parent
253 7 0 if ($kcheck || &Types::Standard::Any())->check($key)