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

Function CheckUnique

cpp/src/arrow/compute/kernels/vector_hash_test.cc:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55template <typename T>
56void CheckUnique(const std::shared_ptr<T>& input,
57 const std::shared_ptr<Array>& expected) {
58 ASSERT_OK_AND_ASSIGN(std::shared_ptr<Array> result, Unique(input));
59 ValidateOutput(*result);
60 // TODO: We probably shouldn't rely on array ordering.
61 ASSERT_ARRAYS_EQUAL(*expected, *result);
62}
63
64template <typename Type, typename T>
65void CheckUnique(const std::shared_ptr<DataType>& type, const std::vector<T>& in_values,

Callers 2

TYPED_TESTFunction · 0.85
TEST_FFunction · 0.85

Calls 2

ValidateOutputFunction · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.70

Tested by

no test coverage detected