diff options
Diffstat (limited to 'tests/tests.c')
-rw-r--r-- | tests/tests.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/tests.c b/tests/tests.c index 39690ab..ddf6d6f 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -234,27 +234,6 @@ static void test_upb_context() { } -static upb_field_type_t tag_cb(void *udata, struct upb_tag *tag, - void **user_field_desc) -{ - (void)udata; - (void)tag; - (void)user_field_desc; - return 0; -} - -static void test_cbparser() -{ - struct upb_cbparser *p = upb_cbparser_new(); - ASSERT(p); - upb_cbparser_reset(p, NULL, tag_cb, NULL, NULL, NULL, NULL); - size_t read; - struct upb_status status = UPB_STATUS_INIT; - read = upb_cbparser_parse(p, NULL, 0, &status); - ASSERT(upb_ok(&status)); - ASSERT(read == 0); -} - int main() { #define TEST(func) do { \ @@ -269,7 +248,6 @@ int main() TEST(test_skip_v_uint64_t); TEST(test_get_f_uint32_t); TEST(test_upb_context); - TEST(test_cbparser); printf("All tests passed (%d assertions).\n", num_assertions); return 0; } |