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 61925 0 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
61925 0 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
0 61925 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
123 61877 56 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
45672 16205 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
3329 42343 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
135 27056 0 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
22222 4834 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
2640 19582 if (!aIMCTX || !aIMCTX->lg_file || level > aIMCTX->log_level)
154 88933 56 if (aIMCTX && aIMCTX->lg_file != NULL) {
67894 21039 if (aIMCTX && aIMCTX->lg_file != NULL) {