xs/Odb/Object.xs

filter: Statementstmt 100% 5 / 5 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 5 / 5 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/Odb/Backend/Pack.xs ↑ Summary xs/Test.xs »
1 MODULE = Git::Raw PACKAGE = Git::Raw::Odb::Object
2  
3 SV *
4 id(self)
5 Odb_Object self
6  
7 CODE:
8 1 RETVAL = git_oid_to_sv(git_odb_object_id(self));
9  
10 OUTPUT: RETVAL
11  
12 SV *
13 size(self)
14 Odb_Object self
15  
16 CODE:
17 1 RETVAL = newSViv(git_odb_object_size(self));
18  
19 OUTPUT: RETVAL
20  
21 SV *
22 type(self)
23 Odb_Object self
24  
25 CODE:
26 1 RETVAL = newSViv(git_odb_object_type(self));
27  
28 OUTPUT: RETVAL
29  
30 SV *
31 data(self)
32 Odb_Object self
33  
34 CODE:
35 1 RETVAL = newSVpv(git_odb_object_data(self), git_odb_object_size(self));
36  
37 OUTPUT: RETVAL
38  
39 void
40 DESTROY(self)
41 SV *self
42  
43 CODE:
44 123 git_odb_object_free(GIT_SV_TO_PTR(Odb::Object, self));
45  
« xs/Odb/Backend/Pack.xs ↑ Summary xs/Test.xs »