Class: Ci::PipelineArtifacts::CodeCoveragePresenter

Inherits:
Ci::ProcessablePresenter show all
Includes:
Gitlab::Utils::StrongMemoize
Defined in:
app/presenters/ci/pipeline_artifacts/code_coverage_presenter.rb

Instance Attribute Summary

Attributes included from Gitlab::View::Presenter::Base

#subject

Instance Method Summary collapse

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Methods inherited from CommitStatusPresenter

#callout_failure_message, callout_failure_messages

Methods inherited from Gitlab::View::Presenter::Delegated

#initialize

Methods included from Gitlab::View::Presenter::Base

#can?, #declarative_policy_delegate, #is_a?, #present, #url_builder, #web_path, #web_url

Methods included from Gitlab::Allowable

#can?

Methods included from Gitlab::Routing

add_helpers, includes_helpers, redirect_legacy_paths, url_helpers

Constructor Details

This class inherits a constructor from Gitlab::View::Presenter::Delegated

Instance Method Details

#for_files(filenames) ⇒ Object


8
9
10
11
12
# File 'app/presenters/ci/pipeline_artifacts/code_coverage_presenter.rb', line 8

def for_files(filenames)
  coverage_files = raw_report["files"].select { |key| filenames.include?(key) }

  { files: coverage_files }
end