Class: Shields::Badge::CodeCoverage::Coveralls

Inherits:
Base
  • Object
show all
Defined in:
lib/shields/badge/code_coverage/coveralls.rb

Overview

Shield for Coveralls test coverage
See: https://shields.io/badges/coveralls

Defined Under Namespace

Classes: PathDto, QueryDto

Constant Summary

Constants inherited from Base

Base::BASE_URL, Base::HTTP_METHOD

Instance Attribute Summary

Attributes inherited from Base

#anchor_href, #anchor_params, #image_type, #label, #path_parameters, #query_parameters

Class Method Summary collapse

Methods inherited from Base

anchor_href_url, #format, img_src_url, #initialize, label_text

Constructor Details

This class inherits a constructor from Shields::Badge::Base

Class Method Details

.anchor_href_templateObject



37
38
39
# File 'lib/shields/badge/code_coverage/coveralls.rb', line 37

def anchor_href_template
  "https://github.com/%{user}/%{repo}/actions"
end

.api_templateObject

Formatted string specification template
See: https://ruby-doc.org/3.4.1/String.html#method-i-25



33
34
35
# File 'lib/shields/badge/code_coverage/coveralls.rb', line 33

def api_template
  "/coverallsCoverage/%{vcs_type}/%{user}/%{repo}"
end

.label_text_templateObject



41
42
43
# File 'lib/shields/badge/code_coverage/coveralls.rb', line 41

def label_text_template
  "%{user}/%{repo} test coverage"
end