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

Function AssertMakeScalar

cpp/src/arrow/scalar_test.cc:64–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63template <typename... MakeScalarArgs>
64void AssertMakeScalar(const Scalar& expected, MakeScalarArgs&&... args) {
65 ASSERT_OK_AND_ASSIGN(auto scalar, MakeScalar(std::forward<MakeScalarArgs>(args)...));
66 ASSERT_OK(scalar->Validate());
67 ASSERT_OK(scalar->ValidateFull());
68 AssertScalarsEqual(expected, *scalar, /*verbose=*/true);
69}
70
71void AssertParseScalar(const std::shared_ptr<DataType>& type, std::string_view s,
72 const Scalar& expected) {

Callers 3

TYPED_TESTFunction · 0.85
TestMakeScalarMethod · 0.85
TESTFunction · 0.85

Calls 3

AssertScalarsEqualFunction · 0.70
ValidateMethod · 0.45
ValidateFullMethod · 0.45

Tested by

no test coverage detected