increments/circleci-coverage_reporter

View on GitHub
lib/circleci/coverage_reporter/vcs/base.rb

Summary

Maintainability
A
0 mins
Test Coverage
module CircleCI
  module CoverageReporter
    module VCS
      # @abstract Subclass and override {#create_comment} to implement a custom VCS client class.
      class Base
        # @param token [String]
        def initialize(token)
          @token = token
        end

        # @param body [String]
        # @return [void]
        def create_comment(body) # rubocop:disable Lint/UnusedMethodArgument
          raise NotImplementedError
        end

        private

        attr_reader :token
      end
    end
  end
end