Branch Coverage

blib/lib/JCAMP/DX.pm
Criterion Covered Total %
branch 29 32 90.6


line true false branch
30 2 17 if ($title)
42 5 5 if $options->{'store_file'}
45 5 5 if $options->{'store_file'}
61 134 134 if $options->{'store_file'}
64 8 260 if $line =~ /^\s*$/
65 16 244 if $line =~ /^\s*##end=/i
66 6 238 if ($line =~ s/^\s*##title=//i) { }
112 126 elsif ($line =~ /^\s*##([^=]*)=(.*)$/) { }
126 0 elsif ($block->{'labels'}) { }
67 2 4 if (defined $last_label and $last_label ne '')
76 108 4 if (defined $last_label and $last_label ne '')
87 12 4 if (defined $last_label and $last_label ne '')
106 2 130 if (exists $self->{'data'}{$ldr->canonical_label})
128 2 1 if $_->label ne 'TITLE'
129 1 0 exists $self->{'data'}{'TITLE'} ? :
1 0 exists $self->{'data'}{'JCAMPDX'} ? :