xs/Index/Conflict.xs

filter: Statementstmt 0.0% 0 / 21 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 27 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/Cred.xs ↑ Summary xs/Merge/File/Result.xs »
1 MODULE = Git::Raw PACKAGE = Git::Raw::Index::Conflict
2  
3 SV *
4 ours(self)
5 SV *self
6  
7 PREINIT:
8 Index_Conflict conflict;
9  
10 CODE:
11 0 conflict = GIT_SV_TO_PTR(Index::Conflict, self);
12  
13 0 RETVAL = &PL_sv_undef;
14  
15 0 ▶ if (conflict -> ours) {
Branch: 1 branch
BranchTrueFalseTotal
if (conflict -> ours) { 0 0 0
16 0 RETVAL = git_index_entry_to_sv(
17 0 conflict -> ours, NULL, GIT_SV_TO_MAGIC(self)
18 );
19 }
20  
21 OUTPUT: RETVAL
22  
23 SV *
24 ancestor(self)
25 SV *self
26  
27 PREINIT:
28 Index_Conflict conflict;
29  
30 CODE:
31 0 conflict = GIT_SV_TO_PTR(Index::Conflict, self);
32  
33 0 RETVAL = &PL_sv_undef;
34  
35 0 ▶ if (conflict -> ancestor) {
Branch: 1 branch
BranchTrueFalseTotal
if (conflict -> ancestor) { 0 0 0
36 0 RETVAL = git_index_entry_to_sv(
37 0 conflict -> ancestor, NULL, GIT_SV_TO_MAGIC(self)
38 );
39 }
40  
41 OUTPUT: RETVAL
42  
43 SV *
44 theirs(self)
45 SV *self
46  
47 PREINIT:
48 Index_Conflict conflict;
49  
50 CODE:
51 0 conflict = GIT_SV_TO_PTR(Index::Conflict, self);
52  
53 0 RETVAL = &PL_sv_undef;
54  
55 0 ▶ if (conflict -> theirs) {
Branch: 1 branch
BranchTrueFalseTotal
if (conflict -> theirs) { 0 0 0
56 0 RETVAL = git_index_entry_to_sv(
57 0 conflict -> theirs, NULL, GIT_SV_TO_MAGIC(self)
58 );
59 }
60  
61 OUTPUT: RETVAL
62  
63 void
64 DESTROY(self)
65 SV *self
66  
67 PREINIT:
68 Index_Conflict conflict;
69  
70 CODE:
71 0 conflict = GIT_SV_TO_PTR(Index::Conflict, self);
72 0 git_index_entry_free(conflict -> ours);
73 0 git_index_entry_free(conflict -> theirs);
74 0 git_index_entry_free(conflict -> ancestor);
75  
76 0 SvREFCNT_dec(GIT_SV_TO_MAGIC(self));
77 0 Safefree(conflict);
« xs/Cred.xs ↑ Summary xs/Merge/File/Result.xs »