xs/Filter/Source.xs

filter: Statementstmt 100% 10 / 10 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 92.8% 13 / 14 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/Commit.xs ↑ Summary xs/Reference.xs »
1 MODULE = Git::Raw PACKAGE = Git::Raw::Filter::Source
2  
3  
4 SV *
5 id(self)
6 Filter_Source self
7  
8 CODE:
9 1 RETVAL = git_oid_to_sv(git_filter_source_id(self));
10  
11 OUTPUT: RETVAL
12  
13 SV *
14 path(self)
15 Filter_Source self
16  
17 CODE:
18 2 RETVAL = newSVpv(git_filter_source_path(self), 0);
19  
20 OUTPUT: RETVAL
21  
22 SV *
23 file_mode(self)
24 Filter_Source self
25  
26 CODE:
27 1 RETVAL = newSViv(git_filter_source_filemode(self));
28  
29 OUTPUT: RETVAL
30  
31 SV *
32 mode(self)
33 Filter_Source self
34  
35 PREINIT:
36 git_filter_mode_t mode;
37 4 const char *result = NULL;
38  
39 CODE:
40 4 mode = git_filter_source_mode(self);
41  
42 4 ▶ if (mode == GIT_FILTER_TO_WORKTREE)
Branch: 1 branch
BranchTrueFalseTotal
if (mode == GIT_FILTER_TO_WORKTREE) 2 2 4
43 2 result = "to_worktree";
44 2 ▶ else if (mode == GIT_FILTER_TO_ODB)
Branch: 1 branch
BranchTrueFalseTotal
else if (mode == GIT_FILTER_TO_ODB) 2 0 2
45 2 result = "to_odb";
46  
47 4 RETVAL = newSVpv(result, 0);
48  
49 OUTPUT: RETVAL
« xs/Commit.xs ↑ Summary xs/Reference.xs »