xs/Merge/File/Result.xs

filter: Statementstmt 100% 9 / 9 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 90.9% 10 / 11 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/Diff/Hunk.xs ↑ Summary xs/PathSpec/MatchList.xs »
1 MODULE = Git::Raw PACKAGE = Git::Raw::Merge::File::Result
2  
3 SV *
4 automergeable(self)
5 Merge_File_Result self
6  
7 CODE:
8 2 RETVAL = newSViv((int) self -> automergeable);
9  
10 OUTPUT: RETVAL
11  
12 SV *
13 content(self)
14 Merge_File_Result self
15  
16 CODE:
17 1 RETVAL = newSVpv(self -> ptr, self -> len);
18  
19 OUTPUT: RETVAL
20  
21 SV *
22 path(self)
23 Merge_File_Result self
24  
25 CODE:
26 3 RETVAL = &PL_sv_undef;
27  
28 3 ▶ if (self -> path)
Branch: 1 branch
BranchTrueFalseTotal
if (self -> path) 3 0 3
29 3 RETVAL = newSVpv(self -> path, 0);
30  
31 OUTPUT: RETVAL
32  
33 void
34 DESTROY(self)
35 SV *self
36  
37 PREINIT:
38 Merge_File_Result result;
39  
40 CODE:
41 2 SvREFCNT_dec(GIT_SV_TO_MAGIC(self));
42  
43 2 result = GIT_SV_TO_PTR(Merge::File::Result, self);
44 2 git_merge_file_result_free(result);
45 2 Safefree(result);
46  
« xs/Diff/Hunk.xs ↑ Summary xs/PathSpec/MatchList.xs »