MCPcopy Create free account
hub / github.com/apache/brpc / Truncated

Function Truncated

test/string_util_unittest.cc:57–62  ·  view source on GitHub ↗

Helper used to test TruncateUTF8ToByteSize.

Source from the content-addressed store, hash-verified

55
56// Helper used to test TruncateUTF8ToByteSize.
57bool Truncated(const std::string& input, const size_t byte_size,
58 std::string* output) {
59 size_t prev = input.length();
60 TruncateUTF8ToByteSize(input, byte_size, output);
61 return prev != output->length();
62}
63
64} // namespace
65

Callers 1

TESTFunction · 0.85

Calls 2

TruncateUTF8ToByteSizeFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected