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

Function IsSecurelyCleared

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

Source from the content-addressed store, hash-verified

45 ::testing::internal::EqHelper::Compare(#val1, #val2, val1, val2)
46
47::testing::AssertionResult IsSecurelyCleared(const std::string_view& area) {
48 // the entire area is filled with zeros
49 std::string zeros(area.size(), '\0');
50 return COMPARE(area, std::string_view(zeros));
51}
52
53::testing::AssertionResult IsSecurelyCleared(const std::string& string) {
54 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