Branch Coverage

log.c
Criterion Covered Total %
branch 29 40 72.5


line true false branch
29 37 19 if (!log_mutex) {
33 19 37 if (aIMCTX->lg_file) {
34 19 0 if (aIMCTX->own_log)
40 19 37 if (level < 0) {
43 0 37 if (name == NULL) {
47 0 37 if (NULL == (aIMCTX->lg_file = fopen(name, "w+")) ) {
55 37 19 if (aIMCTX->lg_file) {
67 0 0 if (aIMCTX->lg_file != NULL) {
79 0 0 if (aIMCTX->lg_file != NULL) {
102 62860 0 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
62860 0 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
0 62860 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
123 62220 56 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
46690 15530 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
3450 43240 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
135 27071 0 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
22260 4811 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
2640 19620 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
154 89291 56 if (aIMCTX && aIMCTX->lg_file != NULL) {
68950 20341 if (aIMCTX && aIMCTX->lg_file != NULL) {