We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0842a36 commit 88bc03eCopy full SHA for 88bc03e
lib/cucumber/formatter/usage.rb
@@ -8,8 +8,22 @@ module Cucumber
8
module Formatter
9
class Usage < Progress
10
include Console
11
- class StepDefKey < StepDefinitionLight
+ class StepDefKey
12
attr_accessor :mean_duration, :status
13
+ attr_reader :regexp_source, :location
14
+
15
+ def initialize(regexp_source, location)
16
+ @regexp_source = regexp_source
17
+ @location = location
18
+ end
19
20
+ def eql?(other)
21
+ regexp_source == other.regexp_source && location == other.location
22
23
24
+ def hash
25
+ regexp_source.hash + 31 * location.to_s.hash
26
27
end
28
29
def initialize(config)
0 commit comments