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

Method TestCast

cpp/src/arrow/scalar_test.cc:2007–2013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2005 }
2006
2007 void TestCast() {
2008 // Cast() function doesn't support casting union to string, use Scalar::CastTo()
2009 // instead.
2010 ASSERT_OK_AND_ASSIGN(auto casted, union_alpha_->CastTo(utf8()));
2011 ASSERT_TRUE(casted->Equals(StringScalar(R"(union{string: string = alpha})")))
2012 << casted->ToString();
2013 }
2014
2015 protected:
2016 std::shared_ptr<DataType> type_;

Callers 1

TYPED_TESTFunction · 0.45

Calls 3

StringScalarFunction · 0.70
EqualsMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected