line |
true |
false |
branch |
101
|
0 |
0 |
if ((!reader->done) && (!reader->offset) && (!reader->end)) { |
|
0 |
0 |
if ((!reader->done) && (!reader->offset) && (!reader->end)) { |
|
0 |
0 |
if ((!reader->done) && (!reader->offset) && (!reader->end)) { |
104
|
0 |
0 |
if (ret <= 0) { |
130
|
0 |
0 |
if (ret <= 0) { |
138
|
0 |
0 |
BSON_ASSERT (reader->offset == 0); |
139
|
0 |
0 |
BSON_ASSERT (reader->end <= reader->len); |
173
|
0 |
0 |
BSON_ASSERT (handle); |
174
|
0 |
0 |
BSON_ASSERT (rf); |
185
|
0 |
0 |
if (df) { |
217
|
0 |
0 |
if (fd) { |
218
|
0 |
0 |
if ((fd->fd != -1) && fd->do_close) { |
|
0 |
0 |
if ((fd->fd != -1) && fd->do_close) { |
260
|
0 |
0 |
if (fd && (fd->fd != -1)) { |
|
0 |
0 |
if (fd && (fd->fd != -1)) { |
267
|
0 |
0 |
if ((ret == -1) && (errno == EAGAIN)) { |
|
0 |
0 |
if ((ret == -1) && (errno == EAGAIN)) { |
303
|
0 |
0 |
BSON_ASSERT (fd != -1); |
347
|
0 |
0 |
BSON_ASSERT (reader->type == BSON_READER_HANDLE); |
378
|
0 |
0 |
BSON_ASSERT (reader->type == BSON_READER_HANDLE); |
466
|
0 |
0 |
if (reached_eof) { |
470
|
0 |
0 |
while (!reader->done) { |
471
|
0 |
0 |
if ((reader->end - reader->offset) < 4) { |
479
|
0 |
0 |
if (blen < 5) { |
483
|
0 |
0 |
if (blen > (int32_t)(reader->end - reader->offset)) { |
484
|
0 |
0 |
if (blen > (int32_t)reader->len) { |
492
|
0 |
0 |
if (!bson_init_static (&reader->inline_bson, |
503
|
0 |
0 |
if (reached_eof) { |
504
|
0 |
0 |
*reached_eof = reader->done && !reader->failed; |
|
0 |
0 |
*reached_eof = reader->done && !reader->failed; |
539
|
0 |
0 |
BSON_ASSERT (data); |
574
|
0 |
0 |
if (reached_eof) { |
578
|
0 |
0 |
if ((reader->offset + 4) < reader->length) { |
582
|
0 |
0 |
if (blen < 5) { |
586
|
0 |
0 |
if (blen > (int32_t)(reader->length - reader->offset)) { |
590
|
0 |
0 |
if (!bson_init_static (&reader->inline_bson, |
600
|
0 |
0 |
if (reached_eof) { |
651
|
0 |
0 |
BSON_ASSERT (reader); |
660
|
0 |
0 |
if (handle->destroy_func) { |
713
|
0 |
0 |
BSON_ASSERT (reader); |
751
|
0 |
0 |
BSON_ASSERT (reader); |
794
|
0 |
0 |
BSON_ASSERT (path); |
804
|
0 |
0 |
if (fd == -1) { |
833
|
0 |
0 |
if (real->type != BSON_READER_DATA) { |