Branch Coverage

blib/lib/PDL/IO/Dcm.pm
Criterion Covered Total %
branch 1 84 1.1


line true false branch
156 0 0 if (ref $struct eq 'ARRAY') { }
0 0 elsif (ref $struct eq 'HASH') { }
0 0 elsif (ref $struct eq 'PDL') { }
159 0 0 if (ref $struct->[$i] eq 'HASH') { }
0 0 elsif (ref $struct->[$i] eq 'ARRAY') { }
0 0 elsif (ref $struct->[$i] eq 'PDL') { }
162 0 0 if @{$struct->[$i];} == 0
164 0 0 if $string
175 0 0 if (ref $struct->{$_} eq 'HASH') { }
0 0 elsif (ref $struct->{$_} eq 'ARRAY') { }
0 0 elsif (ref $struct->{$_} eq 'PDL') { }
179 0 0 if $string
203 0 0 if (ref $value eq 'ARRAY') { }
0 0 elsif (ref $value eq 'HASH') { }
222 0 0 if ($vr eq 'XX' and defined $tag)
245 0 0 unless defined $data
248 0 0 if $datatype =~ /OW|XX/
262 0 0 if (defined $tag) { }
275 0 0 if $opt->{'delete_raw'}
285 0 0 if any($a->shape - $b->shape)
287 0 0 if $opt =~ /d/
288 0 0 if $a->hdr->{'dicom'}{'Pixel Spacing'} ne $b->hdr->{'dicom'}{'Pixel Spacing'}
290 0 0 if $a->hdr->{'dicom'}{'Image Orientation (Patient)'} ne $b->hdr->{'dicom'}{'Image Orientation (Patient)'}
305 0 0 unless opendir my $dir, $dname
307 0 0 unless -f "$dname/$file"
310 0 0 unless eval { do { $p->isa('PDL') } }
315 0 0 unless ref $dcms{$pid}
319 0 0 if (defined $ref)
320 0 0 unless (is_equal($ref, $p))
321 0 0 if (not $sp and is_equal($ref, $p->transpose, 'd')) { }
331 0 0 if (ref $dcms{$nid} eq 'HASH') { }
335 0 0 unless $flag
349 0 0 unless (grep /^$pid$/, @pid)
387 0 0 unless eval { do { $dims->isa('PDL') } }
392 0 0 unless $x
397 0 0 if ($ref->hdr->{'tp'}) { }
414 0 0 if ($dcm->hdr->{'tp'}) { }
432 0 0 if ($dcm->hdr->{'dicom'}{$field} ne $ref->hdr->{'dicom'}{$field})
434 0 0 unless ref $header->{'diff'}{$field}
454 0 0 if ref($val) =~ /PDL/
476 0 0 if ref($val) =~ /PDL/
497 0 1 if ($_[0] eq '-d')