Class: Hashira::CI::Slice

Inherits:
Object
  • Object
show all
Defined in:
lib/hashira/ci/slice.rb

Constant Summary collapse

SETTLED =
Hashira::CI::Diff.new(added: [], removed: [])

Instance Method Summary collapse

Constructor Details

#initialize(baseline) ⇒ Slice

Returns a new instance of Slice.



6
7
8
# File 'lib/hashira/ci/slice.rb', line 6

def initialize(baseline)
  @baseline = baseline
end

Instance Method Details

#counts(_edges, findings) ⇒ Object



14
# File 'lib/hashira/ci/slice.rb', line 14

def counts(_edges, findings) = [findings]

#edges(_diff) ⇒ Object



10
# File 'lib/hashira/ci/slice.rb', line 10

def edges(_diff) = SETTLED

#findings(marks) ⇒ Object



12
# File 'lib/hashira/ci/slice.rb', line 12

def findings(marks) = Hashira::CI::Comparison.new(marks, seen(marks, traces(marks))).diff.with(removed: [])