Commit e315d09e authored by Amit Patel's avatar Amit Patel Committed by Nikola Milojevic

Move Struct constant declaration to the top

It was moved to make it more aligned with most of the codebase
parent c9d2283b
......@@ -8,6 +8,7 @@ module Gitlab
DEFAULT_MAX_TESTS = 100
DEFAULT_MIN_TESTS = 10
TestSummary = Struct.new(:new_failures, :existing_failures, :resolved_failures, :new_errors, :existing_errors, :resolved_errors, keyword_init: true)
attr_reader :name, :base_suite, :head_suite
......@@ -85,8 +86,6 @@ module Gitlab
new_errors.count + existing_errors.count
end
TestSummary = Struct.new(:new_failures, :existing_failures, :resolved_failures, :new_errors, :existing_errors, :resolved_errors, keyword_init: true)
# This is used to limit the presented test cases but does not affect
# total count of tests in the summary
def limited_tests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment