17 #include "CUnit/Basic.h"
24 static void test_bytebuffer_append(
void)
28 bb1 = bytebuffer_create_with_size(2);
33 bytebuffer_reset_reading(bb1);
35 res= bytebuffer_read_varint(bb1);
37 CU_ASSERT_EQUAL(
res, -12345);
39 bytebuffer_destroy(bb1);
50 void bytebuffer_suite_setup(
void);
51 void bytebuffer_suite_setup(
void)
53 PG_TEST(test_bytebuffer_append),
56 CU_SuiteInfo bytebuffer_suite = {
"bytebuffer", NULL, NULL, bytebuffer_tests };
void bytebuffer_append_varint(bytebuffer_t *b, const int64_t val)
Writes a signed varInt to the buffer.