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

Function AssertFormatting

cpp/src/arrow/util/formatting_util_test.cc:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51template <typename FormatterType, typename C_TYPE = typename FormatterType::value_type>
52void AssertFormatting(FormatterType& formatter, C_TYPE value,
53 const std::string& expected) {
54 StringAppender appender;
55 ASSERT_OK(formatter(value, appender));
56 ASSERT_EQ(appender.string(), expected) << "Formatting failed (value = " << value << ")";
57}
58
59TEST(Formatting, Boolean) {
60 StringFormatter<BooleanType> formatter;

Callers 14

TESTFunction · 0.85
TestAnyIntUpTo8Function · 0.85
TestAnyIntUpTo16Function · 0.85
TestAnyIntUpTo32Function · 0.85
TestAnyIntUpTo64Function · 0.85
TestUIntUpTo8Function · 0.85
TestUIntUpTo16Function · 0.85
TestUIntUpTo32Function · 0.85
TestUIntUpTo64Function · 0.85
TestIntUpTo8Function · 0.85
TestIntUpTo16Function · 0.85
TestIntUpTo32Function · 0.85

Calls 1

stringMethod · 0.45

Tested by

no test coverage detected