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

Method setup

c_glib/test/flight-sql/test-client.rb:22–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 include Helper::Omittable
21
22 def setup
23 @server = nil
24 omit("Arrow Flight SQL is required") unless defined?(ArrowFlightSQL)
25 omit("Unstable on Windows") if Gem.win_platform?
26 @server = Helper::FlightSQLServer.new
27 host = "127.0.0.1"
28 location = ArrowFlight::Location.new("grpc://#{host}:0")
29 options = ArrowFlight::ServerOptions.new(location)
30 @server.listen(options)
31 @location = ArrowFlight::Location.new("grpc://#{host}:#{@server.port}")
32 @client = ArrowFlight::Client.new(@location)
33 @sql_client = ArrowFlightSQL::Client.new(@client)
34 end
35
36 def teardown
37 return if @server.nil?

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
portMethod · 0.45

Tested by

no test coverage detected