Branch Coverage

xs/Type.xs
Criterion Covered Total %
branch 58 62 93.5


line true false branch
55 1 18 if((type_code & FFI_PL_SHAPE_MASK) == FFI_PL_SHAPE_CUSTOM_PERL)
119 4 15 if((type_code & FFI_PL_SHAPE_MASK) == FFI_PL_SHAPE_CUSTOM_PERL)
192 1 14 switch(self->type_code)
227 11 2 || self->type_code == (FFI_PL_TYPE_RECORD | FFI_PL_SHAPE_CUSTOM_PERL);
2 9 || self->type_code == (FFI_PL_TYPE_RECORD | FFI_PL_SHAPE_CUSTOM_PERL);
236 16 4 || self->type_code == (FFI_PL_TYPE_RECORD_VALUE | FFI_PL_SHAPE_CUSTOM_PERL);
1 15 || self->type_code == (FFI_PL_TYPE_RECORD_VALUE | FFI_PL_SHAPE_CUSTOM_PERL);
250 205 2 && ( base == FFI_PL_BASE_SINT
156 49 && ( base == FFI_PL_BASE_SINT
251 69 87 || base == FFI_PL_BASE_UINT
252 39 30 || base == FFI_PL_BASE_FLOAT
253 2 37 || base == FFI_PL_BASE_OPAQUE
254 1 1 || base == FFI_PL_BASE_RECORD
255 1 0 || base == (FFI_PL_BASE_RECORD | FFI_PL_BASE_OPAQUE)
270 26 0 && ( base == FFI_PL_BASE_SINT
16 10 && ( base == FFI_PL_BASE_SINT
271 8 8 || base == FFI_PL_BASE_UINT
272 6 2 || base == FFI_PL_BASE_OPAQUE
281 6 0 RETVAL = self->type_code == FFI_PL_TYPE_STRING &&
4 2 RETVAL = self->type_code == FFI_PL_TYPE_STRING &&
290 89 2345 if(self->type_code == FFI_PL_TYPE_CLOSURE)
292 13 76 if(!PL_dirty)
295 2280 65 else if(self->type_code == FFI_PL_TYPE_RECORD
296 7 2273 || self->type_code == FFI_PL_TYPE_RECORD_VALUE)
298 28 44 if(self->extra[0].record.class != NULL)
311 107 102 if(custom->perl_to_native != NULL)
313 62 147 if(custom->perl_to_native_post != NULL)
315 127 82 if(custom->native_to_perl != NULL)
317 4 205 if(self->extra[0].record.class != NULL)
323 24 0 if(self->extra[0].object.class != NULL)
331 230 2204 if(!PL_dirty)