xs/core.xs

filter: Statementstmt 85.7% 6 / 7 Branchbran 38.8% 7 / 18 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 52.0% 13 / 25 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/url.xs ↑ Summary xs/wsroom.xs »
1 MODULE = Punk PACKAGE = Punk
2  
3 PROTOTYPES: DISABLE
4  
5 # `use Punk` (punk_import.h): turn on strict and warnings in the caller, get or
6 # make that class's registrar, and install the DSL - every keyword a magic CV
7 # carrying the registrar, from one table. lib/Punk.pm keeps the documentation.
8 void
9 import(class, ...)
10 SV *class
11 CODE:
12 {
13 1402 ▶ const char *caller = CopSTASHPV(PL_curcop);
Branch: 7 branches
BranchTrueFalseTotal
const char *caller = CopSTASHPV(PL_curcop); 1402 0 1402
const char *caller = CopSTASHPV(PL_curcop); 1402 0 1402
const char *caller = CopSTASHPV(PL_curcop); 1402 0 1402
const char *caller = CopSTASHPV(PL_curcop); 0 1402 1402
const char *caller = CopSTASHPV(PL_curcop); 0 0 0
const char *caller = CopSTASHPV(PL_curcop); 1402 0 1402
const char *caller = CopSTASHPV(PL_curcop); 0 1402 1402
14 PERL_UNUSED_VAR(class);
15 PERL_UNUSED_VAR(items);
16 1402 ▶ # uncoverable branch true
Branch: 1 branch
BranchTrueFalseTotal
# uncoverable branch true 0 1402 1402
17 1402 # uncoverable condition left count:1 class:ignore_covered_err
18 1402 if (!caller) XSRETURN_EMPTY;
19 1402 pki_pragma(aTHX_ "strict");
20 1402 pki_pragma(aTHX_ "warnings");
21 pki_export(aTHX_ sv_2mortal(newSVpv(caller, 0)));
22 XSRETURN_EMPTY;
23 }
24  
25 PROTOTYPES: DISABLE
26  
27 int
28 # uncoverable statement
29 # uncoverable subroutine
30 _xs_ok()
31 CODE:
32 0 ▶ RETVAL = 1; /* # uncoverable statement */
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = 1; /* # uncoverable statement */ 0 0 0
33 OUTPUT:
34 RETVAL
35  
« xs/url.xs ↑ Summary xs/wsroom.xs »