Branch Coverage

writer.c
Criterion Covered Total %
branch 7 36 19.4


line true false branch
33 0 196 assert(emitter); /* Non-NULL emitter object is expected. */
34 0 196 assert(emitter->write_handler); /* Write handler must be set. */
35 0 196 assert(emitter->encoding); /* Output encoding must be set. */
42 87 109 if (emitter->buffer.start == emitter->buffer.last) {
48 109 0 if (emitter->encoding == YAML_UTF8_ENCODING)
50 109 0 if (emitter->write_handler(emitter->write_handler_data,
67 0 0 while (emitter->buffer.pointer != emitter->buffer.last)
83 0 0 width = (octet & 0x80) == 0x00 ? 1 :
0 0 width = (octet & 0x80) == 0x00 ? 1 :
0 0 width = (octet & 0x80) == 0x00 ? 1 :
0 0 width = (octet & 0x80) == 0x00 ? 1 :
88 0 0 value = (octet & 0x80) == 0x00 ? octet & 0x7F :
0 0 value = (octet & 0x80) == 0x00 ? octet & 0x7F :
0 0 value = (octet & 0x80) == 0x00 ? octet & 0x7F :
0 0 value = (octet & 0x80) == 0x00 ? octet & 0x7F :
93 0 0 for (k = 1; k < width; k ++) {
102 0 0 if (value < 0x10000)
125 0 0 if (emitter->write_handler(emitter->write_handler_data,