(cuda_context, cpu_chunked_array, cuda_chunked_array,
cpu_and_cuda_chunked_array)
| 3716 | |
| 3717 | |
| 3718 | def test_chunked_array_non_cpu(cuda_context, cpu_chunked_array, cuda_chunked_array, |
| 3719 | cpu_and_cuda_chunked_array): |
| 3720 | # type test |
| 3721 | assert cuda_chunked_array.type == cpu_chunked_array.type |
| 3722 | |
| 3723 | # length() test |
| 3724 | assert cuda_chunked_array.length() == cpu_chunked_array.length() |
| 3725 | |
| 3726 | # str() test |
| 3727 | assert str(cuda_chunked_array) == str(cpu_chunked_array) |
| 3728 | |
| 3729 | # repr() test |
| 3730 | assert str(cuda_chunked_array) in repr(cuda_chunked_array) |
| 3731 | |
| 3732 | # validate() test |
| 3733 | cuda_chunked_array.validate() |
| 3734 | with pytest.raises(NotImplementedError): |
| 3735 | cuda_chunked_array.validate(full=True) |
| 3736 | |
| 3737 | # null_count test |
| 3738 | with pytest.raises(NotImplementedError): |
| 3739 | cuda_chunked_array.null_count |
| 3740 | |
| 3741 | # nbytes() test |
| 3742 | with pytest.raises(NotImplementedError): |
| 3743 | cuda_chunked_array.nbytes |
| 3744 | |
| 3745 | # get_total_buffer_size() test |
| 3746 | with pytest.raises(NotImplementedError): |
| 3747 | cuda_chunked_array.get_total_buffer_size() |
| 3748 | |
| 3749 | # getitem() test |
| 3750 | with pytest.raises(NotImplementedError): |
| 3751 | cuda_chunked_array[0] |
| 3752 | |
| 3753 | # is_null() test |
| 3754 | with pytest.raises(NotImplementedError): |
| 3755 | cuda_chunked_array.is_null() |
| 3756 | |
| 3757 | # is_nan() test |
| 3758 | with pytest.raises(NotImplementedError): |
| 3759 | cuda_chunked_array.is_nan() |
| 3760 | |
| 3761 | # is_valid() test |
| 3762 | with pytest.raises(NotImplementedError): |
| 3763 | cuda_chunked_array.is_valid() |
| 3764 | |
| 3765 | # fill_null() test |
| 3766 | with pytest.raises(NotImplementedError): |
| 3767 | cuda_chunked_array.fill_null(0) |
| 3768 | |
| 3769 | # equals() test |
| 3770 | with pytest.raises(NotImplementedError): |
| 3771 | cuda_chunked_array == cuda_chunked_array |
| 3772 | |
| 3773 | # to_pandas() test |
| 3774 | with pytest.raises(NotImplementedError): |
| 3775 | cuda_chunked_array.to_pandas() |
nothing calls this directly
no test coverage detected