Branch Coverage

blib/lib/FFI/Platypus/Type/WideString.pm
Criterion Covered Total %
branch 24 32 75.0


line true false branch
22 0 12 unless "FFI::Platypus::Memory"->can("_$need")
29 0 6 if $@
40 0 6 if ($size == 2) { }
6 0 elsif ($size == 4) { }
53 6 0 if (defined $orders{$byteorder}) { }
62 0 6 unless &find_encoding($encoding)
96 1 7 unless defined $_[0]
105 2 2 if ($access eq 'read') { }
2 0 elsif ($access eq 'write') { }
108 27 1 if (defined $_[0]) { }
133 8 9 if (ref $ref eq 'ARRAY') { }
8 1 elsif (ref $ref eq 'SCALAR') { }
135 4 4 unless defined ${$$ref[0];}
137 8 0 if (defined $ref->[0])
149 4 4 unless defined $$ref
161 1 16 unless defined $ref