Currently, most of the tests for the ModuleStream objects are run under Python. The valgrind tests for identifying memory leaks and errors can only run against tests in the C code. We need to replicate the python tests as C tests.
This would be a good task for a newcomer to the project. Look at the tests being run in modulemd/v2/tests/ModulemdTests/modulestream.py and copy them into modulemd/v2/tests/test-modulemd-modulestream.c
This will ensure that these code-paths are scanned with valgrind for leaks when ninja test is run (and when the CI test suite is executed).
Currently, most of the tests for the ModuleStream objects are run under Python. The valgrind tests for identifying memory leaks and errors can only run against tests in the C code. We need to replicate the python tests as C tests.
This would be a good task for a newcomer to the project. Look at the tests being run in
modulemd/v2/tests/ModulemdTests/modulestream.pyand copy them intomodulemd/v2/tests/test-modulemd-modulestream.cThis will ensure that these code-paths are scanned with valgrind for leaks when
ninja testis run (and when the CI test suite is executed).