| 63 | }; |
| 64 | |
| 65 | TEST_F(TestFixedWidth, IsFixedWidth) { |
| 66 | auto arr = ArraySpan{*bool_array_array_->data()}; |
| 67 | // force_null_count doesn't matter because nulls at the top-level |
| 68 | // of the array are allowed by IsFixedWidthLike. |
| 69 | ASSERT_TRUE(IsFixedWidthLike(arr, /*force_null_count=*/false)); |
| 70 | ASSERT_TRUE(IsFixedWidthLike(arr, /*force_null_count=*/true)); |
| 71 | |
| 72 | ASSERT_TRUE(IsFixedWidthLike(arr, /*force_null_count=*/false, NotInt32)); |
| 73 | ASSERT_FALSE(IsFixedWidthLike(arr, /*force_null_count=*/false, NotBool)); |
| 74 | |
| 75 | arr = ArraySpan{*int_array_array_->data()}; |
| 76 | ASSERT_TRUE(IsFixedWidthLike(arr, /*force_null_count=*/false)); |
| 77 | ASSERT_TRUE(IsFixedWidthLike(arr, /*force_null_count=*/true)); |
| 78 | ASSERT_TRUE(IsFixedWidthLike(arr, /*force_null_count=*/false, NotBool)); |
| 79 | } |
| 80 | |
| 81 | TEST_F(TestFixedWidth, IsFixedWidthLike) { |
| 82 | auto arr = ArraySpan{*fsl_bool_array_->data()}; |
nothing calls this directly
no test coverage detected