Skip to content
Snippets Groups Projects
Commit 3d42432d authored by Steven Murray's avatar Steven Murray
Browse files

Added unit-test toLogLevel_INVALID_LOG_LEVEL

parent 1c6c3ad5
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "common/exception/Exception.hpp"
#include "common/log/LogLevel.hpp"
#include <gtest/gtest.h>
......@@ -88,4 +89,11 @@ TEST_F(cta_log_LogLevelTest, toLogLevel_USERERR) {
ASSERT_EQ(NOTICE, toLogLevel("USERERR"));
}
TEST_F(cta_log_LogLevelTest, toLogLevel_INVALID_LOG_LEVEL) {
using namespace cta;
using namespace cta::log;
ASSERT_THROW(toLogLevel("toLogLevel_INVALID_LOG_LEVEL"), exception::Exception);
}
} // namespace unitTests
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment