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:405 |
| 240-405 |
5 | return; executed: return; Execution Count:240 | 240 |
6 | free(stream->base); | - |
7 | free(stream); | - |
8 | } executed: } Execution Count:405 | 405 |
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:856871 |
executed: } Execution Count:856871 | 0-856871 |
15 | return stream->pos; executed: return stream->pos; Execution Count:856871 | 856871 |
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:904613 |
| 0-904613 |
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:904613 |
executed: } Execution Count:904613 | 0-904613 |
30 | return error; executed: return error; Execution Count:904613 | 904613 |
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:1366704 |
partially evaluated: stream->pos + count < stream->pos no Evaluation Count:0 | yes Evaluation Count:1366704 |
| 0-1366704 |
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:1366704 | 1366704 |
53 | do {} while (0); partially evaluated: 0 no Evaluation Count:0 | yes Evaluation Count:1366704 |
executed: } Execution Count:1366704 | 0-1366704 |
54 | return error; executed: return error; Execution Count:1366704 | 1366704 |
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:1366604 partially evaluated: 0 no Evaluation Count:0 | yes Evaluation Count:1366604 |
| 0-1366604 |
64 | } executed: } Execution Count:1366604 | 1366604 |
65 | | - |
| | |