Branch Coverage

blib/lib/Test/C2FIT/TypeAdapter.pm
Criterion Covered Total %
branch 23 44 52.2


line true false branch
57 5 0 unless (defined $typeName)
65 0 5 if (defined $object)
68 0 0 if ref $object eq 'ARRAY'
72 5 0 unless defined $typeName
80 1 0 unless defined $typeName
88 0 0 unless defined $typeName
104 0 6 unless defined $packageName
111 2 4 unless (ref $instance)
123 0 6 unless ref $instance
126 0 6 unless $instance->isa('Test::C2FIT::TypeAdapter')
166 6 2 if $self->field
167 2 0 if $self->method
175 0 6 unless $field
182 0 2 unless $method
198 0 6 unless (defined $a)
210 0 6 if $can
213 0 6 if $a eq 'true' and $b == 1
214 0 6 if $a eq 'false' and $b == 0
217 2 4 if ($self->_isnumber($a) and $self->_isnumber($b))
230 0 8 if ($test =~ m[/])
246 4 4 if ($str eq '' or $unparsed != 0 or $!) { }
256 0 0 unless defined $o