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

Method test_invalid

c_glib/test/test-array.rb:126–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 end
125
126 def test_invalid
127 message = "[array][view]: Invalid: " +
128 "Can't view array of type int16 as int8: incompatible layouts"
129 error = assert_raise(Arrow::Error::Invalid) do
130 build_int16_array([0, -1, 3]).view(Arrow::Int8DataType.new)
131 end
132 assert_equal(message, error.message.lines.first.chomp)
133 end
134 end
135
136 sub_test_case("#diff_unified") do

Callers

nothing calls this directly

Calls 5

viewMethod · 0.45
newMethod · 0.45
validateMethod · 0.45
packMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected