(batch, expected_schema)
| 3857 | |
| 3858 | |
| 3859 | def verify_cuda_recordbatch(batch, expected_schema): |
| 3860 | batch.validate() |
| 3861 | assert batch.device_type == pa.DeviceAllocationType.CUDA |
| 3862 | assert batch.is_cpu is False |
| 3863 | assert batch.num_columns == len(expected_schema.names) |
| 3864 | assert batch.column_names == expected_schema.names |
| 3865 | assert str(batch) in repr(batch) |
| 3866 | for c in batch.columns: |
| 3867 | assert c.device_type == pa.DeviceAllocationType.CUDA |
| 3868 | assert batch.schema == expected_schema |
| 3869 | |
| 3870 | |
| 3871 | def test_recordbatch_non_cpu(cuda_context, cpu_recordbatch, cuda_recordbatch, |
no test coverage detected