Class: Teaspoon::Configuration::Coverage

Inherits:
Object
  • Object
show all
Defined in:
lib/teaspoon/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Coverage

Returns a new instance of Coverage.

Yields:

  • (_self)

Yield Parameters:



131
132
133
134
135
136
137
138
139
140
141
142
143
# File 'lib/teaspoon/configuration.rb', line 131

def initialize
  @reports      = ["text-summary"]
  @output_path  = "coverage"

  @statements   = nil
  @functions    = nil
  @branches     = nil
  @lines        = nil

  default = Teaspoon.configuration.coverage_configs["default"]
  self.instance_eval(&default[:block]) if default
  yield self if block_given?
end

Instance Attribute Details

#branchesObject

Returns the value of attribute branches.



128
129
130
# File 'lib/teaspoon/configuration.rb', line 128

def branches
  @branches
end

#functionsObject

Returns the value of attribute functions.



128
129
130
# File 'lib/teaspoon/configuration.rb', line 128

def functions
  @functions
end

#linesObject

Returns the value of attribute lines.



128
129
130
# File 'lib/teaspoon/configuration.rb', line 128

def lines
  @lines
end

#output_pathObject

Returns the value of attribute output_path.



128
129
130
# File 'lib/teaspoon/configuration.rb', line 128

def output_path
  @output_path
end

#reportsObject

Returns the value of attribute reports.



128
129
130
# File 'lib/teaspoon/configuration.rb', line 128

def reports
  @reports
end

#statementsObject

Returns the value of attribute statements.



128
129
130
# File 'lib/teaspoon/configuration.rb', line 128

def statements
  @statements
end