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

Method test_input_scalar

c_glib/test/test-function.rb:60–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 end
59
60 def test_input_scalar
61 add_function = Arrow::Function.find("add")
62 args = [
63 Arrow::ArrayDatum.new(build_int8_array([1, 2, 3])),
64 Arrow::ScalarDatum.new(Arrow::Int8Scalar.new(5)),
65 ]
66 assert_equal(build_int8_array([6, 7, 8]),
67 add_function.execute(args).value)
68 end
69
70 def test_output_scalar
71 sum_function = Arrow::Function.find("sum")

Callers

nothing calls this directly

Calls 4

findMethod · 0.45
newMethod · 0.45
valueMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected