tests: Expand GArray test coverage to cover all construction forms80243e65b6d28b3338725be1b2ec69f97a7f978112/head
commit80243e65b6d28b3338725be1b2ec69f97a7f9781
authorPhilip Withnall <withnall@endlessm.com>
Wed, 9 May 2018 14:37:01 +0000 (9 15:37 +0100)
committerPhilip Withnall <withnall@endlessm.com>
Mon, 4 Jun 2018 10:11:26 +0000 (4 11:11 +0100)
tree3ec942f81f2f45d8a9b951babb94e78a67bd911a
parent89f45e96b246178534c6e0180fbf754596e934d9
tests: Expand GArray test coverage to cover all construction forms

Previously, there was very little coverage of GArray behaviour with
either of the zero_terminated or clear_ arguments to g_array_new() set
to TRUE.

Parameterise the tests and exhaustively expand the coverage to cover all
possible GArray configurations.

This was made possible by the online code coverage report for GLib which
we now have:
https://gnome.pages.gitlab.gnome.org/glib/coverage/glib/garray.c.gcov.html.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=795975
glib/tests/array-test.c