mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
Add clang-format configuration.
For now, it uses tabs like before, to make the diff easier to read/check. One of following commits will switch it to spaces.
This commit is contained in:
+4
-3
@@ -23,16 +23,17 @@ using ::testing::SizeIs;
|
||||
using ::testing::ContainerEq;
|
||||
|
||||
class BufferTest : public ::testing::Test {
|
||||
protected:
|
||||
protected:
|
||||
void SetUp() { CZNC::CreateInstance(); }
|
||||
void TearDown() { CZNC::DestroyInstance(); }
|
||||
};
|
||||
|
||||
TEST_F(BufferTest, BufLine) {
|
||||
CBuffer buffer(1);
|
||||
buffer.AddLine(CMessage("@key=value :nick PRIVMSG {target} {text}"), "hello there");
|
||||
buffer.AddLine(CMessage("@key=value :nick PRIVMSG {target} {text}"),
|
||||
"hello there");
|
||||
const CBufLine& line = buffer.GetBufLine(0);
|
||||
EXPECT_THAT(line.GetTags(), ContainerEq(MCString{{"key","value"}}));
|
||||
EXPECT_THAT(line.GetTags(), ContainerEq(MCString{{"key", "value"}}));
|
||||
EXPECT_EQ(":nick PRIVMSG {target} {text}", line.GetFormat());
|
||||
EXPECT_EQ("hello there", line.GetText());
|
||||
EXPECT_EQ("PRIVMSG", line.GetCommand());
|
||||
|
||||
Reference in New Issue
Block a user