Branch Coverage

blib/lib/Thrift/Parser/FieldSet.pm
Criterion Covered Total %
branch 20 24 83.3


line true false branch
47 2 4 if ($field->name eq $name)
66 1 2 if ($field->id eq $id)
130 0 6 unless ($class->idl)
134 1 5 unless ($class->idl->can('field_id'))
146 2 11 defined $args{'_' . $field->id} ? :
148 0 13 if (defined $default_value and not defined $args{$key})
153 1 12 if (not defined $default_value || defined $args{$key} || $field->optional and $class->isa('Thrift::Parser::Type::Struct'))
162 1 7 if (my($id) = $key =~ /^_(\d+)$/) { }
168 1 7 unless ($idl_field)
179 3 4 if ($type->isa('Thrift::IDL::Type::Custom')) { }
182 0 3 unless ($referenced_type)
186 3 0 defined $namespace ? :