Branch Coverage

lib/Types/Standard/Map.pm
Criterion Covered Total %
branch 44 56 78.5


line true false branch
27 0 29 unless @_
30 2 27 unless Types::TypeTiny::is_TypeTiny($keys)
33 1 26 unless Types::TypeTiny::is_TypeTiny($values)
42 44 8 defined $known ? :
45 19 7 if (@known == 2)
47 19 0 if $xsub
61 0 26 unless $k->can_be_inlined and $v->can_be_inlined
67 44 8 defined $known ? :
70 19 7 if (@known == 2)
77 272 69 if $xsubname and not $Type::Tiny::AvoidCallbacks
96 1 2 unless ($kparam->check($k))
107 1 1 unless ($vparam->check($value->{$k}))
125 10 7 unless $kparam->has_coercion or $vparam->has_coercion
127 5 2 $kparam->has_coercion ? :
131 7 0 $vparam->has_coercion ? :
137 5 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 1 $kparam->has_coercion ? :
4 0 $vparam->has_coercion ? :
174 3 0 @_ ? :
179 1 5 unless $kcoercable_item->check($k) and $vcoercable_item->check($value->{$k})
183 5 0 $kparam->has_coercion ? :
5 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)