Branch Coverage

SysV.xs
Criterion Covered Total %
branch 34 188 18.0


line true false branch
93 9 0 if (SvPOK(sv) && SvCUR(sv) == sizeof(void *))
9 0 if (SvPOK(sv) && SvCUR(sv) == sizeof(void *))
105 0 5 if (!sv_isa(sv, name))
113 0 5 if (got != expected)
135 0 0 AV_FETCH_IV(ds.msg_perm.uid , list, 0);
0 0 AV_FETCH_IV(ds.msg_perm.uid , list, 0);
136 0 0 AV_FETCH_IV(ds.msg_perm.gid , list, 1);
0 0 AV_FETCH_IV(ds.msg_perm.gid , list, 1);
137 0 0 AV_FETCH_IV(ds.msg_perm.cuid, list, 2);
0 0 AV_FETCH_IV(ds.msg_perm.cuid, list, 2);
138 0 0 AV_FETCH_IV(ds.msg_perm.cgid, list, 3);
0 0 AV_FETCH_IV(ds.msg_perm.cgid, list, 3);
139 0 0 AV_FETCH_IV(ds.msg_perm.mode, list, 4);
0 0 AV_FETCH_IV(ds.msg_perm.mode, list, 4);
140 0 0 AV_FETCH_IV(ds.msg_qnum , list, 5);
0 0 AV_FETCH_IV(ds.msg_qnum , list, 5);
141 0 0 AV_FETCH_IV(ds.msg_qbytes , list, 6);
0 0 AV_FETCH_IV(ds.msg_qbytes , list, 6);
142 0 0 AV_FETCH_IV(ds.msg_lspid , list, 7);
0 0 AV_FETCH_IV(ds.msg_lspid , list, 7);
143 0 0 AV_FETCH_IV(ds.msg_lrpid , list, 8);
0 0 AV_FETCH_IV(ds.msg_lrpid , list, 8);
144 0 0 AV_FETCH_IV(ds.msg_stime , list, 9);
0 0 AV_FETCH_IV(ds.msg_stime , list, 9);
145 0 0 AV_FETCH_IV(ds.msg_rtime , list, 10);
0 0 AV_FETCH_IV(ds.msg_rtime , list, 10);
146 0 0 AV_FETCH_IV(ds.msg_ctime , list, 11);
0 0 AV_FETCH_IV(ds.msg_ctime , list, 11);
163 2 0 const struct msqid_ds *data = (struct msqid_ds *) SvPV_const(ds, len);
198 0 0 AV_FETCH_IV(ds.sem_perm.uid , list, 0);
0 0 AV_FETCH_IV(ds.sem_perm.uid , list, 0);
199 0 0 AV_FETCH_IV(ds.sem_perm.gid , list, 1);
0 0 AV_FETCH_IV(ds.sem_perm.gid , list, 1);
200 0 0 AV_FETCH_IV(ds.sem_perm.cuid, list, 2);
0 0 AV_FETCH_IV(ds.sem_perm.cuid, list, 2);
201 0 0 AV_FETCH_IV(ds.sem_perm.cgid, list, 3);
0 0 AV_FETCH_IV(ds.sem_perm.cgid, list, 3);
202 0 0 AV_FETCH_IV(ds.sem_perm.mode, list, 4);
0 0 AV_FETCH_IV(ds.sem_perm.mode, list, 4);
203 0 0 AV_FETCH_IV(ds.sem_ctime , list, 5);
0 0 AV_FETCH_IV(ds.sem_ctime , list, 5);
204 0 0 AV_FETCH_IV(ds.sem_otime , list, 6);
0 0 AV_FETCH_IV(ds.sem_otime , list, 6);
205 0 0 AV_FETCH_IV(ds.sem_nsems , list, 7);
0 0 AV_FETCH_IV(ds.sem_nsems , list, 7);
222 1 0 const struct semid_ds *data = (struct semid_ds *) SvPV_const(ds, len);
253 0 0 AV_FETCH_IV(ds.shm_perm.uid , list, 0);
0 0 AV_FETCH_IV(ds.shm_perm.uid , list, 0);
254 0 0 AV_FETCH_IV(ds.shm_perm.gid , list, 1);
0 0 AV_FETCH_IV(ds.shm_perm.gid , list, 1);
255 0 0 AV_FETCH_IV(ds.shm_perm.cuid, list, 2);
0 0 AV_FETCH_IV(ds.shm_perm.cuid, list, 2);
256 0 0 AV_FETCH_IV(ds.shm_perm.cgid, list, 3);
0 0 AV_FETCH_IV(ds.shm_perm.cgid, list, 3);
257 0 0 AV_FETCH_IV(ds.shm_perm.mode, list, 4);
0 0 AV_FETCH_IV(ds.shm_perm.mode, list, 4);
258 0 0 AV_FETCH_IV(ds.shm_segsz , list, 5);
0 0 AV_FETCH_IV(ds.shm_segsz , list, 5);
259 0 0 AV_FETCH_IV(ds.shm_lpid , list, 6);
0 0 AV_FETCH_IV(ds.shm_lpid , list, 6);
260 0 0 AV_FETCH_IV(ds.shm_cpid , list, 7);
0 0 AV_FETCH_IV(ds.shm_cpid , list, 7);
261 0 0 AV_FETCH_IV(ds.shm_nattch , list, 8);
0 0 AV_FETCH_IV(ds.shm_nattch , list, 8);
262 0 0 AV_FETCH_IV(ds.shm_atime , list, 9);
0 0 AV_FETCH_IV(ds.shm_atime , list, 9);
263 0 0 AV_FETCH_IV(ds.shm_dtime , list, 10);
0 0 AV_FETCH_IV(ds.shm_dtime , list, 10);
264 0 0 AV_FETCH_IV(ds.shm_ctime , list, 11);
0 0 AV_FETCH_IV(ds.shm_ctime , list, 11);
281 2 0 const struct shmid_ds *data = (struct shmid_ds *) SvPV_const(ds, len);
316 1 9 if (SvOK(id))
1 0 if (SvOK(id))
0 1 if (SvOK(id))
318 5 4 if (SvIOK(id))
322 3 1 else if (SvPOK(id) && SvCUR(id) == sizeof(char))
2 1 else if (SvPOK(id) && SvCUR(id) == sizeof(char))
341 8 0 ST(0) = k == (key_t) -1 ? &PL_sv_undef : sv_2mortal(newSViv(k));
356 0 4 if (!SvOK(sv))
0 0 if (!SvOK(sv))
0 0 if (!SvOK(sv))
360 3 1 SvPV_force_nolen(sv);
361 4 0 dst = SvGROW(sv, (STRLEN) size + 1);
0 4 dst = SvGROW(sv, (STRLEN) size + 1);
365 0 4 SvSETMAGIC(sv);
368 0 4 SvTAINTED_on(sv);
381 3 0 const char *src = SvPV_const(sv, len);
384 0 3 if (n < size)
397 2 1 if (id >= 0) {
398 2 0 void *caddr = SvOK(addr) ? sv2addr(addr) : NULL;
2 0 void *caddr = SvOK(addr) ? sv2addr(addr) : NULL;
0 2 void *caddr = SvOK(addr) ? sv2addr(addr) : NULL;
401 2 0 : sv_2mortal(newSVpvn((char *) &shm, sizeof(void *)));
418 2 0 ST(0) = rv == -1 ? &PL_sv_undef : sv_2mortal(newSViv(rv));