Sha256: 8c8a5f80a1e247fdac91c614c587d6b6c56614acf4709ca5c8722b4799214d99
Contents?: true
Size: 833 Bytes
Versions: 4
Compression:
Stored size: 833 Bytes
Contents
require File.expand_path('../test_helper.rb', File.dirname(__FILE__)) describe GirFFI::Builder do describe ".itypeinfo_to_callback_ffitype" do describe "for an :interface argument" do setup do @iface = Object.new stub(@info = Object.new).interface { @iface } stub(@info).tag { :interface } stub(@info).pointer? { false } end it "correctly maps a :union argument to :pointer" do stub(@iface).info_type { :union } result = GirFFI::Builder.itypeinfo_to_callback_ffitype @info assert_equal :pointer, result end it "correctly maps a :flags argument to :int32" do stub(@iface).info_type { :flags } result = GirFFI::Builder.itypeinfo_to_callback_ffitype @info assert_equal :int32, result end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.0.14 | test/unit/builder_test.rb |
gir_ffi-0.0.13 | test/unit/builder_test.rb |
gir_ffi-0.0.12 | test/unit/builder_test.rb |
gir_ffi-0.0.11 | test/unit/builder_test.rb |