(cuda_context, cpu_chunked_array, cuda_chunked_array,
cpu_and_cuda_chunked_array)
| 3662 | |
| 3663 | |
| 3664 | def test_chunked_array_non_cpu(cuda_context, cpu_chunked_array, cuda_chunked_array, |
| 3665 | cpu_and_cuda_chunked_array): |
| 3666 | # type test |
| 3667 | assert cuda_chunked_array.type == cpu_chunked_array.type |
| 3668 | |
| 3669 | # length() test |
| 3670 | assert cuda_chunked_array.length() == cpu_chunked_array.length() |
| 3671 | |
| 3672 | # str() test |
| 3673 | assert str(cuda_chunked_array) == str(cpu_chunked_array) |
| 3674 | |
| 3675 | # repr() test |
| 3676 | assert str(cuda_chunked_array) in repr(cuda_chunked_array) |
| 3677 | |
| 3678 | # validate() test |
| 3679 | cuda_chunked_array.validate() |
| 3680 | with pytest.raises(NotImplementedError): |
| 3681 | cuda_chunked_array.validate(full=True) |
| 3682 | |
| 3683 | # null_count test |
| 3684 | with pytest.raises(NotImplementedError): |
| 3685 | cuda_chunked_array.null_count |
| 3686 | |
| 3687 | # nbytes() test |
| 3688 | with pytest.raises(NotImplementedError): |
| 3689 | cuda_chunked_array.nbytes |
| 3690 | |
| 3691 | # get_total_buffer_size() test |
| 3692 | with pytest.raises(NotImplementedError): |
| 3693 | cuda_chunked_array.get_total_buffer_size() |
| 3694 | |
| 3695 | # getitem() test |
| 3696 | with pytest.raises(NotImplementedError): |
| 3697 | cuda_chunked_array[0] |
| 3698 | |
| 3699 | # is_null() test |
| 3700 | with pytest.raises(NotImplementedError): |
| 3701 | cuda_chunked_array.is_null() |
| 3702 | |
| 3703 | # is_nan() test |
| 3704 | with pytest.raises(NotImplementedError): |
| 3705 | cuda_chunked_array.is_nan() |
| 3706 | |
| 3707 | # is_valid() test |
| 3708 | with pytest.raises(NotImplementedError): |
| 3709 | cuda_chunked_array.is_valid() |
| 3710 | |
| 3711 | # fill_null() test |
| 3712 | with pytest.raises(NotImplementedError): |
| 3713 | cuda_chunked_array.fill_null(0) |
| 3714 | |
| 3715 | # equals() test |
| 3716 | with pytest.raises(NotImplementedError): |
| 3717 | cuda_chunked_array == cuda_chunked_array |
| 3718 | |
| 3719 | # to_pandas() test |
| 3720 | with pytest.raises(NotImplementedError): |
| 3721 | cuda_chunked_array.to_pandas() |
nothing calls this directly
no test coverage detected