MCPcopy Create free account
hub / github.com/apache/orc / stringifyRule

Function stringifyRule

c++/test/TestTimezone.cc:63–68  ·  view source on GitHub ↗

* Parse a future rule string and return the parsed rule as a string. */

Source from the content-addressed store, hash-verified

61 * Parse a future rule string and return the parsed rule as a string.
62 */
63 std::string stringifyRule(const std::string& ruleString) {
64 std::shared_ptr<FutureRule> rule = parseFutureRule(ruleString);
65 std::stringstream buffer;
66 rule->print(buffer);
67 return buffer.str();
68 }
69
70 TEST(TestTimezone, parseFutureRule) {
71 EXPECT_EQ(" Future rule: FOO0\n standard FOO 0\n", stringifyRule("FOO0"));

Callers 1

TESTFunction · 0.85

Calls 2

parseFutureRuleFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected