class RubyLsp::TestUnitReporter

def add_fault(result)

: (::Test::Unit::Failure | ::Test::Unit::Error | ::Test::Unit::Pending result) -> void
def add_fault(result)
  super
  return unless @current_uri && @current_test_id
  case result
  when ::Test::Unit::Failure
    LspReporter.instance.record_fail(id: @current_test_id, message: result.message, uri: @current_uri)
  when ::Test::Unit::Error
    LspReporter.instance.record_error(id: @current_test_id, message: result.message, uri: @current_uri)
  when ::Test::Unit::Pending
    LspReporter.instance.record_skip(id: @current_test_id, uri: @current_uri)
  end
end