Branch Coverage

lib/Types/Standard/Map.pm
Criterion Covered Total %
branch 43 56 76.7


line true false branch
27 0 27 unless @_
30 2 25 unless Types::TypeTiny::is_TypeTiny($keys)
33 1 24 unless Types::TypeTiny::is_TypeTiny($values)
42 40 8 defined $known ? :
45 17 7 if (@known == 2)
47 17 0 if $xsub
61 0 24 unless $k->can_be_inlined and $v->can_be_inlined
67 40 8 defined $known ? :
70 17 7 if (@known == 2)
77 257 69 if $xsubname and not $Type::Tiny::AvoidCallbacks
96 1 2 unless ($kparam->check($k))
107 1 1 unless ($vparam->check($value->{$k}))
125 9 6 unless $kparam->has_coercion or $vparam->has_coercion
127 5 1 $kparam->has_coercion ? :
131 6 0 $vparam->has_coercion ? :
137 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) { }
157 3 0 $kparam->has_coercion ? :
3 0 $vparam->has_coercion ? :
174 3 0 @_ ? :
179 1 7 unless $kcoercable_item->check($k) and $vcoercable_item->check($value->{$k})
183 7 0 $kparam->has_coercion ? :
7 0 $vparam->has_coercion ? :
197 6 39 if $self == &Types::Standard::Map()
200 43 0 if $_->has_parent
210 3 7 unless $self->my_hashref_allows_key($key)
211 0 7 if $self == &Types::Standard::Map()
214 7 0 if $_->has_parent
217 7 0 if ($kcheck || &Types::Standard::Any())->check($key)