MCPcopy Create free account
hub / github.com/apache/impala / AssertRedactedEquals

Function AssertRedactedEquals

be/src/util/redactor-test-utils.cc:93–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void AssertRedactedEquals(const char* message, const char* expected) {
94 std::string temp(message);
95 Redact(&temp);
96 ASSERT_EQ(expected, temp);
97
98 /// Test the signature with the 'changed' argument.
99 temp = std::string(message);
100 bool changed = false;
101 Redact(&temp, &changed);
102 ASSERT_EQ(expected, temp);
103 ASSERT_EQ(temp == message, !changed);
104}
105
106void AssertUnredacted(const char* message) {
107 AssertRedactedEquals(message, message);

Callers 1

AssertUnredactedFunction · 0.85

Calls 1

RedactFunction · 0.85

Tested by

no test coverage detected