Sha256: 3af3c7401a20dfbd457390ddd5d1c905ef011141ceeaa4a2da2fee89c416c2d9
Contents?: true
Size: 452 Bytes
Versions: 3
Compression:
Stored size: 452 Bytes
Contents
require 'gir_ffi_test_helper' describe GLib::DestroyNotify do describe '.default' do it 'removes the passed-in key from the callback store' do dummy_proc = 'some-callback' GirFFI::CallbackBase.store_callback dummy_proc user_data = GirFFI::InPointer.from_closure_data dummy_proc.object_id GLib::DestroyNotify.default.call user_data GirFFI::CallbackBase::CALLBACKS[dummy_proc.object_id].must_be_nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.9.2 | test/ffi-glib/destroy_notify_test.rb |
gir_ffi-0.9.1 | test/ffi-glib/destroy_notify_test.rb |
gir_ffi-0.9.0 | test/ffi-glib/destroy_notify_test.rb |