blib/lib/Elastic/Model/TypeMap/Base.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 35 | 58 | 60.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
64 | 0 | 77 | 0 | $attr->can('deflator') and $attr->deflator |
83 | 0 | 77 | 0 | $attr->can('inflator') and $attr->inflator |
93 | 204 | 0 | 1 | $mapping and %$mapping |
136 | 8 | 3 | 382 | $tc->can('parent') && $tc->parent |
365 | 75 | 0 | 14 | $new_type and $new_type ne $type |
420 | 83 | 8 | 0 | $defn->{'index_analyzer'} and $defn->{'search_analyzer'} |
452 | 0 | 22 | 27 | $_->can('exclude') && $_->exclude |
line | l | !l | condition |
---|---|---|---|
359 | 1 | 106 | $attr->can('mapping') && $attr->mapping || {$map->find_mapper($attr)} |
362 | 106 | 1 | $mapping->{'type'} || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
24 | 0 | 0 | 149 | $callee->isa('Elastic::Model::TypeMap::Base') or @args == 0 |
64 | 0 | 55 | 22 | $attr->can('deflator') and $attr->deflator or eval { |
83 | 0 | 55 | 22 | $attr->can('inflator') and $attr->inflator or eval { |
126 | 1006 | 6 | 0 | $tc ||= find_type_constraint('Any') |
132 | 307 | 312 | 393 | $handlers->{$name} || $$handlers{ref $tc} |
145 | 0 | 0 | 0 | $attrs ||= $map->indexable_attrs($class) |
201 | 0 | 0 | 0 | $attrs ||= $map->indexable_attrs($class) |
339 | 23 | 9 | 0 | $attrs ||= $map->indexable_attrs($class) |
398 | 6 | 13 | 0 | $defn->{'type'} ||= $type |
406 | 15 | 18 | 6 | $allowed->{$key} or $key eq 'type' |
446 | 0 | 9 | 0 | $map->model->class_for($class) || $class |