mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
Improve byte array test coverage
This commit is contained in:
parent
8246bf4bde
commit
dd25bdeff1
@ -314,6 +314,7 @@ pointer_array_add (void)
|
|||||||
gpointer *segment;
|
gpointer *segment;
|
||||||
|
|
||||||
gparray = g_ptr_array_sized_new (1000);
|
gparray = g_ptr_array_sized_new (1000);
|
||||||
|
|
||||||
for (i = 0; i < 10000; i++)
|
for (i = 0; i < 10000; i++)
|
||||||
g_ptr_array_add (gparray, GINT_TO_POINTER (i));
|
g_ptr_array_add (gparray, GINT_TO_POINTER (i));
|
||||||
|
|
||||||
@ -552,6 +553,8 @@ byte_array_prepend (void)
|
|||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
gbarray = g_byte_array_new ();
|
gbarray = g_byte_array_new ();
|
||||||
|
g_byte_array_set_size (gbarray, 1000);
|
||||||
|
|
||||||
for (i = 0; i < 10000; i++)
|
for (i = 0; i < 10000; i++)
|
||||||
g_byte_array_prepend (gbarray, (guint8*) "abcd", 4);
|
g_byte_array_prepend (gbarray, (guint8*) "abcd", 4);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user