xs/abi.xs

filter: Statementstmt 100% 7 / 7 Branchbran 50.0% 4 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 73.3% 11 / 15 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« include/store/store_abi_selftest.h ↑ Summary xs/test.xs »
1 # The C ABI's Perl-visible ends: the table's address, its version, and the
2 # selftest that walks it.
3  
4 MODULE = State::Store PACKAGE = State::Store
5  
6 # Unsigned, not IV: where the loader maps this object decides the sign bit.
7 UV
8 _abi_ptr()
9 CODE:
10 2 ▶ RETVAL = PTR2UV(&STORE_ABI);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = PTR2UV(&STORE_ABI); 0 2 2
11 OUTPUT:
12 RETVAL
13  
14 IV
15 _abi_version()
16 CODE:
17 1 ▶ RETVAL = STORE_ABI.abi_version;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = STORE_ABI.abi_version; 0 1 1
18 OUTPUT:
19 RETVAL
20  
21 # The number of the check that failed, or 0, and then the store it built.
22 void
23 _abi_selftest()
24 PREINIT:
25 51 SV *st = NULL;
26 int step;
27 PPCODE:
28 51 step = store_abi_selftest(aTHX_ &st);
29 51 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 51 51
30 51 PUSHs(sv_2mortal(newSViv(step)));
31 51 ▶ PUSHs(st ? sv_2mortal(st) : &PL_sv_undef);
Branch: 1 branch
BranchTrueFalseTotal
PUSHs(st ? sv_2mortal(st) : &PL_sv_undef); 51 0 51
« include/store/store_abi_selftest.h ↑ Summary xs/test.xs »