xs/abi.xs

filter: Statementstmt 100% 6 / 6 Branchbran 50.0% 5 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 68.7% 11 / 16 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/arch/File/Raw/XML/Install/Files.pm ↑ Summary include/frx/frx_abi_impl.h »
1  
2 # The C ABI's two Perl-visible ends: the table's address, and the selftest
3 # that walks a document through every entry.
4  
5 MODULE = File::Raw::XML PACKAGE = File::Raw::XML
6  
7 IV
8 _abi_ptr()
9 CODE:
10 2 ▶ RETVAL = PTR2IV(&FRX_ABI);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = PTR2IV(&FRX_ABI); 0 2 2
11 OUTPUT:
12 RETVAL
13  
14 void
15 _abi_selftest()
16 PREINIT:
17 SV *out;
18 PPCODE:
19 /* ($input, $exclusive_bytes), or an empty list on any mismatch */
20 1 out = frx_abi_selftest(aTHX);
21 1 ▶ if (!out) XSRETURN_EMPTY;
Branch: 1 branch
BranchTrueFalseTotal
if (!out) XSRETURN_EMPTY; 0 1 1
22 1 ▶ XPUSHs(sv_2mortal(newSVpvn(FRX_SELFTEST_INPUT, sizeof FRX_SELFTEST_INPUT - 1)));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(newSVpvn(FRX_SELFTEST_INPUT, sizeof FRX_SELFTEST_INPUT - 1))); 0 1 1
23 1 ▶ XPUSHs(sv_2mortal(out));
Branch: 1 branch
BranchTrueFalseTotal
XPUSHs(sv_2mortal(out)); 0 1 1
24  
25 IV
26 _abi_selftest_full()
27 CODE:
28 /* 0 when every full-profile entry answered as it should, and the
29 * number of the check that did not otherwise */
30 1 ▶ RETVAL = frx_abi_selftest_full(aTHX);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = frx_abi_selftest_full(aTHX); 0 1 1
31 OUTPUT:
32 RETVAL
« blib/arch/File/Raw/XML/Install/Files.pm ↑ Summary include/frx/frx_abi_impl.h »