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.



125
126
127
128
129
# File 'lib/rubocop/formatter/junit_formatter.rb', line 125

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

Instance Attribute Details

#classnameObject (readonly)

Returns the value of attribute classname.



123
124
125
# File 'lib/rubocop/formatter/junit_formatter.rb', line 123

def classname
  @classname
end

#failuresObject (readonly)

Returns the value of attribute failures.



123
124
125
# File 'lib/rubocop/formatter/junit_formatter.rb', line 123

def failures
  @failures
end

#nameObject (readonly)

Returns the value of attribute name.



123
124
125
# File 'lib/rubocop/formatter/junit_formatter.rb', line 123

def name
  @name
end