MCPcopy Create free account
hub / github.com/apache/arrow / test_n_skip_rows

Method test_n_skip_rows

c_glib/test/test-csv-reader.rb:179–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 end
178
179 def test_n_skip_rows
180 options = Arrow::CSVReadOptions.new
181 options.n_skip_rows = 1
182 table = Arrow::CSVReader.new(open_input(<<-CSV), options)
183message1,message2
184"Start1","Start2"
185"Shutdown1","Shutdown2"
186"Reboot1","Reboot2"
187 CSV
188 columns = {
189 "Start1" => build_string_array(["Shutdown1", "Reboot1"]),
190 "Start2" => build_string_array(["Shutdown2", "Reboot2"]),
191 }
192 assert_equal(build_table(columns),
193 table.read)
194 end
195
196 def test_column_names
197 options = Arrow::CSVReadOptions.new

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected