Sha256: c22a0bbefad3122e1036aab66b6f6dd9a88759caa2c3816f9bdcbabcec554e0b

Contents?: true

Size: 485 Bytes

Versions: 21

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true
require File.dirname(__FILE__) + '/spec_helper'

RSpec.describe YARD::Handlers::C::StructHandler do
  after { Registry.clear }

  it "handles Struct class definitions" do
    parse_init <<-eof
      rb_cRange = rb_struct_define_without_accessor(
          "Range", rb_cFoo, range_alloc,
          "begin", "end", "excl", NULL);
    eof
    expect(Registry.at('Range').type).to eq :class
    expect(Registry.at('Range').superclass).to eq P(:Foo)
  end
end

Version data entries

21 entries across 20 versions & 4 rubygems

Version Path
yard-0.9.24 spec/handlers/c/struct_handler_spec.rb
yard-0.9.23 spec/handlers/c/struct_handler_spec.rb
yard-0.9.22 spec/handlers/c/struct_handler_spec.rb
yard-0.9.21 spec/handlers/c/struct_handler_spec.rb
yard-0.9.20 spec/handlers/c/struct_handler_spec.rb
yard-0.9.19 spec/handlers/c/struct_handler_spec.rb
yard-0.9.16 spec/handlers/c/struct_handler_spec.rb
yard-0.9.15 spec/handlers/c/struct_handler_spec.rb
yard-0.9.14 spec/handlers/c/struct_handler_spec.rb
yard-0.9.13 spec/handlers/c/struct_handler_spec.rb
yard-0.9.12 spec/handlers/c/struct_handler_spec.rb
yard-0.9.11 spec/handlers/c/struct_handler_spec.rb
yard-0.9.10 spec/handlers/c/struct_handler_spec.rb
yard-0.9.9 spec/handlers/c/struct_handler_spec.rb
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.4.0/gems/yard-0.9.8/spec/handlers/c/struct_handler_spec.rb
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.2.0/gems/yard-0.9.8/spec/handlers/c/struct_handler_spec.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/yard-0.9.8/spec/handlers/c/struct_handler_spec.rb
yard-0.9.8 spec/handlers/c/struct_handler_spec.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.7/spec/handlers/c/struct_handler_spec.rb
yard-0.9.7 spec/handlers/c/struct_handler_spec.rb