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

Function TEST_F

cpp/src/arrow/testing/gtest_util_test.cc:45–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43class TestAssertContainsNaN : public ::testing::Test {};
44
45TEST_F(TestAssertContainsNaN, BatchesEqual) {
46 auto schema = ::arrow::schema({
47 {field("a", float32())},
48 {field("b", float64())},
49 });
50
51 auto expected = RecordBatchFromJSON(schema,
52 R"([{"a": 3, "b": 5},
53 {"a": 1, "b": 3},
54 {"a": 3, "b": 4},
55 {"a": NaN, "b": 6},
56 {"a": 2, "b": 5},
57 {"a": 1, "b": NaN},
58 {"a": 1, "b": 3}
59 ])");
60 auto actual = RecordBatchFromJSON(schema,
61 R"([{"a": 3, "b": 5},
62 {"a": 1, "b": 3},
63 {"a": 3, "b": 4},
64 {"a": NaN, "b": 6},
65 {"a": 2, "b": 5},
66 {"a": 1, "b": NaN},
67 {"a": 1, "b": 3}
68 ])");
69 ASSERT_BATCHES_EQUAL(*expected, *actual);
70 AssertBatchesApproxEqual(*expected, *actual);
71}
72
73TEST_F(TestAssertContainsNaN, TableEqual) {
74 auto schema = ::arrow::schema({

Callers

nothing calls this directly

Calls 15

RecordBatchFromJSONFunction · 0.85
AssertBatchesApproxEqualFunction · 0.85
TableFromJSONFunction · 0.85
ArrayFromJSONFunction · 0.85
AssertArraysEqualFunction · 0.85
ChunkedArrayFromJSONFunction · 0.85
AssertChunkedEqualFunction · 0.85
ScalarFromJSONFunction · 0.85
AssertDatumsEqualFunction · 0.85
WrapFunction · 0.85
TensorFromJSONFunction · 0.85
schemaFunction · 0.50

Tested by

no test coverage detected