Branch Coverage

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


line true false branch
28 2 17 if ($title)
40 5 5 if $options->{'store_file'}
43 5 5 if $options->{'store_file'}
59 134 134 if $options->{'store_file'}
62 8 260 if $line =~ /^\s*$/
63 16 244 if $line =~ /^\s*##end=/i
64 6 238 if ($line =~ s/^\s*##title=//i) { }
112 126 elsif ($line =~ /^\s*##([^=]*)=(.*)$/) { }
126 0 elsif ($block->{'labels'}) { }
65 2 4 if (defined $last_label and $last_label ne '')
74 108 4 if (defined $last_label and $last_label ne '')
85 12 4 if (defined $last_label and $last_label ne '')
104 2 130 if (exists $self->{'data'}{$ldr->canonical_label})
126 2 1 if $_->label ne 'TITLE'
127 1 0 exists $self->{'data'}{'TITLE'} ? :
1 0 exists $self->{'data'}{'JCAMPDX'} ? :