Branch Coverage

deps/libgit2/src/unix/map.c
Criterion Covered Total %
branch 13 24 54.1


line true false branch
22 0 209 if (sc_page_size < 0) {
40 151 0 GIT_MMAP_VALIDATE(out, len, prot, flags);
0 151 GIT_MMAP_VALIDATE(out, len, prot, flags);
60 91 GIT_MMAP_VALIDATE(out, len, prot, flags);
0 60 GIT_MMAP_VALIDATE(out, len, prot, flags);
0 151 GIT_MMAP_VALIDATE(out, len, prot, flags);
45 91 60 if (prot & GIT_PROT_WRITE)
48 151 0 if ((flags & GIT_MAP_TYPE) == GIT_MAP_SHARED)
50 0 0 else if ((flags & GIT_MAP_TYPE) == GIT_MAP_PRIVATE)
57 151 0 if (!out->data || out->data == MAP_FAILED) {
0 151 if (!out->data || out->data == MAP_FAILED) {
69 0 151 assert(map != NULL);