mirror of https://github.com/oxen-io/lokinet
unit tests for logging levels
parent
2f02073cac
commit
8d11519eb2
@ -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