Commit e39fef1f authored by Steven Murray's avatar Steven Murray
Browse files

Added unit-test toLogLevel_INVALID_LOG_LEVEL

parent 046da9cb
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment