You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/test/util/test_llarp_util_log_level.cpp

13 lines
256 B
C++

#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());
}