blib/lib/PGObject/Type/JSON.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 27 | 32 | 84.3 |
line | true | false | branch |
---|---|---|---|
51 | 0 | 4 | if ref $self |
57 | 2 | 2 | unless defined $types and @$types |
59 | 6 | 0 | if ($PGObject::VERSION =~ /^1./) { } |
63 | 0 | 6 | unless $ret |
84 | 2 | 3 | unless (ref $ref) |
100 | 1 | 4 | unless defined $var |
101 | 1 | 4 | if ref $var |
114 | 1 | 4 | if $self->is_null |
117 | 2 | 0 | if $_ eq 'SCALAR' |
2 | 2 | if ($_ eq 'SCALAR') { } | |
1 | 1 | elsif ($_ eq 'ARRAY') { } | |
1 | 0 | elsif ($_ eq 'HASH') { } | |
136 | 3 | 13 | if $reftype eq 'REF' |
148 | 2 | 5 | if $self->reftype ne 'SCALAR' |
149 | 2 | 3 | unless defined $$self |
150 | 2 | 1 | if ref $self and $self eq $$self |