Branch Coverage

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


line true false branch
29 0 181 unless defined $args{'validator'}
30 0 181 if ref $args{'validator'} ne 'CODE'
34 9 172 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 77 104 if (exists $args{'base'})
54 0 77 unless (defined $args{'base'} and blessed($args{'base'}) and $args{'base'}->isa('Salvation::TC::Meta::Type'))
69 0 246 if (exists $args{$key} and defined $args{$key} and ref $args{$key} ne 'CODE')
233 0 11 unless (defined $signed_type_generator)
242 22 0 if $self->check($_[0])
258 0 19 unless (defined $length_type_generator)
267 32 0 if $self->check($_[0])
300 3 7 if ($@)
302 3 0 if (blessed $@ and $@->isa('Salvation::TC::Exception::WrongType')) { }