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

Method test_error

c_glib/test/test-json-reader.rb:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 end
62
63 def test_error
64 @options.unexpected_field_behavior = :error
65 table = Arrow::JSONReader.new(open_input(<<-JSON), @options)
66{ "message": "Hello", "count": 3.5, "valid": false }
67{ "message": "World", "count": 3.25, "valid": true }
68 JSON
69 assert_raise(Arrow::Error::Invalid) do
70 table.read
71 end
72 end
73
74 def test_infer_type
75 @options.unexpected_field_behavior = :infer_type

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected