tests: Add more tests for branch coverage
gcov -b surfaced many lines with partial coverage, where branch is only ever taken or not taken, or one of the expressions in a complex conditional is always either true or false. This change adds a series of tests (mostly focusing on XPath) to reduce the number of partially covered lines.
Showing
- tests/test_document.cpp 9 additions, 0 deletionstests/test_document.cpp
- tests/test_xpath.cpp 37 additions, 0 deletionstests/test_xpath.cpp
- tests/test_xpath_api.cpp 2 additions, 8 deletionstests/test_xpath_api.cpp
- tests/test_xpath_functions.cpp 14 additions, 0 deletionstests/test_xpath_functions.cpp
- tests/test_xpath_operators.cpp 10 additions, 0 deletionstests/test_xpath_operators.cpp
- tests/test_xpath_parse.cpp 8 additions, 0 deletionstests/test_xpath_parse.cpp
Loading
Please register or sign in to comment