MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / aggregate_errors

Method aggregate_errors

rake_tasks/common.rb:124–136  ·  view source on GitHub ↗
(**steps)

Source from the content-addressed store, hash-verified

122 end
123
124 def self.aggregate_errors(**steps)
125 failures = steps.filter_map do |name, closure|
126 label = name.to_s.tr('_', ' ')
127 puts "Running #{label}..." unless name == :all
128 closure.call
129 nil
130 rescue StandardError => e
131 "#{label}: #{e.message}"
132 end
133 return if failures.empty?
134
135 raise failures.join("\n\n")
136 end
137
138 # Takes a url or a prepared request, so callers needing headers can build their own.
139 def self.get_request(target)

Callers

nothing calls this directly

Calls 3

to_sMethod · 0.80
callMethod · 0.65
messageMethod · 0.45

Tested by

no test coverage detected