Module: TestBench::Run::Controls::Summary::File::Totals

Defined in:
lib/test_bench/run/controls/summary/file/totals.rb

Class Method Summary collapse

Class Method Details

.abortedObject



24
25
26
# File 'lib/test_bench/run/controls/summary/file/totals.rb', line 24

def self.aborted
  20
end

.attemptedObject



16
17
18
# File 'lib/test_bench/run/controls/summary/file/totals.rb', line 16

def self.attempted
  222
end

.completedObject



20
21
22
# File 'lib/test_bench/run/controls/summary/file/totals.rb', line 20

def self.completed
  200
end

.example(attempted: nil, completed: nil, aborted: nil, not_found: nil) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/test_bench/run/controls/summary/file/totals.rb', line 7

def self.example(attempted: nil, completed: nil, aborted: nil, not_found: nil)
  attempted ||= self.attempted
  completed ||= self.completed
  aborted ||= self.aborted
  not_found ||= self.not_found

  TestBench::Run::Summary::FileTotals.new(attempted, completed, aborted, not_found)
end

.not_foundObject



28
29
30
# File 'lib/test_bench/run/controls/summary/file/totals.rb', line 28

def self.not_found
  2
end