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

Function VerifyParse

be/src/runtime/decimal-test.cc:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50template <typename T>
51void VerifyParse(const string& s, int precision, int scale, bool round,
52 const DecimalValue<T>& expected_val, StringParser::ParseResult expected_result) {
53 StringParser::ParseResult parse_result;
54 DecimalValue<T> val = StringParser::StringToDecimal<T>(
55 s.c_str(), s.size(), precision, scale, round, &parse_result);
56 EXPECT_EQ(expected_result, parse_result) << "Failed test string: " << s;
57 if (expected_result == StringParser::PARSE_SUCCESS ||
58 expected_result == StringParser::PARSE_UNDERFLOW) {
59 VerifyEquals(expected_val, val);
60 }
61}
62
63template <typename T>
64void VerifyParse(const string& s, int precision, int scale,

Callers 2

StringToAllDecimalsFunction · 0.85
TESTFunction · 0.85

Calls 2

VerifyEqualsFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected