Branch Coverage

blib/lib/Elastic/Model/Meta/Class/Model.pm
Criterion Covered Total %
branch 21 26 80.7


line true false branch
122 0 24 unless exists $DefaultAnalysis{$type}
123 0 24 unless my $name = shift()
137 3 6 if exists $analyzers{$name} or $self->is_default('analyzer', $name)
139 1 5 unless $analyzers{$name} = $self->analyzer($name)
143 1 3 unless %analyzers
149 4 9 unless my $vals = $analyzers{$analyzer_name}{$type}
150 2 7 ref $vals ? :
152 4 7 if exists $defn{$name} or $self->is_default($type, $name)
154 1 6 unless $defn{$name} = $self->$type($name)
159 6 0 if %defn
169 0 18 unless my $mapping = shift()
171 18 0 unless $mapping->{'fields'}
172 12 6 unless $mapping->{'properties'}