Branch Coverage

blib/lib/Thrift/Parser/Type.pm
Criterion Covered Total %
branch 12 40 30.0


line true false branch
46 0 0 defined $self->value ? :
59 0 78 if (blessed $value)
60 0 0 unless ($value->isa($class))
65 0 78 if defined $value and ref $value
99 2 0 if (my $type_id = $class->type_id)
101 2 0 if ($output->can($method))
122 0 10 if (not blessed $value) { }
0 10 elsif (not $value->isa($class)) { }
165 2 45 ref $self ? :
170 47 1 if ($test_class =~ /^Thrift::Parser::Type::(.+)$/)
175 0 47 unless ($base_type)
181 0 47 unless (defined $id)
216 0 0 $base_class eq 'Thrift::Parser::Method' ? :
217 0 0 $base_class eq 'Thrift::Parser::Method' || $base_class eq 'Thrift::Parser::Type::Struct' || $base_class eq 'Thrift::Parser::Type::Exception' ? :
220 0 0 if ($is_struct)
225 0 0 if ($type->isa('Thrift::IDL::Type::Custom')) { }
228 0 0 unless ($referenced_type)
232 0 0 defined $namespace ? :
244 0 0 if ($is_method) { }
0 0 elsif ($is_struct) { }