Skip to content
代码片段 群组 项目
提交 820680fc 编辑于 作者: Thong Kuah's avatar Thong Kuah
浏览文件

Remove :nocov: lines as found the issue

The issue was component specs was not running in CI
上级 820becc4
No related branches found
No related tags found
无相关合并请求
......@@ -2,12 +2,6 @@
module Diffs
class OverflowWarningComponent < BaseComponent
# Skipping coverage because of https://gitlab.com/gitlab-org/gitlab/-/issues/357381
#
# This is fully tested by the output in the view part of this component,
# but undercoverage doesn't understand the relationship between the two parts.
#
# :nocov:
def initialize(diffs:, diff_files:, project:, commit: nil, merge_request: nil)
@diffs = diffs
@diff_files = diff_files
......@@ -68,6 +62,5 @@ def message_text
def button_classes
"btn gl-alert-action btn-default gl-button btn-default-secondary"
end
# :nocov:
end
end
......@@ -28,13 +28,6 @@ def diff_files_data
Gitlab::Json.dump(diffs_map)
end
# Disabled undercoverage reports for this method
# as it returns a false positive on the last line,
# which is covered in the tests
#
# Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/357381
#
# :nocov:
def diff_file_path_text(diff_file, max: 60)
path = diff_file.new_path
......@@ -42,7 +35,6 @@ def diff_file_path_text(diff_file, max: 60)
"...#{path[-(max - 3)..]}"
end
# :nocov:
private
......
......@@ -4,8 +4,6 @@ module Pajamas
class Component < ViewComponent::Base
private
# :nocov:
# Filter a given a value against a list of allowed values
# If no value is given or value is not allowed return default one
#
......@@ -18,6 +16,5 @@ def filter_attribute(value, allowed_values, default: nil)
default
end
# :nocov:
end
end
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册