| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Test the GValue API for storing fundamental types into a JsonNode.
|
|
|
|
|
| |
Use a similar test unit as the JsonArray one, testing creation, empty
objects, addition and removal of members.
|
|
|
|
|
|
| |
Remove the json_array_remove_element() call from the add-element test unit
and set up a separate test case for the element removal. This keeps the
test cases clean.
|
|
|
|
|
| |
This simple unit will test the JsonArray API, as part of the coverage
test for the JSON-GLib types.
|
|
|
|
|
| |
The test unit copies a NULL JsonNode and checks that the copy and the
original nodes are equivalent.
|
|
GLib 2.15 added a new test unit framework to the GLib API. It allows
integrating unit testing into GLib and GObject based libraries and
applications.
It requires a specially crafter Makefile holding a set of declarations,
which must be included into the project own Makefile templates; then
it is possible to drop tests inside a subdirectory, which will be built
after the library or application, and executed upon "make check".
At the moment, there is a simple test for the JsonNode API, with a
single unit for the "null" node type.
|