Branch Coverage

xs/meta.c
Criterion Covered Total %
branch 34 42 80.9


line true false branch
29 0 459 return unit_size(self);
456 3 return unit_size(self);
33 0 218 return unit_size(self) * self->extra[0].array.element_count;
218 0 return unit_size(self) * self->extra[0].array.element_count;
42 732 85 if(self->type_code == FFI_PL_TYPE_RECORD
43 725 7 || self->type_code == FFI_PL_TYPE_RECORD_VALUE
44 721 4 || self->type_code == (FFI_PL_TYPE_RECORD | FFI_PL_SHAPE_CUSTOM_PERL)
45 2 719 || self->type_code == (FFI_PL_TYPE_RECORD_VALUE | FFI_PL_SHAPE_CUSTOM_PERL))
100 15 5 for(i=0; i < number_of_arguments; i++)
120 8 64 if(self->extra[0].record.class != NULL)
131 0 183 hv_store(meta, "element_size", 12, newSViv(unit_size(self)), 0);
180 3 hv_store(meta, "element_size", 12, newSViv(unit_size(self)), 0);
139 0 30 hv_store(meta, "element_size", 12, newSViv(unit_size(self)), 0);
30 0 hv_store(meta, "element_size", 12, newSViv(unit_size(self)), 0);
144 0 90 hv_store(meta, "element_size", 12, newSViv(unit_size(self)), 0);
90 0 hv_store(meta, "element_size", 12, newSViv(unit_size(self)), 0);
152 48 33 if(self->extra[0].custom_perl.perl_to_native != NULL)
155 37 44 if(self->extra[0].custom_perl.perl_to_native_post != NULL)
158 59 22 if(self->extra[0].custom_perl.native_to_perl != NULL)
161 2 79 if(self->type_code == (FFI_PL_TYPE_RECORD | FFI_PL_SHAPE_CUSTOM_PERL))
165 1 1 if(self->extra[0].record.class != NULL)