• Home
  • Raw
  • Download

Lines Matching refs:error

43   GError *error = NULL;  in test_iconv_state()  local
46 &bytes_read, &bytes_written, &error); in test_iconv_state()
48 if (error && error->code == G_CONVERT_ERROR_NO_CONVERSION) in test_iconv_state()
51 g_assert_no_error (error); in test_iconv_state()
66 GError *error = NULL; in test_one_half() local
71 &error); in test_one_half()
73 g_assert_no_error (error); in test_one_half()
82 &error); in test_one_half()
84 g_assert_error (error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE); in test_one_half()
88 g_clear_error (&error); in test_one_half()
95 &error); in test_one_half()
97 g_assert_no_error (error); in test_one_half()
113 GError *error = NULL; in test_byte_order() local
118 &error); in test_byte_order()
120 g_assert_no_error (error); in test_byte_order()
129 &error); in test_byte_order()
131 g_assert_no_error (error); in test_byte_order()
148 GError *error, *error2, *error3; in check_utf8_to_ucs4() local
164 error = NULL; in check_utf8_to_ucs4()
165 result = g_utf8_to_ucs4 (utf8, utf8_len, &items_read, &items_written, &error); in check_utf8_to_ucs4()
172 g_assert (error || items_read2 == items_read); in check_utf8_to_ucs4()
173 g_assert (error || items_written2 == items_written2); in check_utf8_to_ucs4()
175 g_assert (!!error == !!error2); in check_utf8_to_ucs4()
190 g_assert_no_error (error); in check_utf8_to_ucs4()
199 g_assert (error != NULL); in check_utf8_to_ucs4()
202 g_error_free (error); in check_utf8_to_ucs4()
210 g_assert_no_error (error); in check_utf8_to_ucs4()
237 GError *error, *error2, *error3; in check_ucs4_to_utf8() local
239 error = NULL; in check_ucs4_to_utf8()
240 result = g_ucs4_to_utf8 (ucs4, ucs4_len, &items_read, &items_written, &error); in check_ucs4_to_utf8()
248 g_assert (error || items_read2 == items_read); in check_ucs4_to_utf8()
249 g_assert (error || items_written2 == items_written); in check_ucs4_to_utf8()
251 g_assert (!!error == !!error2); in check_ucs4_to_utf8()
265 g_assert (error != NULL); in check_ucs4_to_utf8()
268 g_error_free (error); in check_ucs4_to_utf8()
276 g_assert_no_error (error); in check_ucs4_to_utf8()
301 GError *error, *error2, *error3; in check_utf8_to_utf16() local
304 error = NULL; in check_utf8_to_utf16()
305 result = g_utf8_to_utf16 (utf8, utf8_len, &items_read, &items_written, &error); in check_utf8_to_utf16()
312 g_assert (error || items_read2 == items_read); in check_utf8_to_utf16()
313 g_assert (error || items_written2 == items_written2); in check_utf8_to_utf16()
315 g_assert (!!error == !!error2); in check_utf8_to_utf16()
330 g_assert_no_error (error); in check_utf8_to_utf16()
339 g_assert (error != NULL); in check_utf8_to_utf16()
342 g_error_free (error); in check_utf8_to_utf16()
350 g_assert_no_error (error); in check_utf8_to_utf16()
377 GError *error, *error2, *error3; in check_utf16_to_utf8() local
379 error = NULL; in check_utf16_to_utf8()
380 result = g_utf16_to_utf8 (utf16, utf16_len, &items_read, &items_written, &error); in check_utf16_to_utf8()
387 g_assert (error || items_read2 == items_read); in check_utf16_to_utf8()
388 g_assert (error || items_written2 == items_written); in check_utf16_to_utf8()
390 g_assert (!!error == !!error2); in check_utf16_to_utf8()
404 g_assert_no_error (error); in check_utf16_to_utf8()
413 g_assert (error != NULL); in check_utf16_to_utf8()
416 g_error_free (error); in check_utf16_to_utf8()
424 g_assert_no_error (error); in check_utf16_to_utf8()
449 GError *error, *error2, *error3; in check_ucs4_to_utf16() local
452 error = NULL; in check_ucs4_to_utf16()
453 result = g_ucs4_to_utf16 (ucs4, ucs4_len, &items_read, &items_written, &error); in check_ucs4_to_utf16()
461 g_assert (error || items_read2 == items_read); in check_ucs4_to_utf16()
462 g_assert (error || items_written2 == items_written); in check_ucs4_to_utf16()
464 g_assert (!!error == !!error2); in check_ucs4_to_utf16()
479 g_assert (error != NULL); in check_ucs4_to_utf16()
482 g_error_free (error); in check_ucs4_to_utf16()
490 g_assert_no_error (error); in check_ucs4_to_utf16()
517 GError *error, *error2, *error3; in check_utf16_to_ucs4() local
520 error = NULL; in check_utf16_to_ucs4()
521 result = g_utf16_to_ucs4 (utf16, utf16_len, &items_read, &items_written, &error); in check_utf16_to_ucs4()
527 g_assert (error || items_read2 == items_read); in check_utf16_to_ucs4()
528 g_assert (error || items_written2 == items_written2); in check_utf16_to_ucs4()
530 g_assert (!!error == !!error2); in check_utf16_to_ucs4()
545 g_assert_no_error (error); in check_utf16_to_ucs4()
555 g_assert (error != NULL); in check_utf16_to_ucs4()
558 g_error_free (error); in check_utf16_to_ucs4()
566 g_assert_no_error (error); in check_utf16_to_ucs4()