Branch Coverage

schmorp.h
Criterion Covered Total %
branch 20 90 22.2


line true false branch
126 0 0 SvGETMAGIC (sig);
0 0 SvGETMAGIC (sig);
128 0 0 for (signum = 1; signum < SIG_SIZE; ++signum)
129 0 0 if (strEQ (SvPV_nolen (sig), PL_sig_name [signum]))
0 0 if (strEQ (SvPV_nolen (sig), PL_sig_name [signum]))
132 0 0 signum = SvIV (sig);
134 0 0 if (signum > 0 && signum < SIG_SIZE)
0 0 if (signum > 0 && signum < SIG_SIZE)
145 0 0 if (signum < 0)
148 0 0 croak ("%s: invalid signal name or number", SvPV_nolen (sig));
158 0 3 SvGETMAGIC (fh);
0 0 SvGETMAGIC (fh);
160 0 3 if (SvROK (fh))
163 0 0 SvGETMAGIC (fh);
0 0 SvGETMAGIC (fh);
166 3 0 if (SvTYPE (fh) == SVt_PVGV)
167 1 2 return PerlIO_fileno (wr ? IoOFP (sv_2io (fh)) : IoIFP (sv_2io (fh)));
169 0 0 if (SvOK (fh) && (SvIV (fh) >= 0) && (SvIV (fh) < 0x7fffffffL))
0 0 if (SvOK (fh) && (SvIV (fh) >= 0) && (SvIV (fh) < 0x7fffffffL))
0 0 if (SvOK (fh) && (SvIV (fh) >= 0) && (SvIV (fh) < 0x7fffffffL))
0 0 if (SvOK (fh) && (SvIV (fh) >= 0) && (SvIV (fh) < 0x7fffffffL))
0 0 if (SvOK (fh) && (SvIV (fh) >= 0) && (SvIV (fh) < 0x7fffffffL))
0 0 if (SvOK (fh) && (SvIV (fh) >= 0) && (SvIV (fh) < 0x7fffffffL))
0 0 if (SvOK (fh) && (SvIV (fh) >= 0) && (SvIV (fh) < 0x7fffffffL))
170 0 0 return SvIV (fh);
180 1 2 if (fd < 0)
183 0 1 croak ("%s: illegal fh argument, either not an OS file or read/write mode mismatch", SvPV_nolen (fh));
204 0 63 if (!cv)
207 0 0 croak ("%s: callback must be a CODE reference or another callable object", SvPV_nolen (cb_sv));
352 0 10 return fcntl (fd, F_SETFL, blocking ? 0 : O_NONBLOCK);
359 10 0 || fcntl (fd, F_SETFD, FD_CLOEXEC);
0 10 || fcntl (fd, F_SETFD, FD_CLOEXEC);
395 10 0 if (ep.fd [0] >= 0)
402 0 0 if (s_pipe (ep.fd))
405 0 0 if (s_fd_prepare (ep.fd [0])
406 0 0 || s_fd_prepare (ep.fd [1]))
429 0 0 if (epp->fd [1] != epp->fd [0])
449 0 49 if (write (epp->fd [1], &counter, epp->len) < 0
450 0 0 && errno == EINVAL
451 0 0 && epp->len != 8)
476 0 10 if (epp->fd [1] != epp->fd [0])
479 0 10 if (s_epipe_new (&epn))
482 1 9 if (epp->len)
484 0 1 if (dup2 (epn.fd [0], epp->fd [0]) < 0)
489 1 0 if (epn.fd [0] == epn.fd [1])