mocks

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder added in v0.10.0

type Builder struct {
	mock.Mock
}

Builder is an autogenerated mock type for the Builder type

func NewBuilder added in v0.10.0

func NewBuilder(t mockConstructorTestingTNewBuilder) *Builder

NewBuilder creates a new instance of Builder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Builder) BuildChangelog added in v0.10.0

func (_m *Builder) BuildChangelog() (changelog.Changelog, error)

BuildChangelog provides a mock function with given fields:

type Changelog

type Changelog struct {
	mock.Mock
}

Changelog is an autogenerated mock type for the Changelog type

func NewChangelog

func NewChangelog(t mockConstructorTestingTNewChangelog) *Changelog

NewChangelog creates a new instance of Changelog. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Changelog) AddUnreleased added in v0.10.0

func (_m *Changelog) AddUnreleased(_a0 []string)

AddUnreleased provides a mock function with given fields: _a0

func (*Changelog) GetEntries

func (_m *Changelog) GetEntries() []*entry.Entry

GetEntries provides a mock function with given fields:

func (*Changelog) GetRepoName

func (_m *Changelog) GetRepoName() string

GetRepoName provides a mock function with given fields:

func (*Changelog) GetRepoOwner

func (_m *Changelog) GetRepoOwner() string

GetRepoOwner provides a mock function with given fields:

func (*Changelog) GetUnreleased

func (_m *Changelog) GetUnreleased() []string

GetUnreleased provides a mock function with given fields:

func (*Changelog) Head added in v0.11.0

func (_m *Changelog) Head() *entry.Entry

Head provides a mock function with given fields:

func (*Changelog) Insert added in v0.11.0

func (_m *Changelog) Insert(_a0 entry.Entry)

Insert provides a mock function with given fields: _a0

func (*Changelog) Tail added in v0.11.0

func (_m *Changelog) Tail() *entry.Entry

Tail provides a mock function with given fields:

type GitClient

type GitClient struct {
	mock.Mock
}

GitClient is an autogenerated mock type for the GitClient type

func NewGitClient

func NewGitClient(t mockConstructorTestingTNewGitClient) *GitClient

NewGitClient creates a new instance of GitClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GitClient) GetDateOfHash

func (_m *GitClient) GetDateOfHash(hash string) (time.Time, error)

GetDateOfHash provides a mock function with given fields: hash

func (*GitClient) GetFirstCommit

func (_m *GitClient) GetFirstCommit() (string, error)

GetFirstCommit provides a mock function with given fields:

func (*GitClient) GetLastCommit

func (_m *GitClient) GetLastCommit() (string, error)

GetLastCommit provides a mock function with given fields:

type GitHubClient

type GitHubClient struct {
	mock.Mock
}

GitHubClient is an autogenerated mock type for the GitHubClient type

func NewGitHubClient

func NewGitHubClient(t mockConstructorTestingTNewGitHubClient) *GitHubClient

NewGitHubClient creates a new instance of GitHubClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GitHubClient) GetPullRequestsBetweenDates

func (_m *GitHubClient) GetPullRequestsBetweenDates(from time.Time, to time.Time) ([]githubclient.PullRequest, error)

GetPullRequestsBetweenDates provides a mock function with given fields: from, to

func (*GitHubClient) GetRepoName

func (_m *GitHubClient) GetRepoName() string

GetRepoName provides a mock function with given fields:

func (*GitHubClient) GetRepoOwner

func (_m *GitHubClient) GetRepoOwner() string

GetRepoOwner provides a mock function with given fields:

func (*GitHubClient) GetTags

func (_m *GitHubClient) GetTags() ([]githubclient.Tag, error)

GetTags provides a mock function with given fields:

type Logger added in v0.11.0

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger added in v0.11.0

func NewLogger(t mockConstructorTestingTNewLogger) *Logger

NewLogger creates a new instance of Logger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Logger) Complete added in v0.11.0

func (_m *Logger) Complete()

Complete provides a mock function with given fields:

func (*Logger) Errorf added in v0.11.0

func (_m *Logger) Errorf(format string, args ...interface{})

Errorf provides a mock function with given fields: format, args

func (*Logger) GetType added in v0.11.0

func (_m *Logger) GetType() logging.LoggerType

GetType provides a mock function with given fields:

func (*Logger) Infof added in v0.11.0

func (_m *Logger) Infof(format string, args ...interface{})

Infof provides a mock function with given fields: format, args

type Parser added in v0.12.0

type Parser struct {
	mock.Mock
}

Parser is an autogenerated mock type for the Parser type

func NewParser added in v0.12.0

func NewParser(t mockConstructorTestingTNewParser) *Parser

NewParser creates a new instance of Parser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Parser) Parse added in v0.12.0

func (_m *Parser) Parse() (changelog.Changelog, error)

Parse provides a mock function with given fields:

Jump to

Keyboard shortcuts

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