HomeClusterLabs Projects

Test: libcrmcommon: Add unit tests for pcmk__register_format.

Description

Test: libcrmcommon: Add unit tests for pcmk__register_format.

However, note that there are no tests for the option adding portion.
GOptionGroup is completely opaque to us, which means the only way we
could test that it actually works is to try to parse a command line.
That seems much more like a unit test of command line handling, whereas
these parameters are kind of incidental to the whole formatted output
framework.

Details

Provenance
clumensAuthored on Aug 8 2022, 11:50 AM
Parents
rP87429715f612: Low: libcrmcommon: Don't allow registering a format with an empty name.
Branches
Unknown
Tags
Unknown