MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / TEST

Function TEST

tests/gtest_simple_string.cpp:20–26  ·  view source on GitHub ↗

Test default constructor

Source from the content-addressed store, hash-verified

18
19// Test default constructor
20TEST(SimpleStringTest, DefaultConstructor)
21{
22 SimpleString s;
23 EXPECT_EQ(s.size(), 0);
24 EXPECT_STREQ(s.data(), "");
25 EXPECT_TRUE(s.isSOO());
26}
27
28// Test construction from empty string
29TEST(SimpleStringTest, EmptyString)

Callers

nothing calls this directly

Calls 8

moveFunction · 0.85
SimpleStringClass · 0.85
isSOOMethod · 0.80
toStdStringMethod · 0.80
toStdStringViewMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected