| 62 | end |
| 63 | |
| 64 | def test_flush |
| 65 | require_gi_bindings(3, 3, 1) |
| 66 | arrays = { |
| 67 | "visible" => build_boolean_array([true, false, true]), |
| 68 | "point" => build_int32_array([1, -1, 0]), |
| 69 | } |
| 70 | arrays.each_with_index do |(_, array), i| |
| 71 | @builder.get_column_builder(i).append_values(array.values, []) |
| 72 | end |
| 73 | assert_equal(build_record_batch(arrays), |
| 74 | @builder.flush) |
| 75 | |
| 76 | arrays = { |
| 77 | "visible" => build_boolean_array([false, true]), |
| 78 | "point" => build_int32_array([10, -10]), |
| 79 | } |
| 80 | arrays.each_with_index do |(_, array), i| |
| 81 | @builder.get_column_builder(i).append_values(array.values, []) |
| 82 | end |
| 83 | assert_equal(build_record_batch(arrays), |
| 84 | @builder.flush) |
| 85 | end |
| 86 | end |
nothing calls this directly
no test coverage detected