Branch Coverage

deps/libgit2/src/util/unix/map.c
Criterion Covered Total %
branch 11 24 45.8


line true false branch
20 0 87 if (sc_page_size < 0) {
38 60 0 GIT_MMAP_VALIDATE(out, len, prot, flags);
0 60 GIT_MMAP_VALIDATE(out, len, prot, flags);
60 0 GIT_MMAP_VALIDATE(out, len, prot, flags);
0 60 GIT_MMAP_VALIDATE(out, len, prot, flags);
0 60 GIT_MMAP_VALIDATE(out, len, prot, flags);
43 0 60 if (prot & GIT_PROT_WRITE)
46 60 0 if ((flags & GIT_MAP_TYPE) == GIT_MAP_SHARED)
48 0 0 else if ((flags & GIT_MAP_TYPE) == GIT_MAP_PRIVATE)
55 60 0 if (!out->data || out->data == MAP_FAILED) {
0 60 if (!out->data || out->data == MAP_FAILED) {
67 0 60 GIT_ASSERT_ARG(map);