mirror of https://github.com/oxen-io/lokinet
unit tests for logging levels
This commit is contained in:
parent
2f02073cac
commit
8d11519eb2
|
@ -42,6 +42,7 @@ list(APPEND TEST_SRC
|
|||
util/test_llarp_util_encode.cpp
|
||||
util/test_llarp_util_printer.cpp
|
||||
util/test_llarp_utils_str.cpp
|
||||
util/test_llarp_util_log_level.cpp
|
||||
util/thread/test_llarp_util_queue_manager.cpp
|
||||
util/thread/test_llarp_util_queue.cpp
|
||||
util/thread/test_llarp_util_thread_pool.cpp
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
#include <gtest/gtest.h>
|
||||
#include <util/logging/loglevel.hpp>
|
||||
|
||||
struct LogLevelTest : public ::testing::Test
|
||||
{
|
||||
};
|
||||
|
||||
TEST_F(LogLevelTest, TestLogLevelNameBadName)
|
||||
{
|
||||
const auto maybe = llarp::LogLevelFromString("bogus");
|
||||
ASSERT_FALSE(maybe.has_value());
|
||||
}
|
Loading…
Reference in New Issue