class TestDiff::TestInfo

class used to hold infomation about the test

Constants

FIXNUM_MAX

Attributes

execution_time[R]
filename[R]

Public Class Methods

new(f, et) click to toggle source
# File lib/test_diff/test_info.rb, line 9
def initialize(f, et)
  @filename = f
  @execution_time = et
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/test_diff/test_info.rb, line 18
def <=>(other)
  if compare_execution_time == other.compare_execution_time
    filename <=> other.filename
  else
    compare_execution_time <=> other.compare_execution_time
  end
end
compare_execution_time() click to toggle source
# File lib/test_diff/test_info.rb, line 14
def compare_execution_time
  @execution_time || FIXNUM_MAX
end