Lines Matching full:obj
914 QObject *obj; in keyword_literal() local
919 obj = qobject_from_json("true", &error_abort); in keyword_literal()
920 qbool = qobject_to(QBool, obj); in keyword_literal()
924 str = qobject_to_json(obj); in keyword_literal()
930 obj = qobject_from_json("false", &error_abort); in keyword_literal()
931 qbool = qobject_to(QBool, obj); in keyword_literal()
935 str = qobject_to_json(obj); in keyword_literal()
941 obj = qobject_from_json("null", &error_abort); in keyword_literal()
942 g_assert(obj != NULL); in keyword_literal()
943 g_assert(qobject_type(obj) == QTYPE_QNULL); in keyword_literal()
946 g_assert(QOBJECT(null) == obj); in keyword_literal()
948 qobject_unref(obj); in keyword_literal()
1085 QObject *obj; in simple_dict() local
1088 obj = qobject_from_json(test_cases[i].encoded, &error_abort); in simple_dict()
1089 g_assert(qlit_equal_qobject(&test_cases[i].decoded, obj)); in simple_dict()
1091 str = qobject_to_json(obj); in simple_dict()
1092 qobject_unref(obj); in simple_dict()
1094 obj = qobject_from_json(str->str, &error_abort); in simple_dict()
1095 g_assert(qlit_equal_qobject(&test_cases[i].decoded, obj)); in simple_dict()
1096 qobject_unref(obj); in simple_dict()
1143 QObject *obj; in large_dict() local
1146 obj = qobject_from_json(gstr->str, &error_abort); in large_dict()
1147 g_assert(obj != NULL); in large_dict()
1149 qobject_unref(obj); in large_dict()
1194 QObject *obj; in simple_list() local
1197 obj = qobject_from_json(test_cases[i].encoded, &error_abort); in simple_list()
1198 g_assert(qlit_equal_qobject(&test_cases[i].decoded, obj)); in simple_list()
1200 str = qobject_to_json(obj); in simple_list()
1201 qobject_unref(obj); in simple_list()
1203 obj = qobject_from_json(str->str, &error_abort); in simple_list()
1204 g_assert(qlit_equal_qobject(&test_cases[i].decoded, obj)); in simple_list()
1205 qobject_unref(obj); in simple_list()
1256 QObject *obj; in simple_whitespace() local
1259 obj = qobject_from_json(test_cases[i].encoded, &error_abort); in simple_whitespace()
1260 g_assert(qlit_equal_qobject(&test_cases[i].decoded, obj)); in simple_whitespace()
1262 str = qobject_to_json(obj); in simple_whitespace()
1263 qobject_unref(obj); in simple_whitespace()
1265 obj = qobject_from_json(str->str, &error_abort); in simple_whitespace()
1266 g_assert(qlit_equal_qobject(&test_cases[i].decoded, obj)); in simple_whitespace()
1268 qobject_unref(obj); in simple_whitespace()
1276 QObject *obj; in simple_interpolation() local
1289 obj = qobject_from_jsonf_nofail("[%d, '100%%', %p]", 1, embedded_obj); in simple_interpolation()
1290 g_assert(qlit_equal_qobject(&decoded, obj)); in simple_interpolation()
1292 qobject_unref(obj); in simple_interpolation()
1298 QObject *obj; in empty_input() local
1300 obj = qobject_from_json("", &err); in empty_input()
1302 g_assert(obj == NULL); in empty_input()
1308 QObject *obj; in blank_input() local
1310 obj = qobject_from_json("\n ", &err); in blank_input()
1312 g_assert(obj == NULL); in blank_input()
1319 QObject *obj; in junk_input() local
1321 obj = qobject_from_json("@", &err); in junk_input()
1323 g_assert(obj == NULL); in junk_input()
1325 obj = qobject_from_json("{\x01", &err); in junk_input()
1327 g_assert(obj == NULL); in junk_input()
1329 obj = qobject_from_json("[0\xFF]", &err); in junk_input()
1331 g_assert(obj == NULL); in junk_input()
1333 obj = qobject_from_json("00", &err); in junk_input()
1335 g_assert(obj == NULL); in junk_input()
1337 obj = qobject_from_json("[1e", &err); in junk_input()
1339 g_assert(obj == NULL); in junk_input()
1341 obj = qobject_from_json("truer", &err); in junk_input()
1343 g_assert(obj == NULL); in junk_input()
1349 QObject *obj = qobject_from_json("\"abc", &err); in unterminated_string() local
1351 g_assert(obj == NULL); in unterminated_string()
1357 QObject *obj = qobject_from_json("'abc", &err); in unterminated_sq_string() local
1359 g_assert(obj == NULL); in unterminated_sq_string()
1365 QObject *obj = qobject_from_json("\"abc\\\"", &err); in unterminated_escape() local
1367 g_assert(obj == NULL); in unterminated_escape()
1373 QObject *obj = qobject_from_json("[32", &err); in unterminated_array() local
1375 g_assert(obj == NULL); in unterminated_array()
1381 QObject *obj = qobject_from_json("[32,", &err); in unterminated_array_comma() local
1383 g_assert(obj == NULL); in unterminated_array_comma()
1389 QObject *obj = qobject_from_json("[32,}", &err); in invalid_array_comma() local
1391 g_assert(obj == NULL); in invalid_array_comma()
1397 QObject *obj = qobject_from_json("{'abc':32", &err); in unterminated_dict() local
1399 g_assert(obj == NULL); in unterminated_dict()
1405 QObject *obj = qobject_from_json("{'abc':32,", &err); in unterminated_dict_comma() local
1407 g_assert(obj == NULL); in unterminated_dict_comma()
1413 QObject *obj = qobject_from_json("{'abc':32,}", &err); in invalid_dict_comma() local
1415 g_assert(obj == NULL); in invalid_dict_comma()
1421 QObject *obj = qobject_from_json("{32:'abc'}", &err); in invalid_dict_key() local
1423 g_assert(obj == NULL); in invalid_dict_key()
1429 QObject *obj = qobject_from_json("nul", &err); in unterminated_literal() local
1431 g_assert(obj == NULL); in unterminated_literal()
1449 QObject *obj; in limits_nesting() local
1451 obj = qobject_from_json(make_nest(buf, max_nesting), &error_abort); in limits_nesting()
1452 g_assert(obj != NULL); in limits_nesting()
1453 qobject_unref(obj); in limits_nesting()
1455 obj = qobject_from_json(make_nest(buf, max_nesting + 1), &err); in limits_nesting()
1457 g_assert(obj == NULL); in limits_nesting()
1463 QObject *obj; in multiple_values() local
1465 obj = qobject_from_json("false true", &err); in multiple_values()
1467 g_assert(obj == NULL); in multiple_values()
1469 obj = qobject_from_json("} true", &err); in multiple_values()
1471 g_assert(obj == NULL); in multiple_values()