table_utilities.hpp
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2024, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #pragma once
7 
9 #include <cudf/types.hpp>
10 #include <cudf/utilities/export.hpp>
11 
12 namespace CUDF_EXPORT cudf {
13 namespace test::detail {
23 void expect_table_properties_equal(cudf::table_view lhs, cudf::table_view rhs);
24 
35 void expect_tables_equal(cudf::table_view lhs, cudf::table_view rhs);
36 
49 void expect_tables_equivalent(cudf::table_view lhs, cudf::table_view rhs);
50 
51 } // namespace test::detail
52 } // namespace CUDF_EXPORT cudf
53 
54 // Macros for showing line of failure.
55 #define CUDF_TEST_EXPECT_TABLE_PROPERTIES_EQUAL(lhs, rhs) \
56  do { \
57  SCOPED_TRACE(" <-- line of failure\n"); \
58  cudf::test::detail::expect_table_properties_equal(lhs, rhs); \
59  } while (0)
60 
61 #define CUDF_TEST_EXPECT_TABLES_EQUAL(lhs, rhs) \
62  do { \
63  SCOPED_TRACE(" <-- line of failure\n"); \
64  cudf::test::detail::expect_tables_equal(lhs, rhs); \
65  } while (0)
66 
67 #define CUDF_TEST_EXPECT_TABLES_EQUIVALENT(lhs, rhs) \
68  do { \
69  SCOPED_TRACE(" <-- line of failure\n"); \
70  cudf::test::detail::expect_tables_equivalent(lhs, rhs); \
71  } while (0)
A set of cudf::column_view's of the same size.
Definition: table_view.hpp:189
cuDF interfaces
Definition: host_udf.hpp:26
Class definitions for (mutable)_table_view
Type declarations for libcudf.