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
« include/punk/punk_csp.h ↑ Summary include/punk/punk_app.h »
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 1111 ▶ const char *caller = CopSTASHPV(PL_curcop);
Branch: 7 branches
BranchTrueFalseTotal
const char *caller = CopSTASHPV(PL_curcop); 1111 0 1111
const char *caller = CopSTASHPV(PL_curcop); 1111 0 1111
const char *caller = CopSTASHPV(PL_curcop); 1111 0 1111
const char *caller = CopSTASHPV(PL_curcop); 0 1111 1111
const char *caller = CopSTASHPV(PL_curcop); 0 0 0
const char *caller = CopSTASHPV(PL_curcop); 1111 0 1111
const char *caller = CopSTASHPV(PL_curcop); 0 1111 1111
14 PERL_UNUSED_VAR(class);
15 PERL_UNUSED_VAR(items);
16 1111 ▶ if (!caller) XSRETURN_EMPTY;
Branch: 1 branch
BranchTrueFalseTotal
if (!caller) XSRETURN_EMPTY; 0 1111 1111
17 1111 pki_pragma(aTHX_ "strict");
18 1111 pki_pragma(aTHX_ "warnings");
19 1111 pki_export(aTHX_ sv_2mortal(newSVpv(caller, 0)));
20 1111 XSRETURN_EMPTY;
21 }
22  
23 PROTOTYPES: DISABLE
24  
25 int
26 _xs_ok()
27 CODE:
28 0 ▶ RETVAL = 1;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = 1; 0 0 0
29 OUTPUT:
30 RETVAL
31  
« include/punk/punk_csp.h ↑ Summary include/punk/punk_app.h »