Branch Coverage

xs/record_simple.c
Criterion Covered Total %
branch 410 720 56.9


line true false branch
23 0 10 if(items == 0)
29 10 0 if(SvROK(self))
32 0 10 if(!SvOK(self))
0 0 if(!SvOK(self))
0 0 if(!SvOK(self))
35 10 0 ptr1 = (char*) SvPV_nolen(self);
38 7 3 if(items > 1)
40 0 7 if(SvREADONLY(self))
46 0 7 *ptr2 = (uint8_t) SvUV(ST(1));
50 10 0 if(GIMME_V == G_VOID)
7 3 if(GIMME_V == G_VOID)
69 0 5 if(items == 0)
75 5 0 if(SvROK(self))
78 5 0 ptr1 = (char*) SvPV_nolen(self);
81 3 2 if(items > 1 && SvREADONLY(self))
0 3 if(items > 1 && SvREADONLY(self))
86 1 4 if(items > 2)
88 1 0 i = SvIV(ST(1));
89 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
92 0 1 ptr2[i] = SvUV(arg);
99 2 2 else if(items > 1)
102 1 1 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
1 0 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
105 3 1 for(i=0; i < member->count; i++)
108 3 0 if(item != NULL && SvOK(*item))
0 3 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
110 0 3 ptr2[i] = SvUV(*item);
120 1 0 i = SvIV(ST(1));
121 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
133 4 0 if(GIMME_V == G_VOID)
2 2 if(GIMME_V == G_VOID)
138 6 2 for(i=0; i < member->count; i++)
155 0 5 if(items == 0)
161 5 0 if(SvROK(self))
164 0 5 if(!SvOK(self))
0 0 if(!SvOK(self))
0 0 if(!SvOK(self))
167 5 0 ptr1 = (char*) SvPV_nolen(self);
170 2 3 if(items > 1)
172 0 2 if(SvREADONLY(self))
178 2 0 *ptr2 = (int8_t) SvIV(ST(1));
182 5 0 if(GIMME_V == G_VOID)
2 3 if(GIMME_V == G_VOID)
201 0 5 if(items == 0)
207 5 0 if(SvROK(self))
210 5 0 ptr1 = (char*) SvPV_nolen(self);
213 3 2 if(items > 1 && SvREADONLY(self))
0 3 if(items > 1 && SvREADONLY(self))
218 1 4 if(items > 2)
220 1 0 i = SvIV(ST(1));
221 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
224 1 0 ptr2[i] = SvIV(arg);
231 2 2 else if(items > 1)
234 1 1 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
1 0 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
237 3 1 for(i=0; i < member->count; i++)
240 3 0 if(item != NULL && SvOK(*item))
0 3 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
242 3 0 ptr2[i] = SvIV(*item);
252 1 0 i = SvIV(ST(1));
253 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
265 4 0 if(GIMME_V == G_VOID)
2 2 if(GIMME_V == G_VOID)
270 6 2 for(i=0; i < member->count; i++)
287 0 1 if(items == 0)
293 1 0 if(SvROK(self))
296 0 1 if(!SvOK(self))
0 0 if(!SvOK(self))
0 0 if(!SvOK(self))
299 1 0 ptr1 = (char*) SvPV_nolen(self);
302 1 0 if(items > 1)
304 0 1 if(SvREADONLY(self))
310 0 1 *ptr2 = (uint16_t) SvUV(ST(1));
314 1 0 if(GIMME_V == G_VOID)
1 0 if(GIMME_V == G_VOID)
333 0 5 if(items == 0)
339 5 0 if(SvROK(self))
342 5 0 ptr1 = (char*) SvPV_nolen(self);
345 3 2 if(items > 1 && SvREADONLY(self))
0 3 if(items > 1 && SvREADONLY(self))
350 1 4 if(items > 2)
352 1 0 i = SvIV(ST(1));
353 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
356 0 1 ptr2[i] = SvUV(arg);
363 2 2 else if(items > 1)
366 1 1 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
1 0 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
369 3 1 for(i=0; i < member->count; i++)
372 3 0 if(item != NULL && SvOK(*item))
0 3 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
374 0 3 ptr2[i] = SvUV(*item);
384 1 0 i = SvIV(ST(1));
385 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
397 4 0 if(GIMME_V == G_VOID)
2 2 if(GIMME_V == G_VOID)
402 6 2 for(i=0; i < member->count; i++)
419 0 5 if(items == 0)
425 5 0 if(SvROK(self))
428 0 5 if(!SvOK(self))
0 0 if(!SvOK(self))
0 0 if(!SvOK(self))
431 5 0 ptr1 = (char*) SvPV_nolen(self);
434 2 3 if(items > 1)
436 0 2 if(SvREADONLY(self))
442 2 0 *ptr2 = (int16_t) SvIV(ST(1));
446 5 0 if(GIMME_V == G_VOID)
2 3 if(GIMME_V == G_VOID)
465 0 5 if(items == 0)
471 5 0 if(SvROK(self))
474 5 0 ptr1 = (char*) SvPV_nolen(self);
477 3 2 if(items > 1 && SvREADONLY(self))
0 3 if(items > 1 && SvREADONLY(self))
482 1 4 if(items > 2)
484 1 0 i = SvIV(ST(1));
485 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
488 1 0 ptr2[i] = SvIV(arg);
495 2 2 else if(items > 1)
498 1 1 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
1 0 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
501 3 1 for(i=0; i < member->count; i++)
504 3 0 if(item != NULL && SvOK(*item))
0 3 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
506 3 0 ptr2[i] = SvIV(*item);
516 1 0 i = SvIV(ST(1));
517 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
529 4 0 if(GIMME_V == G_VOID)
2 2 if(GIMME_V == G_VOID)
534 6 2 for(i=0; i < member->count; i++)
551 0 7 if(items == 0)
557 7 0 if(SvROK(self))
560 0 7 if(!SvOK(self))
0 0 if(!SvOK(self))
0 0 if(!SvOK(self))
563 7 0 ptr1 = (char*) SvPV_nolen(self);
566 4 3 if(items > 1)
568 0 4 if(SvREADONLY(self))
574 0 4 *ptr2 = (uint32_t) SvUV(ST(1));
578 7 0 if(GIMME_V == G_VOID)
4 3 if(GIMME_V == G_VOID)
597 0 5 if(items == 0)
603 5 0 if(SvROK(self))
606 5 0 ptr1 = (char*) SvPV_nolen(self);
609 3 2 if(items > 1 && SvREADONLY(self))
0 3 if(items > 1 && SvREADONLY(self))
614 1 4 if(items > 2)
616 1 0 i = SvIV(ST(1));
617 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
620 0 1 ptr2[i] = SvUV(arg);
627 2 2 else if(items > 1)
630 1 1 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
1 0 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
633 3 1 for(i=0; i < member->count; i++)
636 3 0 if(item != NULL && SvOK(*item))
0 3 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
638 0 3 ptr2[i] = SvUV(*item);
648 1 0 i = SvIV(ST(1));
649 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
661 4 0 if(GIMME_V == G_VOID)
2 2 if(GIMME_V == G_VOID)
666 6 2 for(i=0; i < member->count; i++)
683 0 23 if(items == 0)
689 23 0 if(SvROK(self))
692 0 23 if(!SvOK(self))
0 0 if(!SvOK(self))
0 0 if(!SvOK(self))
695 23 0 ptr1 = (char*) SvPV_nolen(self);
698 11 12 if(items > 1)
700 2 9 if(SvREADONLY(self))
706 9 0 *ptr2 = (int32_t) SvIV(ST(1));
710 21 0 if(GIMME_V == G_VOID)
9 12 if(GIMME_V == G_VOID)
729 0 69 if(items == 0)
735 69 0 if(SvROK(self))
738 69 0 ptr1 = (char*) SvPV_nolen(self);
741 61 8 if(items > 1 && SvREADONLY(self))
4 57 if(items > 1 && SvREADONLY(self))
746 8 57 if(items > 2)
748 8 0 i = SvIV(ST(1));
749 8 0 if(i >= 0 && i < member->count)
8 0 if(i >= 0 && i < member->count)
752 8 0 ptr2[i] = SvIV(arg);
759 49 8 else if(items > 1)
762 6 43 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
6 0 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
765 67 6 for(i=0; i < member->count; i++)
768 27 40 if(item != NULL && SvOK(*item))
0 27 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
770 27 0 ptr2[i] = SvIV(*item);
780 43 0 i = SvIV(ST(1));
781 43 0 if(i >= 0 && i < member->count)
43 0 if(i >= 0 && i < member->count)
793 13 9 if(GIMME_V == G_VOID)
5 17 if(GIMME_V == G_VOID)
798 198 17 for(i=0; i < member->count; i++)
815 0 1 if(items == 0)
821 1 0 if(SvROK(self))
824 0 1 if(!SvOK(self))
0 0 if(!SvOK(self))
0 0 if(!SvOK(self))
827 1 0 ptr1 = (char*) SvPV_nolen(self);
830 1 0 if(items > 1)
832 0 1 if(SvREADONLY(self))
838 0 1 *ptr2 = (uint64_t) SvUV(ST(1));
842 1 0 if(GIMME_V == G_VOID)
1 0 if(GIMME_V == G_VOID)
861 0 5 if(items == 0)
867 5 0 if(SvROK(self))
870 5 0 ptr1 = (char*) SvPV_nolen(self);
873 3 2 if(items > 1 && SvREADONLY(self))
0 3 if(items > 1 && SvREADONLY(self))
878 1 4 if(items > 2)
880 1 0 i = SvIV(ST(1));
881 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
884 0 1 ptr2[i] = SvUV(arg);
891 2 2 else if(items > 1)
894 1 1 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
1 0 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
897 3 1 for(i=0; i < member->count; i++)
900 3 0 if(item != NULL && SvOK(*item))
0 3 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
902 0 3 ptr2[i] = SvUV(*item);
912 1 0 i = SvIV(ST(1));
913 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
925 4 0 if(GIMME_V == G_VOID)
2 2 if(GIMME_V == G_VOID)
930 6 2 for(i=0; i < member->count; i++)
947 0 1 if(items == 0)
953 1 0 if(SvROK(self))
956 0 1 if(!SvOK(self))
0 0 if(!SvOK(self))
0 0 if(!SvOK(self))
959 1 0 ptr1 = (char*) SvPV_nolen(self);
962 1 0 if(items > 1)
964 0 1 if(SvREADONLY(self))
970 1 0 *ptr2 = (int64_t) SvIV(ST(1));
974 1 0 if(GIMME_V == G_VOID)
1 0 if(GIMME_V == G_VOID)
993 0 5 if(items == 0)
999 5 0 if(SvROK(self))
1002 5 0 ptr1 = (char*) SvPV_nolen(self);
1005 3 2 if(items > 1 && SvREADONLY(self))
0 3 if(items > 1 && SvREADONLY(self))
1010 1 4 if(items > 2)
1012 1 0 i = SvIV(ST(1));
1013 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
1016 1 0 ptr2[i] = SvIV(arg);
1023 2 2 else if(items > 1)
1026 1 1 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
1 0 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
1029 3 1 for(i=0; i < member->count; i++)
1032 3 0 if(item != NULL && SvOK(*item))
0 3 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
0 0 if(item != NULL && SvOK(*item))
1034 3 0 ptr2[i] = SvIV(*item);
1044 1 0 i = SvIV(ST(1));
1045 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
1057 4 0 if(GIMME_V == G_VOID)
2 2 if(GIMME_V == G_VOID)
1062 6 2 for(i=0; i < member->count; i++)
1079 0 1 if(items == 0)
1085 1 0 if(SvROK(self))
1088 0 1 if(!SvOK(self))
0 0 if(!SvOK(self))
0 0 if(!SvOK(self))
1091 1 0 ptr1 = (char*) SvPV_nolen(self);
1094 1 0 if(items > 1)
1096 0 1 if(SvREADONLY(self))
1102 1 0 *ptr2 = (float) SvNV(ST(1));
1106 1 0 if(GIMME_V == G_VOID)
1 0 if(GIMME_V == G_VOID)
1125 0 7 if(items == 0)
1131 7 0 if(SvROK(self))
1134 7 0 ptr1 = (char*) SvPV_nolen(self);
1137 5 2 if(items > 1 && SvREADONLY(self))
0 5 if(items > 1 && SvREADONLY(self))
1142 1 6 if(items > 2)
1144 1 0 i = SvIV(ST(1));
1145 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
1148 1 0 ptr2[i] = SvNV(arg);
1155 4 2 else if(items > 1)
1158 1 3 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
1 0 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
1161 3 1 for(i=0; i < member->count; i++)
1164 3 0 if(item != NULL && SvOK(*item))
1 2 if(item != NULL && SvOK(*item))
1 0 if(item != NULL && SvOK(*item))
0 1 if(item != NULL && SvOK(*item))
1166 2 0 ptr2[i] = SvNV(*item);
1176 3 0 i = SvIV(ST(1));
1177 3 0 if(i >= 0 && i < member->count)
3 0 if(i >= 0 && i < member->count)
1189 4 0 if(GIMME_V == G_VOID)
2 2 if(GIMME_V == G_VOID)
1194 6 2 for(i=0; i < member->count; i++)
1211 0 1 if(items == 0)
1217 1 0 if(SvROK(self))
1220 0 1 if(!SvOK(self))
0 0 if(!SvOK(self))
0 0 if(!SvOK(self))
1223 1 0 ptr1 = (char*) SvPV_nolen(self);
1226 1 0 if(items > 1)
1228 0 1 if(SvREADONLY(self))
1234 1 0 *ptr2 = (double) SvNV(ST(1));
1238 1 0 if(GIMME_V == G_VOID)
1 0 if(GIMME_V == G_VOID)
1257 0 7 if(items == 0)
1263 7 0 if(SvROK(self))
1266 7 0 ptr1 = (char*) SvPV_nolen(self);
1269 5 2 if(items > 1 && SvREADONLY(self))
0 5 if(items > 1 && SvREADONLY(self))
1274 1 6 if(items > 2)
1276 1 0 i = SvIV(ST(1));
1277 1 0 if(i >= 0 && i < member->count)
1 0 if(i >= 0 && i < member->count)
1280 1 0 ptr2[i] = SvNV(arg);
1287 4 2 else if(items > 1)
1290 1 3 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
1 0 if(SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVAV)
1293 3 1 for(i=0; i < member->count; i++)
1296 3 0 if(item != NULL && SvOK(*item))
1 2 if(item != NULL && SvOK(*item))
1 0 if(item != NULL && SvOK(*item))
0 1 if(item != NULL && SvOK(*item))
1298 2 0 ptr2[i] = SvNV(*item);
1308 3 0 i = SvIV(ST(1));
1309 3 0 if(i >= 0 && i < member->count)
3 0 if(i >= 0 && i < member->count)
1321 4 0 if(GIMME_V == G_VOID)
2 2 if(GIMME_V == G_VOID)
1326 6 2 for(i=0; i < member->count; i++)