Branch Coverage

include/file_hooks_impl.h
Criterion Covered Total %
branch 24 62 38.7


line true false branch
56 0 0 if (phase == FILE_HOOK_PHASE_READ && g_file_read_hook) return 1;
0 0 if (phase == FILE_HOOK_PHASE_READ && g_file_read_hook) return 1;
57 0 0 if (phase == FILE_HOOK_PHASE_WRITE && g_file_write_hook) return 1;
0 0 if (phase == FILE_HOOK_PHASE_WRITE && g_file_write_hook) return 1;
66 0 0 if (phase > FILE_HOOK_PHASE_CLOSE) return 0;
80 0 0 while (curr && curr->priority <= priority) {
0 0 while (curr && curr->priority <= priority) {
85 0 0 if (prev) {
100 0 0 if (phase > FILE_HOOK_PHASE_CLOSE) return 0;
104 0 0 while (curr) {
105 0 0 if (strcmp(curr->name, name) == 0) {
106 0 0 if (prev) {
111 0 0 if (curr->perl_callback) {
131 9 5 if (phase == FILE_HOOK_PHASE_READ && g_file_read_hook) {
2 7 if (phase == FILE_HOOK_PHASE_READ && g_file_read_hook) {
134 5 7 } else if (phase == FILE_HOOK_PHASE_WRITE && g_file_write_hook) {
2 3 } else if (phase == FILE_HOOK_PHASE_WRITE && g_file_write_hook) {
140 4 10 if (simple_hook) {
148 4 0 if (!result || ctx.cancel) return NULL;
0 4 if (!result || ctx.cancel) return NULL;
152 10 14 for (entry = g_file_hooks[phase]; entry; entry = entry->next) {
159 0 10 if (entry->c_func) {
161 10 0 } else if (entry->perl_callback) {
168 0 10 PUSHMARK(SP);
169 0 10 mXPUSHs(newSVpv(path, 0));
170 0 10 mXPUSHs(SvREFCNT_inc(result));
176 10 0 if (count > 0) {
178 10 0 if (SvOK(ret)) {
185 10 0 FREETMPS;
189 10 0 if (!result || ctx.cancel) return NULL;
0 10 if (!result || ctx.cancel) return NULL;