| 4934 | } |
| 4935 | |
| 4936 | void AssertStreamNext(struct ArrowDeviceArrayStream* c_stream, |
| 4937 | const RecordBatch& expected) { |
| 4938 | struct ArrowDeviceArray c_array; |
| 4939 | ASSERT_EQ(0, c_stream->get_next(c_stream, &c_array)); |
| 4940 | |
| 4941 | DeviceArrayExportGuard guard(&c_array); |
| 4942 | ASSERT_FALSE(ArrowDeviceArrayIsReleased(&c_array)); |
| 4943 | |
| 4944 | ASSERT_OK_AND_ASSIGN(auto batch, |
| 4945 | ImportDeviceRecordBatch(&c_array, expected.schema(), |
| 4946 | TestDeviceArrayRoundtrip::DeviceMapper)); |
| 4947 | AssertBatchesEqual(expected, *batch); |
| 4948 | } |
| 4949 | |
| 4950 | void AssertStreamNext(struct ArrowDeviceArrayStream* c_stream, const Array& expected) { |
| 4951 | struct ArrowDeviceArray c_array; |
nothing calls this directly
no test coverage detected