File Coverage

xs/Odb/Backend/Loose.xs
Criterion Covered Total %
statement 6 6 100.0
branch 1 2 50.0
condition n/a
subroutine n/a
pod n/a
total 7 8 87.5


line stmt bran cond sub pod time code
1             MODULE = Git::Raw PACKAGE = Git::Raw::Odb::Backend::Loose
2              
3             Odb_Backend
4             new(class, directory, ...)
5             SV *class
6             SV *directory
7              
8             PREINIT:
9 1           int rc, compression_level = -1;
10             Odb_Backend backend;
11              
12             CODE:
13 1 50         if (items >= 3)
14 1           compression_level = git_ensure_iv(ST(2), "compression_level");
15              
16 1           rc = git_odb_backend_loose(&backend,
17             git_ensure_pv(directory, "directory"),
18             compression_level, 0, 0, 0);
19 1           git_check_error(rc);
20              
21 1           RETVAL = backend;
22              
23             OUTPUT: RETVAL
24