<commit_before>#include "gtest/gtest.h"
#include "Priority.hpp"
#include "But/Log/Backend/FieldInfo.hpp"

using But::Log::Field::Priority;

namespace
{

struct ButLogFieldPriority: public testing::Test
{ };


TEST_F(ButLogFieldPriority, ConvertingToString)
{
  EXPECT_EQ( toString(Priority::debug),   "debug" );
  EXPECT_EQ( toString(Priority::info),    "info" );
  EXPECT_EQ( toString(Priority::warning), "warning" );
  EXPECT_EQ( toString(Priority::error),   "error" );
}


TEST_F(ButLogFieldPriority, ConvertingToStringOfConstantLength)
{
  EXPECT_EQ( toStringConstLen(Priority::debug),   "debug  " );
  EXPECT_EQ( toStringConstLen(Priority::info),    "info   " );
  EXPECT_EQ( toStringConstLen(Priority::warning), "warning" );
  EXPECT_EQ( toStringConstLen(Priority::error),   "error  " );
}


TEST_F(ButLogFieldPriority, ConvertingToEntry)
{
  const auto fi = But::Log::Backend::FieldInfo{Priority::info};
  EXPECT_EQ( fi.type(), "But::Log::Field::Priority" );
  EXPECT_EQ( fi.value(), "info" );
}

}<commit_msg>fixed test name<commit_after>#include "gtest/gtest.h"
#include "Priority.hpp"
#include "But/Log/Backend/FieldInfo.hpp"

using But::Log::Field::Priority;

namespace
{

struct ButLogFieldPriority: public testing::Test
{ };


TEST_F(ButLogFieldPriority, ConvertingToString)
{
  EXPECT_EQ( toString(Priority::debug),   "debug" );
  EXPECT_EQ( toString(Priority::info),    "info" );
  EXPECT_EQ( toString(Priority::warning), "warning" );
  EXPECT_EQ( toString(Priority::error),   "error" );
}


TEST_F(ButLogFieldPriority, ConvertingToStringOfConstantLength)
{
  EXPECT_EQ( toStringConstLen(Priority::debug),   "debug  " );
  EXPECT_EQ( toStringConstLen(Priority::info),    "info   " );
  EXPECT_EQ( toStringConstLen(Priority::warning), "warning" );
  EXPECT_EQ( toStringConstLen(Priority::error),   "error  " );
}


TEST_F(ButLogFieldPriority, ConvertingToFieldInfo)
{
  const auto fi = But::Log::Backend::FieldInfo{Priority::info};
  EXPECT_EQ( fi.type(), "But::Log::Field::Priority" );
  EXPECT_EQ( fi.value(), "info" );
}

}
{'fraction_non_alphanumeric': 0.16176470588235295, 'fraction_numerical': 0.0, 'mean_word_length': 6.476190476190476, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2343452', 'n_tokens_mistral': 686, 'n_tokens_neox': 712, 'n_words': 108}