Branch Coverage

blib/lib/PDL/Char.pm
Criterion Covered Total %
branch 28 38 73.6


line true false branch
69 0 3 scalar @_ > 1 ? :
72 1 2 if (ref($value) =~ /PDL/)
73 0 1 if $value->get_datatype != $PDL::Types::PDL_B
81 0 2 unless defined $value
88 1 1 unless ($samelen)
115 10 18 if (ref $w eq 'ARRAY') { }
18 0 elsif (ref \$w eq 'SCALAR') { }
117 0 10 if defined $PDL::Char::dims[$PDL::Char::level] and $PDL::Char::dims[$PDL::Char::level] != scalar @$w
124 0 26 unless $type eq ref $_
134 5 13 if defined $$maxlenref and $len != $$maxlenref
136 2 16 if not defined $$maxlenref or $len > $$maxlenref
162 3 6 if (ref $w eq 'ARRAY') { }
6 0 elsif (ref \$w eq 'SCALAR') { }
215 0 34 $PDL::use_commas ? :
217 23 11 if ($self->dims == 1) { }
224 7 4 @dims == 2 ? :
269 0 3 if $#_ < 2
277 2 7 $i >= length $val ? :
301 0 3 if @_ < 2