xs/Reflog/Entry.xs

filter: Statementstmt 88.8% 8 / 9 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 81.8% 9 / 11 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« deps/libgit2/deps/zlib/trees.c ↑ Summary deps/libgit2/src/libgit2/config_entries.c »
1 MODULE = Git::Raw PACKAGE = Git::Raw::Reflog::Entry
2  
3 SV *
4 new_id(self)
5 Reflog_Entry self
6  
7 CODE:
8 3 RETVAL = git_oid_to_sv(git_reflog_entry_id_new(self));
9  
10 OUTPUT: RETVAL
11  
12 SV *
13 old_id(self)
14 Reflog_Entry self
15  
16 CODE:
17 3 RETVAL = git_oid_to_sv(git_reflog_entry_id_old(self));
18  
19 OUTPUT: RETVAL
20  
21 Signature
22 committer(self)
23 Reflog_Entry self
24  
25 PREINIT:
26 int rc;
27  
28 Signature sig;
29  
30 CODE:
31 16 rc = git_signature_dup(&sig, git_reflog_entry_committer(self));
32 16 git_check_error(rc);
33  
34 16 RETVAL = sig;
35  
36 OUTPUT: RETVAL
37  
38 SV *
39 message(self)
40 Reflog_Entry self
41  
42 PREINIT:
43 const char *message;
44  
45 CODE:
46 13 ▶ if ((message = git_reflog_entry_message(self)) != NULL)
Branch: 1 branch
BranchTrueFalseTotal
if ((message = git_reflog_entry_message(self)) != NULL) 13 0 13
47 13 RETVAL = newSVpv(message, 0);
48 else
49 0 RETVAL = &PL_sv_undef;
50  
51 OUTPUT: RETVAL
52  
53 void
54 DESTROY(self)
55 SV* self
56  
57 CODE:
58 19 SvREFCNT_dec(GIT_SV_TO_MAGIC(self));
« deps/libgit2/deps/zlib/trees.c ↑ Summary deps/libgit2/src/libgit2/config_entries.c »