Documentation
¶
Index ¶
- type GithubIClient
- type GithubIClient_Expecter
- type GithubIClient_QuarantineTests_Call
- type JiraIClient
- func (_mock *JiraIClient) AddCommentToTicket(ticketKey string, comment string) error
- func (_mock *JiraIClient) CreateFlakyTestTicket(req jira.FlakyTestTicketRequest) (*jira.TicketResponse, error)
- func (_m *JiraIClient) EXPECT() *JiraIClient_Expecter
- func (_mock *JiraIClient) GetTicketStatus(ticketKey string) (*jira.TicketStatus, error)
- type JiraIClient_AddCommentToTicket_Call
- func (_c *JiraIClient_AddCommentToTicket_Call) Return(err error) *JiraIClient_AddCommentToTicket_Call
- func (_c *JiraIClient_AddCommentToTicket_Call) Run(run func(ticketKey string, comment string)) *JiraIClient_AddCommentToTicket_Call
- func (_c *JiraIClient_AddCommentToTicket_Call) RunAndReturn(run func(ticketKey string, comment string) error) *JiraIClient_AddCommentToTicket_Call
- type JiraIClient_CreateFlakyTestTicket_Call
- func (_c *JiraIClient_CreateFlakyTestTicket_Call) Return(ticketResponse *jira.TicketResponse, err error) *JiraIClient_CreateFlakyTestTicket_Call
- func (_c *JiraIClient_CreateFlakyTestTicket_Call) Run(run func(req jira.FlakyTestTicketRequest)) *JiraIClient_CreateFlakyTestTicket_Call
- func (_c *JiraIClient_CreateFlakyTestTicket_Call) RunAndReturn(run func(req jira.FlakyTestTicketRequest) (*jira.TicketResponse, error)) *JiraIClient_CreateFlakyTestTicket_Call
- type JiraIClient_Expecter
- func (_e *JiraIClient_Expecter) AddCommentToTicket(ticketKey interface{}, comment interface{}) *JiraIClient_AddCommentToTicket_Call
- func (_e *JiraIClient_Expecter) CreateFlakyTestTicket(req interface{}) *JiraIClient_CreateFlakyTestTicket_Call
- func (_e *JiraIClient_Expecter) GetTicketStatus(ticketKey interface{}) *JiraIClient_GetTicketStatus_Call
- type JiraIClient_GetTicketStatus_Call
- func (_c *JiraIClient_GetTicketStatus_Call) Return(ticketStatus *jira.TicketStatus, err error) *JiraIClient_GetTicketStatus_Call
- func (_c *JiraIClient_GetTicketStatus_Call) Run(run func(ticketKey string)) *JiraIClient_GetTicketStatus_Call
- func (_c *JiraIClient_GetTicketStatus_Call) RunAndReturn(run func(ticketKey string) (*jira.TicketStatus, error)) *JiraIClient_GetTicketStatus_Call
- type TrunkIClient
- type TrunkIClient_Expecter
- type TrunkIClient_LinkTicketToTestCase_Call
- func (_c *TrunkIClient_LinkTicketToTestCase_Call) Return(err error) *TrunkIClient_LinkTicketToTestCase_Call
- func (_c *TrunkIClient_LinkTicketToTestCase_Call) Run(run func(testCaseID string, ticket *jira.TicketResponse, repoURL string)) *TrunkIClient_LinkTicketToTestCase_Call
- func (_c *TrunkIClient_LinkTicketToTestCase_Call) RunAndReturn(run func(testCaseID string, ticket *jira.TicketResponse, repoURL string) error) *TrunkIClient_LinkTicketToTestCase_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubIClient ¶
GithubIClient is an autogenerated mock type for the IClient type
func NewGithubIClient ¶
func NewGithubIClient(t interface {
mock.TestingT
Cleanup(func())
}) *GithubIClient
NewGithubIClient creates a new instance of GithubIClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*GithubIClient) EXPECT ¶
func (_m *GithubIClient) EXPECT() *GithubIClient_Expecter
func (*GithubIClient) QuarantineTests ¶
func (_mock *GithubIClient) QuarantineTests(ctx context.Context, l zerolog.Logger, owner string, repo string, targets []golang.QuarantineTarget, options ...github.QuarantineOption) error
QuarantineTests provides a mock function for the type GithubIClient
type GithubIClient_Expecter ¶
type GithubIClient_Expecter struct {
// contains filtered or unexported fields
}
func (*GithubIClient_Expecter) QuarantineTests ¶
func (_e *GithubIClient_Expecter) QuarantineTests(ctx interface{}, l interface{}, owner interface{}, repo interface{}, targets interface{}, options ...interface{}) *GithubIClient_QuarantineTests_Call
QuarantineTests is a helper method to define mock.On call
- ctx context.Context
- l zerolog.Logger
- owner string
- repo string
- targets []golang.QuarantineTarget
- options ...github.QuarantineOption
type GithubIClient_QuarantineTests_Call ¶
GithubIClient_QuarantineTests_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QuarantineTests'
func (*GithubIClient_QuarantineTests_Call) Return ¶
func (_c *GithubIClient_QuarantineTests_Call) Return(err error) *GithubIClient_QuarantineTests_Call
func (*GithubIClient_QuarantineTests_Call) Run ¶
func (_c *GithubIClient_QuarantineTests_Call) Run(run func(ctx context.Context, l zerolog.Logger, owner string, repo string, targets []golang.QuarantineTarget, options ...github.QuarantineOption)) *GithubIClient_QuarantineTests_Call
func (*GithubIClient_QuarantineTests_Call) RunAndReturn ¶
func (_c *GithubIClient_QuarantineTests_Call) RunAndReturn(run func(ctx context.Context, l zerolog.Logger, owner string, repo string, targets []golang.QuarantineTarget, options ...github.QuarantineOption) error) *GithubIClient_QuarantineTests_Call
type JiraIClient ¶
JiraIClient is an autogenerated mock type for the IClient type
func NewJiraIClient ¶
func NewJiraIClient(t interface {
mock.TestingT
Cleanup(func())
}) *JiraIClient
NewJiraIClient creates a new instance of JiraIClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*JiraIClient) AddCommentToTicket ¶
func (_mock *JiraIClient) AddCommentToTicket(ticketKey string, comment string) error
AddCommentToTicket provides a mock function for the type JiraIClient
func (*JiraIClient) CreateFlakyTestTicket ¶
func (_mock *JiraIClient) CreateFlakyTestTicket(req jira.FlakyTestTicketRequest) (*jira.TicketResponse, error)
CreateFlakyTestTicket provides a mock function for the type JiraIClient
func (*JiraIClient) EXPECT ¶
func (_m *JiraIClient) EXPECT() *JiraIClient_Expecter
func (*JiraIClient) GetTicketStatus ¶
func (_mock *JiraIClient) GetTicketStatus(ticketKey string) (*jira.TicketStatus, error)
GetTicketStatus provides a mock function for the type JiraIClient
type JiraIClient_AddCommentToTicket_Call ¶
JiraIClient_AddCommentToTicket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCommentToTicket'
func (*JiraIClient_AddCommentToTicket_Call) Return ¶
func (_c *JiraIClient_AddCommentToTicket_Call) Return(err error) *JiraIClient_AddCommentToTicket_Call
func (*JiraIClient_AddCommentToTicket_Call) Run ¶
func (_c *JiraIClient_AddCommentToTicket_Call) Run(run func(ticketKey string, comment string)) *JiraIClient_AddCommentToTicket_Call
func (*JiraIClient_AddCommentToTicket_Call) RunAndReturn ¶
func (_c *JiraIClient_AddCommentToTicket_Call) RunAndReturn(run func(ticketKey string, comment string) error) *JiraIClient_AddCommentToTicket_Call
type JiraIClient_CreateFlakyTestTicket_Call ¶
JiraIClient_CreateFlakyTestTicket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFlakyTestTicket'
func (*JiraIClient_CreateFlakyTestTicket_Call) Return ¶
func (_c *JiraIClient_CreateFlakyTestTicket_Call) Return(ticketResponse *jira.TicketResponse, err error) *JiraIClient_CreateFlakyTestTicket_Call
func (*JiraIClient_CreateFlakyTestTicket_Call) Run ¶
func (_c *JiraIClient_CreateFlakyTestTicket_Call) Run(run func(req jira.FlakyTestTicketRequest)) *JiraIClient_CreateFlakyTestTicket_Call
func (*JiraIClient_CreateFlakyTestTicket_Call) RunAndReturn ¶
func (_c *JiraIClient_CreateFlakyTestTicket_Call) RunAndReturn(run func(req jira.FlakyTestTicketRequest) (*jira.TicketResponse, error)) *JiraIClient_CreateFlakyTestTicket_Call
type JiraIClient_Expecter ¶
type JiraIClient_Expecter struct {
// contains filtered or unexported fields
}
func (*JiraIClient_Expecter) AddCommentToTicket ¶
func (_e *JiraIClient_Expecter) AddCommentToTicket(ticketKey interface{}, comment interface{}) *JiraIClient_AddCommentToTicket_Call
AddCommentToTicket is a helper method to define mock.On call
- ticketKey string
- comment string
func (*JiraIClient_Expecter) CreateFlakyTestTicket ¶
func (_e *JiraIClient_Expecter) CreateFlakyTestTicket(req interface{}) *JiraIClient_CreateFlakyTestTicket_Call
CreateFlakyTestTicket is a helper method to define mock.On call
- req jira.FlakyTestTicketRequest
func (*JiraIClient_Expecter) GetTicketStatus ¶
func (_e *JiraIClient_Expecter) GetTicketStatus(ticketKey interface{}) *JiraIClient_GetTicketStatus_Call
GetTicketStatus is a helper method to define mock.On call
- ticketKey string
type JiraIClient_GetTicketStatus_Call ¶
JiraIClient_GetTicketStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTicketStatus'
func (*JiraIClient_GetTicketStatus_Call) Return ¶
func (_c *JiraIClient_GetTicketStatus_Call) Return(ticketStatus *jira.TicketStatus, err error) *JiraIClient_GetTicketStatus_Call
func (*JiraIClient_GetTicketStatus_Call) Run ¶
func (_c *JiraIClient_GetTicketStatus_Call) Run(run func(ticketKey string)) *JiraIClient_GetTicketStatus_Call
func (*JiraIClient_GetTicketStatus_Call) RunAndReturn ¶
func (_c *JiraIClient_GetTicketStatus_Call) RunAndReturn(run func(ticketKey string) (*jira.TicketStatus, error)) *JiraIClient_GetTicketStatus_Call
type TrunkIClient ¶
TrunkIClient is an autogenerated mock type for the IClient type
func NewTrunkIClient ¶
func NewTrunkIClient(t interface {
mock.TestingT
Cleanup(func())
}) *TrunkIClient
NewTrunkIClient creates a new instance of TrunkIClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TrunkIClient) EXPECT ¶
func (_m *TrunkIClient) EXPECT() *TrunkIClient_Expecter
func (*TrunkIClient) LinkTicketToTestCase ¶
func (_mock *TrunkIClient) LinkTicketToTestCase(testCaseID string, ticket *jira.TicketResponse, repoURL string) error
LinkTicketToTestCase provides a mock function for the type TrunkIClient
type TrunkIClient_Expecter ¶
type TrunkIClient_Expecter struct {
// contains filtered or unexported fields
}
func (*TrunkIClient_Expecter) LinkTicketToTestCase ¶
func (_e *TrunkIClient_Expecter) LinkTicketToTestCase(testCaseID interface{}, ticket interface{}, repoURL interface{}) *TrunkIClient_LinkTicketToTestCase_Call
LinkTicketToTestCase is a helper method to define mock.On call
- testCaseID string
- ticket *jira.TicketResponse
- repoURL string
type TrunkIClient_LinkTicketToTestCase_Call ¶
TrunkIClient_LinkTicketToTestCase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LinkTicketToTestCase'
func (*TrunkIClient_LinkTicketToTestCase_Call) Return ¶
func (_c *TrunkIClient_LinkTicketToTestCase_Call) Return(err error) *TrunkIClient_LinkTicketToTestCase_Call
func (*TrunkIClient_LinkTicketToTestCase_Call) Run ¶
func (_c *TrunkIClient_LinkTicketToTestCase_Call) Run(run func(testCaseID string, ticket *jira.TicketResponse, repoURL string)) *TrunkIClient_LinkTicketToTestCase_Call
func (*TrunkIClient_LinkTicketToTestCase_Call) RunAndReturn ¶
func (_c *TrunkIClient_LinkTicketToTestCase_Call) RunAndReturn(run func(testCaseID string, ticket *jira.TicketResponse, repoURL string) error) *TrunkIClient_LinkTicketToTestCase_Call