Sha256: 6b1df80b6cf071e4c28bbf40ea289fba6bf7cdc47b4bf0ad1ccd3f8fdf23e380
Contents?: true
Size: 534 Bytes
Versions: 6
Compression:
Stored size: 534 Bytes
Contents
# frozen_string_literal: true 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 GirFFI::CallbackBase::CALLBACKS[dummy_proc.object_id].wont_be_nil user_data = GirFFI::ArgHelper.store dummy_proc GLib::DestroyNotify.default.call user_data GirFFI::CallbackBase::CALLBACKS[dummy_proc.object_id].must_be_nil end end end
Version data entries
6 entries across 6 versions & 1 rubygems