NetworkManager/libnm-core/tests
Thomas Haller d19a403faa libnm/test: add unit test with consistency checks about NMSetting type info
Add test for checking the meta data for expected consistency.

This is also useful if you want to check something about the meta data
programatically.

For example, if you have the question which (if any) properties
are GObject based but also implement a to_dbus_fcn() function. Then you
can extend this code with some simple printf debugging to get a list of
those.

Or, if you want to find how many NMSettInfoProperty instances are in
static data (e.g. to determine how much memory is used). You can easily
modify this code to count them (and find 447 properties). Out of these,
326 are plain GObject based properties. Meaning, we could refactor the
code to create smaller NMSettInfoProperty instances for those, saving
thus (326 * 4 * sizeof (gpointer)) bytes (10K).

Such questions are interesting when refactoring the code.
2019-09-21 22:01:29 +02:00
..
certs libnm/crypto: accept TPM2-wrapped PEM keys 2019-07-10 17:31:48 +02:00
meson.build build/meson: rename "nm_core_dep" to "libnm_core_dep" 2019-04-18 20:13:49 +02:00
nm-core-tests-enum-types.c.template build: use template files for enum types' sources generation 2017-12-18 11:25:06 +01:00
nm-core-tests-enum-types.h.template build: use template files for enum types' sources generation 2017-12-18 11:25:06 +01:00
test-compare.c all: SPDX header conversion 2019-09-10 11:19:56 +02:00
test-crypto.c all: SPDX header conversion 2019-09-10 11:19:56 +02:00
test-general-enums.h all: SPDX header conversion 2019-09-10 11:19:56 +02:00
test-general.c setting-gsm: allow empty apn property in verify() 2019-09-11 14:32:05 +02:00
test-keyfile.c all: SPDX header conversion 2019-09-10 11:19:56 +02:00
test-secrets.c all: SPDX header conversion 2019-09-10 11:19:56 +02:00
test-setting.c libnm/test: add unit test with consistency checks about NMSetting type info 2019-09-21 22:01:29 +02:00
test-settings-defaults.c all: SPDX header conversion 2019-09-10 11:19:56 +02:00