Class: SimpleCov::Formatter::WorkspaceLcovFormatter::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/simplecov-workspace-lcov/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lcov_file_nameObject



31
32
33
# File 'lib/simplecov-workspace-lcov/configuration.rb', line 31

def lcov_file_name
  @lcov_file_name || "#{Pathname.new(SimpleCov.root).basename}.lcov"
end

#output_directoryObject



18
19
20
# File 'lib/simplecov-workspace-lcov/configuration.rb', line 18

def output_directory
  @output_directory || File.join(SimpleCov.coverage_path, 'lcov')
end

#report_with_single_file=(value) ⇒ Object (writeonly)

Sets the attribute report_with_single_file

Parameters:

  • value

    the value to set the attribute report_with_single_file to.



5
6
7
# File 'lib/simplecov-workspace-lcov/configuration.rb', line 5

def report_with_single_file=(value)
  @report_with_single_file = value
end

#workspace_pathObject



14
15
16
# File 'lib/simplecov-workspace-lcov/configuration.rb', line 14

def workspace_path
  @workspace_path || SimpleCov.root
end

Instance Method Details

#report_with_single_file?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/simplecov-workspace-lcov/configuration.rb', line 10

def report_with_single_file?
  !!@report_with_single_file
end

#single_report_pathObject



27
28
29
# File 'lib/simplecov-workspace-lcov/configuration.rb', line 27

def single_report_path
  @single_report_path || File.join(output_directory, lcov_file_name)
end

#single_report_path=(new_path) ⇒ Object



22
23
24
25
# File 'lib/simplecov-workspace-lcov/configuration.rb', line 22

def single_report_path=(new_path)
  self.output_directory = File.dirname(new_path)
  @single_report_path = new_path
end