Commit Graph

7 Commits

Author SHA1 Message Date
Keith Uplinger 4928cc9623 Fix to xml_unescape function for multiple escape values.
Added unit tests for parse.cpp to prove xml_unescape is working properly.
2019-05-29 15:02:36 -05:00
Keith Uplinger be63e62ede Tests: Get unit tests for url.cpp to 100% coverage. 2019-05-28 21:52:01 -05:00
Christian Beer e80e68f9f5 Tests: more unit tests for str_util.cpp 2019-05-08 16:59:27 +02:00
Christian Beer ae829e4ecf Tests: more unit tests for str_util.cpp
Should now cover all cases for testable functions in this file.
2019-05-06 23:13:42 +02:00
Christian Beer db57e0f473 Tests: Add unit tests for str_util.cpp
Changed ASSERT_* calls to EXPECT_* as the former aborts the testrun immediately and the latter will run the remaining tests and mark the run as failed in the end.
The remaining functions either don't need testing or need the googlemock framework to do proper testing.
2019-05-04 20:13:51 +02:00
Christian Beer 65096902c1 Tests: adjust mysql library detection for Travis CI Ubuntu image 2019-04-20 13:50:22 +02:00
Christian Beer 6dbf55fd9a Tests: add unit testing framework using googletest
* enable coverage reports from gcc and disable optimizations via option to configure
* install googletest library into buildcache
* script to compile and run unit tests using cmake
* first set of unit tests originaly contributed by Keith Uplinger

There are several hardcoded paths and assumptions made in order to get this working on Travis CI. New tooling is using cmake for cross platform builds and as such is not easy to use with an autotools based system.
It's not ideal but better than nothing.
2019-04-20 13:30:03 +02:00