MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / TEST

Function TEST

common/internal/byte_string_test.cc:52–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50using ::testing::TestWithParam;
51
52TEST(ByteStringKind, Ostream) {
53 {
54 std::ostringstream out;
55 out << ByteStringKind::kSmall;
56 EXPECT_EQ(out.str(), "SMALL");
57 }
58 {
59 std::ostringstream out;
60 out << ByteStringKind::kMedium;
61 EXPECT_EQ(out.str(), "MEDIUM");
62 }
63 {
64 std::ostringstream out;
65 out << ByteStringKind::kLarge;
66 EXPECT_EQ(out.str(), "LARGE");
67 }
68}
69
70class ByteStringTest : public TestWithParam<AllocatorKind>,
71 public ByteStringTestFriend {

Callers

nothing calls this directly

Calls 8

ByteStringFunction · 0.85
GetMediumStringViewFunction · 0.85
GetKindFunction · 0.85
StrongUnrefFunction · 0.85
GetSmallStringViewFunction · 0.85
ArenaFunction · 0.85
ReferenceCountClass · 0.70
GetArenaMethod · 0.45

Tested by

no test coverage detected