MCPcopy Create free account
hub / github.com/apache/arrow / IsSecurelyCleared

Function IsSecurelyCleared

cpp/src/arrow/util/secure_string_test.cc:41–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 ::testing::internal::EqHelper::Compare(#val1, #val2, val1, val2)
40
41::testing::AssertionResult IsSecurelyCleared(const std::string_view& area) {
42 // the entire area is filled with zeros
43 std::string zeros(area.size(), '\0');
44 return COMPARE(area, std::string_view(zeros));
45}
46
47::testing::AssertionResult IsSecurelyCleared(const std::string& string) {
48 return IsSecurelyCleared(StringArea(string));

Callers 1

TESTFunction · 0.85

Calls 4

StringAreaFunction · 0.85
substrMethod · 0.80
sizeMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected