reporter

package
v0.0.0-...-b83e1b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPResponseCreated = 201
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Forking

type Forking struct {
	// contains filtered or unexported fields
}

func NewForking

func NewForking(reporters []Reporter) *Forking

func (*Forking) Write

func (s *Forking) Write(changedLinesWithCoverage domain.SourceLineCoverageReport) error

type GithubPullRequest

type GithubPullRequest struct {
	// contains filtered or unexported fields
}

func NewGithubPullRequest

func NewGithubPullRequest(apiKey string, apiBaseURL string, pr string, owner string, repo string, httpClient pluginhttp.Client, jsonClient pluginjson.Client) *GithubPullRequest

func (*GithubPullRequest) GetName

func (s *GithubPullRequest) GetName() string

func (*GithubPullRequest) Write

func (s *GithubPullRequest) Write(changedLinesWithCoverage domain.SourceLineCoverageReport) error

type MockReporter

type MockReporter struct {
	mock.Mock
}

func (*MockReporter) GetName

func (m *MockReporter) GetName() string

func (*MockReporter) Write

type Reporter

type Reporter interface {
	Write(domain.SourceLineCoverageReport) error

	GetName() string
}

type Simple

type Simple struct {
	Out          io.Writer
	WritingFuncf func(io.Writer, string, ...interface{}) (int, error)
	WritingFunc  func(io.Writer, ...interface{}) (int, error)
}

func NewSimple

func NewSimple(out io.Writer) *Simple

func (*Simple) GetName

func (s *Simple) GetName() string

func (*Simple) Write

func (s *Simple) Write(changedLinesWithCoverage domain.SourceLineCoverageReport) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL