File Coverage

t/typemap/typemap.xs
Criterion Covered Total %
statement 7 7 100.0
branch n/a
condition n/a
subroutine n/a
pod n/a
total 7 7 100.0


line stmt bran cond sub pod time code
1             #include
2             #include
3             #include
4             #include "tmtest.h"
5             #include
6              
7             using namespace xs;
8             using panda::ErrorCode;
9              
10             DCnt dcnt;
11              
12             MODULE = MyTest::Typemap PACKAGE = MyTest
13             PROTOTYPES: DISABLE
14              
15             BOOT {
16 34           XS_BOOT(MyTest__Typemap__Object);
17 34           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;
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: function.xsi
41              
42             INCLUDE: error.xsi