Branch Coverage

blib/lib/Class/Meta/Type.pm
Criterion Covered Total %
branch 36 40 90.0


line true false branch
155 1 444 unless $_[0]
157 52 392 unless (exists $types{$key})
159 50 2 unless my $cmc = 'Class::Meta'->for_key($key)
325 0 149 if @_ % 2
334 4 292 unless $params{$_}
340 2 143 if exists $types{$params{'key'}}
353 122 21 if ($params{'check'})
355 40 82 if (not $ref) { }
18 64 elsif ($ref eq 'CODE') { }
62 2 elsif ($ref eq 'ARRAY') { }
359 0 40 if ref $params{'check'} eq 'CODE'
366 1 62 unless ref $chk eq 'CODE'
379 0 140 unless eval "require $builder"
397 54 83 if (my $alias = delete $params{'alias'})
398 8 46 if (ref $alias) { }
427 9 1 unless @_
485 0 1 unless @_
522 24 160 unless $_[0]{'check'}
523 98 62 wantarray ? :
544 1 113 unless UNIVERSAL::isa($caller, 'Class::Meta::Attribute')