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

Method test_http

ruby/red-arrow/test/test-table.rb:916–928  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

914 data("CSV",
915 ["csv", "text/csv"])
916 def test_http(data)
917 extension, content_type = data
918 output = Arrow::ResizableBuffer.new(1024)
919 @table.save(output, format: extension.to_sym)
920 path = "/data.#{extension}"
921 start_web_server(path,
922 output.data.to_s,
923 content_type) do |port|
924 input = URI("http://127.0.0.1:#{port}#{path}")
925 loaded_table = Arrow::Table.load(input, schema: @table.schema)
926 assert_equal(@table.to_s, loaded_table.to_s)
927 end
928 end
929 end
930
931 sub_test_case("GC") do

Callers

nothing calls this directly

Calls 6

newMethod · 0.45
saveMethod · 0.45
to_sMethod · 0.45
dataMethod · 0.45
loadMethod · 0.45
schemaMethod · 0.45

Tested by

no test coverage detected