Branch Coverage

blib/lib/MooseX/Configuration/Trait/Object.pm
Criterion Covered Total %
branch 23 32 71.8


line true false branch
49 0 1 unless my $file = $self->config_file
65 1 13 unless defined $hash and length $hash
68 0 6 if (ref $hash)
80 1 0 exists $p{'file'} ? :
82 0 1 unless defined $file
99 1 0 if ($p{'generated_by'})
104 1 1 unless ($section eq '_')
112 3 1 if ($attr->has_documentation)
118 1 3 if ($attr->is_required)
122 2 2 if ($attr->has_original_default)
124 2 0 if (length $def)
125 1 1 &looks_like_number($def) ? :
133 4 0 if defined $doc
137 0 4 exists $p{'values'}{$attr->name} ? :
145 3 1 if (defined $value and length $value) { }
158 1 0 if (ref $file eq 'GLOB' or ref \$file eq 'GLOB') { }