Lines Matching refs:xstr
67 IWXSTR *xstr; member
84 iwxstr_printf(tc->xstr, "%lld", llv); in ejdb_test2_1_exec_visitor1()
100 IWXSTR *xstr = iwxstr_new(); in ejdb_test2_1() local
101 CU_ASSERT_PTR_NOT_NULL_FATAL(xstr); in ejdb_test2_1()
132 iwxstr_clear(xstr); in ejdb_test2_1()
133 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test2_1()
137 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"a\":\"bar\"}"); in ejdb_test2_1()
140 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"a\":\"gaz\"}"); in ejdb_test2_1()
143 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"a\":\"foo\"}"); in ejdb_test2_1()
146 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":2}"); in ejdb_test2_1()
173 iwxstr_clear(xstr); in ejdb_test2_1()
174 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test2_1()
178 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"a\":\"gaz\"}"); in ejdb_test2_1()
189 iwxstr_clear(xstr); in ejdb_test2_1()
190 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test2_1()
194 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"a\":\"foo\"}"); in ejdb_test2_1()
212 iwxstr_clear(xstr); in ejdb_test2_1()
213 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test2_1()
217 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":1}"); in ejdb_test2_1()
220 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":2}"); in ejdb_test2_1()
223 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":3}"); in ejdb_test2_1()
226 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":5}"); in ejdb_test2_1()
229 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":6}"); in ejdb_test2_1()
240 iwxstr_clear(xstr); in ejdb_test2_1()
241 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test2_1()
245 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":6}"); in ejdb_test2_1()
248 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":5}"); in ejdb_test2_1()
251 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":3}"); in ejdb_test2_1()
254 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":2}"); in ejdb_test2_1()
257 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":1}"); in ejdb_test2_1()
269 tc.xstr = iwxstr_new(); in ejdb_test2_1()
280 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(tc.xstr), "65112"); in ejdb_test2_1()
282 iwxstr_destroy(tc.xstr); in ejdb_test2_1()
286 tc.xstr = iwxstr_new(); in ejdb_test2_1()
292 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(tc.xstr), "12556"); in ejdb_test2_1()
294 iwxstr_destroy(tc.xstr); in ejdb_test2_1()
298 iwxstr_destroy(xstr); in ejdb_test2_1()