Sha256: 3732d05731e80861fc1a15176e9b623e73246b44377078ea376820b0b96ad3d0
Contents?: true
Size: 846 Bytes
Versions: 3
Compression:
Stored size: 846 Bytes
Contents
# frozen_string_literal: true require 'gir_ffi_test_helper' # Tests generated methods and functions in the GTop namespace. This namespace # contains types with bad names, like 'glibtop_cpu'. describe 'The generated GTop module' do before do begin GirFFI.setup :GTop rescue RuntimeError skip 'No GIR data for GTop available' end end describe 'Glibtop' do it 'is a valid struct class' do # Superclass is either BoxedBase or StructBase, depending on library # versions. This means StructBase is always one of the ancestors. assert GTop::Glibtop < GirFFI::StructBase end it 'can be created using Glibtop.init' do skip unless get_method_introspection_data 'GTop', 'glibtop', 'init' instance = GTop::Glibtop.init instance.must_be_kind_of GTop::Glibtop end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.14.1 | test/integration/generated_gtop_test.rb |
gir_ffi-0.14.0 | test/integration/generated_gtop_test.rb |
gir_ffi-0.13.1 | test/integration/generated_gtop_test.rb |