t/typemap/typemap.xs

filter: Statementstmt 100% 7 / 7 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 88.8% 8 / 9 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« src/xs/Array.cc ↑ Summary src/xs/Io.cc »
1 #include <xs.h>
2 #include <vector>
3 #include <map>
4 #include "tmtest.h"
5 #include <panda/error.h>
6  
7 using namespace xs;
8 using namespace panda;
9  
10 DCnt dcnt;
11  
12 MODULE = MyTest::Typemap PACKAGE = MyTest
13 PROTOTYPES: DISABLE
14  
15 BOOT {
16 35 XS_BOOT(MyTest__Typemap__Object);
17 35 XS_BOOT(MyTest__Typemap__CD);
18 }
19  
20 AV* dcnt () {
21 111 RETVAL = newAV();
22 111 av_push(RETVAL, newSViv(dcnt.c));
23 111 av_push(RETVAL, newSViv(dcnt.perl));
24 111 dcnt.c = 0;
25 111 ▶ dcnt.perl = 0;
Branch: 1 branch
BranchTrueFalseTotal
dcnt.perl = 0; 111 0 111
26 }
27  
28 INCLUDE: primitives.xsi
29  
30 INCLUDE: svrefs.xsi
31  
32 INCLUDE: const.xsi
33  
34 INCLUDE: container.xsi
35  
36 INCLUDE: not_null.xsi
37  
38 INCLUDE: svapi.xsi
39  
40 INCLUDE: error.xsi
41  
42 INCLUDE: expected.xsi
« src/xs/Array.cc ↑ Summary src/xs/Io.cc »