Branch Coverage

blib/lib/Salvation/TC/Meta/Type.pm
Criterion Covered Total %
branch 17 28 60.7


line true false branch
29 0 178 unless defined $args{'validator'}
30 0 178 if ref $args{'validator'} ne 'CODE'
34 9 169 if (exists $args{'parent'})
36 0 9 unless (defined $args{'parent'} and blessed($args{'parent'}) and $args{'parent'}->isa('Salvation::TC::Meta::Type'))
48 22 0 if &$parent_validator($_[0])
52 74 104 if (exists $args{'base'})
54 0 74 unless (defined $args{'base'} and blessed($args{'base'}) and $args{'base'}->isa('Salvation::TC::Meta::Type'))
69 0 206 if (exists $args{$key} and defined $args{$key} and ref $args{$key} ne 'CODE')
211 0 8 unless (defined $signed_type_generator)
220 16 0 if $self->check($_[0])
236 0 19 unless (defined $length_type_generator)
245 32 0 if $self->check($_[0])
274 3 7 if ($@)
276 3 0 if (blessed $@ and $@->isa('Salvation::TC::Exception::WrongType')) { }