Branch Coverage

blib/lib/Salvation/TC.pm
Criterion Covered Total %
branch 36 52 69.2


line true false branch
224 68 8 unless $class->can('create_validator_from_sig')
274 56 20 unless $class->can('create_length_validator')
325 7 1 unless defined $_[0] and blessed($_[0]) and $_[0]->isa($class)
510 316 9 if (scalar @$tokens == 1) { }
512 220 96 if (exists $$tokens[0]{'type'}) { }
2 94 elsif (exists $$tokens[0]{'maybe'}) { }
51 43 elsif (exists $$tokens[0]{'class'}) { }
15 28 elsif (exists $$tokens[0]{'signed'}) { }
28 0 elsif (exists $$tokens[0]{'length'}) { }
549 0 15 if defined $present_type
558 4 11 $type->isa('Salvation::TC::Meta::Type::Parameterized') ? :
562 4 11 $method eq 'setup_parameterized_type' ? :
583 5 23 $type->isa('Salvation::TC::Meta::Type::Parameterized') ? :
587 5 19 $method eq 'setup_parameterized_type' ? :
1 23 $type->has_signature ? :
651 143 77 if defined $type
656 76 0 if (not 'Class::Inspector'->loaded($str) || eval { do { &Module::Load::load($str); 1 } } and 'Class::Inspector'->loaded($salvation_tc_type_str) || eval { do { &Module::Load::load($salvation_tc_type_str); 1 } })
675 76 1 if ($str->isa($$spec[0]))
727 90 56 if ($@)
729 90 0 if (blessed $@ and $@->isa('Salvation::TC::Exception::WrongType')) { }
760 0 0 if ($@)
762 0 0 if (blessed $@ and $@->isa('Salvation::TC::Exception::WrongType')) { }
788 0 0 if ($node->isa('Salvation::TC::Exception::WrongType::TC')) { }
792 0 0 if (defined(my $param_name = $node->getParamName)) { }
810 0 0 if (defined(my $prev = $node->getPrev)) { }
814 0 0 if (ref $prev eq 'ARRAY') { }