Branch Coverage

blib/lib/M3/ServerView/Parser.pm
Criterion Covered Total %
branch 48 54 88.8


line true false branch
20 4 2 unless exists $Parser{$view_pkg}
54 23 7 if (ref $desc eq 'ARRAY') { }
7 0 elsif (ref $desc eq 'CODE') { }
56 11 12 if ($type eq 'text') { }
11 1 elsif ($type eq 'numeric') { }
1 0 elsif ($type eq 'datetime') { }
65 226 4 if (looks_like_number $value) { }
76 21 0 if ($value =~ /^ (\d\d\d\d)(\d\d)(\d\d) - (\d\d) : (\d\d) : (\d\d) $/x)
128 4 2 if ($$self{'current_entry'})
136 11 1040 if ($tagname eq 'table') { }
81 959 elsif ($tagname eq 'tr' and $$self{'in_table'}) { }
697 262 elsif ($tagname eq 'td' || $tagname eq 'th' and $$self{'in_table_row'} || $$self{'_handle_corrupt_open_row'}) { }
187 81 elsif ($tagname eq 'a' and $$self{'in_table_cell'} and $$self{'table_is_data'} and $$self{'row'} > 1 and $$self{'current_entry'}) { }
151 67 14 if ($$self{'current_entry'})
155 71 10 if ($$self{'row'} > 1 and $$self{'table_is_data'})
162 8 689 if ($$self{'_handle_corrupt_open_row'})
173 187 0 if ($href)
175 187 0 if ($setter)
185 792 176 if ($$self{'in_table_cell'})
187 95 697 if ($$self{'row'} == 1) { }
690 7 elsif ($$self{'row'} > 1 and $$self{'current_entry'}) { }
189 28 67 if ($self->_has_column_named($column)) { }
190 2 26 if ($self->_column_id($column) != $$self{'column'})
201 690 0 if ($setter)
211 795 274 if $tagname =~ /^table|tr|td$/
212 110 959 if $tagname =~ /^table|tr$/
213 11 1058 if $tagname eq 'table'