| Line | Source Code | Coverage |
|---|
| 1 | void | - |
| 2 | _hb_close_stream( HB_Stream stream ) | - |
| 3 | { | - |
| 4 | if (!stream) evaluated: !stream| yes Evaluation Count:240 | yes Evaluation Count:414 |
| 240-414 |
| 5 | return; executed: return;Execution Count:240 | 240 |
| 6 | free(stream->base); | - |
| 7 | free(stream); | - |
| 8 | } executed: }Execution Count:414 | 414 |
| 9 | | - |
| 10 | | - |
| 11 | HB_Int | - |
| 12 | _hb_stream_pos( HB_Stream stream ) | - |
| 13 | { | - |
| 14 | do {} while (0); partially evaluated: 0| no Evaluation Count:0 | yes Evaluation Count:877145 |
executed: }Execution Count:877145 | 0-877145 |
| 15 | return stream->pos; executed: return stream->pos;Execution Count:877145 | 877145 |
| 16 | } | - |
| 17 | | - |
| 18 | | - |
| 19 | HB_Error | - |
| 20 | _hb_stream_seek( HB_Stream stream, | - |
| 21 | HB_UInt pos ) | - |
| 22 | { | - |
| 23 | HB_Error error = (HB_Error)0; | - |
| 24 | | - |
| 25 | stream->pos = pos; | - |
| 26 | if (pos > stream->size) partially evaluated: pos > stream->size| no Evaluation Count:0 | yes Evaluation Count:925905 |
| 0-925905 |
| 27 | error = _hb_err (HB_Err_Read_Error); never executed: error = _hb_err (HB_Err_Read_Error); | 0 |
| 28 | | - |
| 29 | do {} while (0); partially evaluated: 0| no Evaluation Count:0 | yes Evaluation Count:925905 |
executed: }Execution Count:925905 | 0-925905 |
| 30 | return error; executed: return error;Execution Count:925905 | 925905 |
| 31 | } | - |
| 32 | | - |
| 33 | | - |
| 34 | HB_Error | - |
| 35 | _hb_stream_frame_enter( HB_Stream stream, | - |
| 36 | HB_UInt count ) | - |
| 37 | { | - |
| 38 | HB_Error error = HB_Err_Ok; | - |
| 39 | | - |
| 40 | | - |
| 41 | if ((stream->pos + count > stream->size || stream->pos + count < stream->pos)) partially evaluated: stream->pos + count > stream->size| no Evaluation Count:0 | yes Evaluation Count:1398725 |
partially evaluated: stream->pos + count < stream->pos| no Evaluation Count:0 | yes Evaluation Count:1398725 |
| 0-1398725 |
| 42 | | - |
| 43 | { | - |
| 44 | error = _hb_err (HB_Err_Read_Error); | - |
| 45 | goto Exit; never executed: goto Exit; | 0 |
| 46 | } | - |
| 47 | | - |
| 48 | | - |
| 49 | stream->cursor = stream->base + stream->pos; | - |
| 50 | stream->pos += count; | - |
| 51 | | - |
| 52 | Exit: code before this statement executed: Exit:Execution Count:1398725 | 1398725 |
| 53 | do {} while (0); partially evaluated: 0| no Evaluation Count:0 | yes Evaluation Count:1398725 |
executed: }Execution Count:1398725 | 0-1398725 |
| 54 | return error; executed: return error;Execution Count:1398725 | 1398725 |
| 55 | } | - |
| 56 | | - |
| 57 | | - |
| 58 | void | - |
| 59 | _hb_stream_frame_exit( HB_Stream stream ) | - |
| 60 | { | - |
| 61 | stream->cursor = ((void *)0); | - |
| 62 | | - |
| 63 | do {} while (0); executed: }Execution Count:1398623 partially evaluated: 0| no Evaluation Count:0 | yes Evaluation Count:1398623 |
| 0-1398623 |
| 64 | } executed: }Execution Count:1398623 | 1398623 |
| 65 | | - |
| | |