Branch Coverage

blib/lib/Lingua/Ogmios/Annotations/SemanticUnit.pm
Criterion Covered Total %
branch 0 112 0.0


line true false branch
41 0 0 unless (defined $fields->{'id'})
44 0 0 unless (defined $fields->{'type'})
57 0 0 if (defined $fields->{$ref})
63 0 0 if ($i == scalar @refTypes)
81 0 0 if (defined $fields->{'form'})
84 0 0 if (defined $fields->{'weights'})
88 0 0 if (defined $fields->{'negation'})
92 0 0 if (defined $fields->{'log_id'})
98 0 0 if (defined $fields->{'canonical_form'})
102 0 0 if ($sem_unit->isNamedEntity)
112 0 0 if (@_)
121 0 0 unless (defined $fh)
125 0 0 if (defined $self->weights)
135 0 0 if (@_)
179 0 0 unless (defined $self->weight($weight_name))
189 0 0 unless (defined $self->weights)
190 0 0 if (scalar @_ > 0) { }
201 0 0 if (@_)
212 0 0 unless (defined $fields->{'named_entity_type'})
243 0 0 if @_
256 0 0 if @_
263 0 0 if @_
273 0 0 if (@_ and scalar @_ == 2)
278 0 0 if (ref $ref eq 'ARRAY') { }
296 0 0 if ($self->reference_name eq 'list_refid_token')
299 0 0 if ($self->reference_name eq 'refid_word')
302 0 0 if ($self->reference_name eq 'refid_phrase')
311 0 0 if ($self->reference_name eq 'list_refid_token')
314 0 0 if ($self->reference_name eq 'refid_word')
317 0 0 if ($self->reference_name eq 'refid_phrase')
320 0 0 if (ref $elmt eq 'Lingua::Ogmios::Annotations::Word')
332 0 0 if ($self->reference_name eq 'list_refid_token')
335 0 0 if ($self->reference_name eq 'refid_word')
338 0 0 if ($self->reference_name eq 'refid_phrase')
374 0 0 if (ref $self->getReference eq 'ARRAY') { }
389 0 0 if @_
396 0 0 if (exists $self->{'type'} and $self->{'type'} eq 'named_entity') { }
406 0 0 if (exists $self->{'type'} and $self->{'type'} eq 'term') { }
418 0 0 if ($self->reference_name eq 'list_refid_token')
425 0 0 if ($self->reference_name eq 'refid_word' or $self->reference_name eq 'refid_phrase')
436 0 0 if ($self->reference_name eq 'list_refid_token')
444 0 0 if ($self->reference_name eq 'refid_word' or $self->reference_name eq 'refid_phrase')
464 0 0 if (not $token->equals($elt->end_token) and $wordcount < $wordLimit)
465 0 0 if (scalar @{$document->getAnnotations->getWordLevel->getElementByToken($token);} > 0)
472 0 0 if ($token->equals($elt->end_token)) { }
496 0 0 if (scalar @{$document->getAnnotations->getSemanticUnitLevel->getElementByToken($token);} > 0) { }
507 0 0 if (defined $token->previous and scalar @{$document->getAnnotations->getWordLevel->getElementByToken($token);} > 0) { }
511 0 0 if (scalar @{$document->getAnnotations->getSemanticUnitLevel->getElementByToken($token);} > 0)
525 0 0 if (scalar @{$document->getAnnotations->getSemanticUnitLevel->getElementByToken($token);} > 0)
550 0 0 if (defined $document->getAnnotations->getSemanticFeaturesLevel->getElementFromIndex('refid_semantic_unit', $self->getId)->[0]) { }
560 0 0 if (defined $document->getAnnotations->getSemanticFeaturesLevel->getElementFromIndex('refid_semantic_unit', $self->getId)->[0]) { }
574 0 0 if (defined $self->getSemanticFeatureFC($document) and $self->getSemanticFeatureFC($document) eq $semTypeValue) { }
587 0 0 if ($self->start_token->equals($element->start_token) and $self->end_token->equals($element->end_token)) { }
602 0 0 if ($self->reference_name eq 'list_refid_token')
610 0 0 if ($self->reference_name eq 'refid_word')
614 0 0 if ($self->reference_name eq 'refid_phrase')