Class: Testprune::Footprint

Inherits:
Struct
  • Object
show all
Defined in:
lib/testprune/footprint.rb

Overview

A single test’s semantic coverage: the set of AST-aware unit IDs it executed, plus the metadata needed to report and patch it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



9
10
11
# File 'lib/testprune/footprint.rb', line 9

def description
  @description
end

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



9
10
11
# File 'lib/testprune/footprint.rb', line 9

def file
  @file
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



9
10
11
# File 'lib/testprune/footprint.rb', line 9

def id
  @id
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



9
10
11
# File 'lib/testprune/footprint.rb', line 9

def line
  @line
end

#unitsObject

Returns the value of attribute units

Returns:

  • (Object)

    the current value of units



9
10
11
# File 'lib/testprune/footprint.rb', line 9

def units
  @units
end

#wall_timeObject

Returns the value of attribute wall_time

Returns:

  • (Object)

    the current value of wall_time



9
10
11
# File 'lib/testprune/footprint.rb', line 9

def wall_time
  @wall_time
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/testprune/footprint.rb', line 10

def empty?
  units.empty?
end