Condition Coverage

blib/lib/Catmandu/Importer/HOCR.pm
Criterion Covered Total %
condition 26 29 89.6


and 3 conditions

line !l l&&!r l&&r condition
118 51 14 24 $nodeType == $start_element and defined $class
65 22 2 $nodeType == $start_element and defined $class and $class eq 'ocr_page'
51 14 22 $nodeType == $start_element and defined $class
65 19 3 $nodeType == $start_element and defined $class and $class eq 'ocr_line'
51 14 19 $nodeType == $start_element and defined $class
65 19 0 $nodeType == $start_element and defined $class and $class eq 'ocr_word' || $class eq 'ocrx_word'
47 18 3 defined $line and $nodeType == $end_element
156 7 7 16 $reader->nodeType == $end_element and $reader->localName eq 'span'

or 2 conditions

line l !l condition
120 0 2 $self->current_page // {'no', 0}

or 3 conditions

line l !l&&r !l&&!r condition
118 0 16 3 $class eq 'ocr_word' || $class eq 'ocrx_word'