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

Method test_invalid

c_glib/test/test-record-batch.rb:213–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211 end
212
213 def test_invalid
214 message = "[record-batch][validate]: Invalid: " +
215 "Number of rows in column 0 did not match batch: 1 vs 2"
216 n_rows = @id_value.length + 1 # incorrect number of rows
217
218 record_batch = Arrow::RecordBatch.new(@schema, n_rows, @values)
219 error = assert_raise(Arrow::Error::Invalid) do
220 record_batch.validate
221 end
222 assert_equal(message,
223 error.message.lines.first.chomp)
224 end
225 end
226
227 sub_test_case("#validate_full") do

Callers

nothing calls this directly

Calls 3

lengthMethod · 0.45
newMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected