24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
26 * POSSIBILITY OF SUCH DAMAGE. |
26 * POSSIBILITY OF SUCH DAMAGE. |
27 */ |
27 */ |
28 |
28 |
29 #ifndef MEMSTREAM_TEST_H |
29 #ifndef BUFFER_TEST_H |
30 #define MEMSTREAM_TEST_H |
30 #define BUFFER_TEST_H |
31 |
31 |
32 #include "ucx/test.h" |
32 #include "ucx/test.h" |
33 #include "ucx/buffer.h" |
33 #include "ucx/buffer.h" |
34 |
34 |
35 #ifdef __cplusplus |
35 #ifdef __cplusplus |
36 extern "C" { |
36 extern "C" { |
37 #endif |
37 #endif |
38 |
38 |
39 UCX_TEST(test_ucx_buffer_seek); |
39 UCX_TEST(test_ucx_buffer_eof); |
|
40 UCX_TEST(test_ucx_buffer_seek_set); |
|
41 UCX_TEST(test_ucx_buffer_seek_end); |
|
42 UCX_TEST(test_ucx_buffer_seek_cur); |
|
43 UCX_TEST(test_ucx_buffer_seek_oob); |
|
44 UCX_TEST(test_ucx_buffer_seek_invalid); |
|
45 UCX_TEST(test_ucx_buffer_seek_overflow); |
40 UCX_TEST(test_ucx_buffer_putc); |
46 UCX_TEST(test_ucx_buffer_putc); |
41 UCX_TEST(test_ucx_buffer_putc_ax); |
47 UCX_TEST(test_ucx_buffer_putc_ae); |
|
48 UCX_TEST(test_ucx_buffer_putc_oob); |
|
49 UCX_TEST(test_ucx_buffer_putc_oobae); |
|
50 UCX_TEST(test_ucx_buffer_putc_size); |
|
51 |
42 UCX_TEST(test_ucx_buffer_getc); |
52 UCX_TEST(test_ucx_buffer_getc); |
43 UCX_TEST(test_ucx_buffer_write); |
53 UCX_TEST(test_ucx_buffer_write); |
44 UCX_TEST(test_ucx_buffer_write_ax); |
54 UCX_TEST(test_ucx_buffer_write_ax); |
45 UCX_TEST(test_ucx_buffer_read); |
55 UCX_TEST(test_ucx_buffer_read); |
46 UCX_TEST(test_ucx_buffer_extract); |
56 UCX_TEST(test_ucx_buffer_extract); |