testdata
struct bom_testdata *const testdata
const char *const external = testdata->external;
const int split = testdata->split;
testdata->nested_callback_happened = XML_TRUE;
struct bom_testdata testdata;
testdata.external = external;
testdata.split = split;
testdata.nested_callback_happened = XML_FALSE;
XML_SetUserData(parser, &testdata);
if (! testdata.nested_callback_happened) {
struct element_decl_data *testdata = (struct element_decl_data *)userData;
testdata->count += 1;
XML_FreeContentModel(testdata->parser, model);
struct element_decl_data testdata;
testdata.parser = parser;
testdata.count = 0;
XML_SetUserData(parser, &testdata);
assert_true(testdata.count == 1); // first element should be done
assert_true(testdata.count == 1); // still just the first one
assert_true(testdata.count == 1); // *still* just the first one
assert_true(testdata.count == 1); // or the test is incorrect
assert_true(testdata.count == 2); // the big token should be done
assert_true(testdata.count == 3); // after isFinal=XML_TRUE, all must be done
test_p5_pbkdf2(unsigned int n, const char *digestname, const testdata *test,
const testdata *test = test_cases;
static const testdata test_cases[] = {
rs.buf = testdata;
if (!CBS_mem_equal(&cbs, testdata, CBS_len(&cbs))) {
if (data_len != sizeof(testdata)) {
data_len, sizeof(testdata));
if (memcmp(data, testdata, data_len) != 0) {
uint8_t testdata[] = {