malcontent/libeos-parental-controls
Philip Withnall a2c2965d25 tests: Add comprehensive tests for libeos-parental-controls
These test get/set behaviour of EpcAppFilter, GAppInfo support, and
various error handling paths and corner cases.

With these tests, coverage of app-filter.c is:
 • Lines: 97%
 • Functions: 100%
 • Branches: 57.5%

The branch coverage is not correctly reported, as it factors in the
failure branches for g_return_if_fail() precondition assertions, which
we deliberately do not test. With those branches manually excluded,
branch coverage is around 89% instead.

This adds libglib-testing as a subproject dependency, for its
GtDBusQueue. It adds gio-unix-2.0 as a dependency of the app-filter
tests, in order to be able to construct GDesktopAppInfos.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://phabricator.endlessm.com/T24004
2018-12-20 13:01:01 +00:00
..
tests tests: Add comprehensive tests for libeos-parental-controls 2018-12-20 13:01:01 +00:00
app-filter.c accounts-service: Rename D-Bus properties to CamelCase 2018-12-12 13:43:39 +00:00
app-filter.h accounts-service: Add allow-user-installation setting 2018-11-29 21:16:36 +00:00
meson.build libeos-parental-controls: Add epc_app_filter_is_appinfo_allowed() API 2018-11-27 13:58:00 +00:00