xs/Rebase/Operation.xs

filter: Statementstmt 83.3% 5 / 6 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 75.0% 6 / 8 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« deps/libgit2/src/libgit2/oidmap.c ↑ Summary deps/libgit2/src/libgit2/diff_xdiff.c »
1 MODULE = Git::Raw PACKAGE = Git::Raw::Rebase::Operation
2  
3 INCLUDE: const-xs-rebase-operation.inc
4  
5 SV *
6 type(self)
7 Rebase_Operation self
8  
9 CODE:
10 4 RETVAL = newSViv(self -> type);
11  
12 OUTPUT: RETVAL
13  
14 SV *
15 id(self)
16 Rebase_Operation self
17  
18 CODE:
19 4 RETVAL = git_oid_to_sv(&self -> id);
20  
21 OUTPUT: RETVAL
22  
23 SV *
24 exec(self)
25 Rebase_Operation self
26  
27 CODE:
28 1 ▶ if (self ->exec == NULL)
Branch: 1 branch
BranchTrueFalseTotal
if (self ->exec == NULL) 1 0 1
29 1 XSRETURN_UNDEF;
30  
31 0 RETVAL = newSVpv(self -> exec, 0);
32  
33 OUTPUT: RETVAL
34  
35 void
36 DESTROY(self)
37 SV *self
38  
39 CODE:
40 9 SvREFCNT_dec(GIT_SV_TO_MAGIC(self));
« deps/libgit2/src/libgit2/oidmap.c ↑ Summary deps/libgit2/src/libgit2/diff_xdiff.c »