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

Function TestStringEscaping

internal/strings_test.cc:141–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void TestStringEscaping(const std::string& orig) {
142 const std::string escaped = EscapeString(orig);
143 ASSERT_OK_AND_ASSIGN(auto unescaped, UnescapeString(escaped));
144 EXPECT_EQ(orig, unescaped) << "escaped: " << escaped;
145}
146
147void TestValue(const std::string& orig) {
148 TestStringEscaping(orig);

Callers 2

TestValueFunction · 0.85
TESTFunction · 0.85

Calls 1

EscapeStringFunction · 0.85

Tested by

no test coverage detected