Documentation ¶
Overview ¶
Package fixtures contains code for creating ProfileService fixtures and is used in various parts of the code. For testing use only.
Index ¶
- func WithSuccessfulGetEntityName(name string) func(mock GitHubMock)
- func WithSuccessfulGetPackageByName(artifact any) func(mock GitHubMock)
- func WithSuccessfulGetPackageVersionById(version any) func(mock GitHubMock)
- func WithSuccessfulGetPullRequest(pr any) func(mock GitHubMock)
- type GitHubMock
- type GitHubMockBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithSuccessfulGetEntityName ¶
func WithSuccessfulGetEntityName(name string) func(mock GitHubMock)
func WithSuccessfulGetPackageByName ¶
func WithSuccessfulGetPackageByName(artifact any) func(mock GitHubMock)
func WithSuccessfulGetPackageVersionById ¶
func WithSuccessfulGetPackageVersionById(version any) func(mock GitHubMock)
func WithSuccessfulGetPullRequest ¶
func WithSuccessfulGetPullRequest(pr any) func(mock GitHubMock)
Types ¶
type GitHubMock ¶
type GitHubMock = *ghmock.MockGitHub
type GitHubMockBuilder ¶
type GitHubMockBuilder = func(*gomock.Controller) GitHubMock
func NewGitHubMock ¶
func NewGitHubMock(opts ...func(mock GitHubMock)) GitHubMockBuilder
Click to show internal directories.
Click to hide internal directories.