| 194 | end |
| 195 | |
| 196 | def test_column_names |
| 197 | options = Arrow::CSVReadOptions.new |
| 198 | column_names = ["message", "count"] |
| 199 | options.column_names = column_names |
| 200 | assert_equal(column_names, options.column_names) |
| 201 | |
| 202 | table = Arrow::CSVReader.new(open_input(<<-CSV), options) |
| 203 | "Start",2 |
| 204 | "Shutdown",9 |
| 205 | "Reboot",5 |
| 206 | CSV |
| 207 | columns = { |
| 208 | "message" => build_string_array(["Start", "Shutdown", "Reboot"]), |
| 209 | "count" => build_int64_array([2, 9, 5]), |
| 210 | } |
| 211 | assert_equal(build_table(columns), |
| 212 | table.read) |
| 213 | end |
| 214 | |
| 215 | def test_add_column_name |
| 216 | options = Arrow::CSVReadOptions.new |
nothing calls this directly
no test coverage detected