Skip to content

rdoc -C1 reports alias method arguments as uncovered #1567

Description

@zenspider
# run this with rdoc -C  rdoc_bug.rb and it looks fully covered.
# run this with rdoc -C1 rdoc_bug.rb to see that aliases arguments aren't covered.

##
# Instance methods

module InstanceMethods
  ##
  # Takes a +value+ or a +block+ and returns a value monad.

  def _ value = nil, &block
    # ...
  end

  alias value  _
  alias expect _
end

reports:

The following items are not documented:

  module InstanceMethods # is documented

    # in file rdoc_bug.rb
    # +value+, +block+ is not documented
    def expect(value = nil, &block); end

    # in file rdoc_bug.rb
    # +value+, +block+ is not documented
    def value(value = nil, &block); end

  end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions