Class: RuboCop::Formatter::JUnitFormatter::TestCaseElement

Inherits:
Object
  • Object
show all
Defined in:
lib/rubocop/formatter/junit_formatter.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(classname:, name:) ⇒ TestCaseElement

Returns a new instance of TestCaseElement.



142
143
144
145
146
# File 'lib/rubocop/formatter/junit_formatter.rb', line 142

def initialize(classname:, name:)
  @classname = classname
  @name = name
  @failures = []
end

Instance Attribute Details

#classnameObject (readonly)

Returns the value of attribute classname.



140
141
142
# File 'lib/rubocop/formatter/junit_formatter.rb', line 140

def classname
  @classname
end

#failuresObject (readonly)

Returns the value of attribute failures.



140
141
142
# File 'lib/rubocop/formatter/junit_formatter.rb', line 140

def failures
  @failures
end

#nameObject (readonly)

Returns the value of attribute name.



140
141
142
# File 'lib/rubocop/formatter/junit_formatter.rb', line 140

def name
  @name
end