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 62116 0 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
62116 0 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
0 62116 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
123 62031 56 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
45831 16200 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
3329 42502 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
135 27065 0 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
22254 4811 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
2640 19614 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
154 89096 56 if (aIMCTX && aIMCTX->lg_file != NULL) {
68085 21011 if (aIMCTX && aIMCTX->lg_file != NULL) {