Line data Source code
1 : /** 2 : * @file test_LogGuard.cpp 3 : * 4 : * @brief Tests for LogGuard class 5 : * 6 : * @author Maximilian Hornung 7 : */ 8 : 9 : #include "doctest/doctest.h" 10 : #include "LogGuard.h" 11 : 12 : using namespace elsa; 13 : using namespace doctest; 14 : 15 : TEST_SUITE_BEGIN("logging"); 16 : 17 : TEST_CASE("LogGuard: Testing usage") 18 1 : { 19 1 : LogGuard("logger", "message"); 20 : // cannot test much more than creation/destruction... 21 : 22 1 : REQUIRE_UNARY(true); 23 1 : } 24 : 25 : TEST_SUITE_END();