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

Method test_default

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

Source from the content-addressed store, hash-verified

26 end
27
28 def test_default
29 table = Arrow::JSONReader.new(open_input(<<-JSON))
30{ "message": "Hello", "count": 3.5, "valid": false }
31{ "message": "World", "count": 3.25, "valid": true }
32 JSON
33 columns = {
34 "message" => build_string_array(["Hello", "World"]),
35 "count" => build_double_array([3.5, 3.25]),
36 "valid" => build_boolean_array([false, true]),
37 }
38 assert_equal(build_table(columns),
39 table.read)
40 end
41
42 sub_test_case("unexpected-field-behavior") do
43 def setup

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected