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

Function GetSmallStringView

common/internal/byte_string_test.cc:86–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84};
85
86absl::string_view GetSmallStringView() {
87 static constexpr absl::string_view small = "A small string!";
88 return small.substr(0, std::min(kSmallByteStringCapacity, small.size()));
89}
90
91std::string GetSmallString() { return std::string(GetSmallStringView()); }
92

Callers 4

GetSmallStringFunction · 0.85
GetSmallCordFunction · 0.85
TEST_PFunction · 0.85
TESTFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected