Branch Coverage

third_party/modest/source/myhtml/stream.c
Criterion Covered Total %
branch 16 34 47.0


line true false branch
34 0 3 if(stream_buffer->entries == NULL)
42 0 3 if(stream_buffer_entry->data) {
43 0 0 if(size <= stream_buffer_entry->size)
53 0 3 if(stream_buffer_entry->data == NULL)
61 0 0 if(stream_buffer_entry)
67 0 3 if(stream_buffer_entry == NULL)
70 3 0 if(stream_buffer_entry->data)
73 0 3 if(self_destroy) {
83 0 145 if(stream_buffer)
89 141 3 if(stream_buffer == NULL)
92 3 0 if(stream_buffer->entries) {
93 3 3 for(size_t i = 0; i < stream_buffer->length; i++)
99 3 0 if(self_destroy) {
109 0 3 if(stream_buffer->length >= stream_buffer->size) {
114 0 0 if(entries) {
127 0 3 if(status != MyHTML_STATUS_OK)
137 0 3 if(stream_buffer->length == 0)