mock

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 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 GithubIClient

type GithubIClient struct {
	mock.Mock
}

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

type GithubIClient_QuarantineTests_Call struct {
	*mock.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 (*GithubIClient_QuarantineTests_Call) Run

func (*GithubIClient_QuarantineTests_Call) RunAndReturn

type JiraIClient

type JiraIClient struct {
	mock.Mock
}

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

type JiraIClient_AddCommentToTicket_Call struct {
	*mock.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 (*JiraIClient_AddCommentToTicket_Call) Run

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

type JiraIClient_CreateFlakyTestTicket_Call struct {
	*mock.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 (*JiraIClient_CreateFlakyTestTicket_Call) Run

func (*JiraIClient_CreateFlakyTestTicket_Call) RunAndReturn

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

type JiraIClient_GetTicketStatus_Call struct {
	*mock.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 (*JiraIClient_GetTicketStatus_Call) Run

func (*JiraIClient_GetTicketStatus_Call) RunAndReturn

type TrunkIClient

type TrunkIClient struct {
	mock.Mock
}

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

type TrunkIClient_LinkTicketToTestCase_Call struct {
	*mock.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 (*TrunkIClient_LinkTicketToTestCase_Call) Run

func (*TrunkIClient_LinkTicketToTestCase_Call) RunAndReturn

Jump to

Keyboard shortcuts

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