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

Function TestQuotedRawBytesLiteral

internal/strings_test.cc:108–112  ·  view source on GitHub ↗

takes a raw byte literal of the form rb'...', br'...', rb'''...''' or br'''...'''. is the expected parsed form of .

Source from the content-addressed store, hash-verified

106// <quoted> takes a raw byte literal of the form rb'...', br'...', rb'''...'''
107// or br'''...'''. <unquoted> is the expected parsed form of <quoted>.
108void TestQuotedRawBytesLiteral(const std::string& unquoted,
109 const std::string& quoted) {
110 ASSERT_OK_AND_ASSIGN(auto actual_unquoted, ParseBytesLiteral(quoted));
111 EXPECT_EQ(unquoted, actual_unquoted) << "quoted: " << quoted;
112}
113
114// <unquoted> takes a string of not escaped unquoted bytes.
115void TestUnescapedBytes(const std::string& unquoted) {

Callers 1

TestRawBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected