mocks

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient

func NewMockClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClient

NewMockClient creates a new instance of MockClient. 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 (*MockClient) CurrentUser added in v0.0.12

func (_mock *MockClient) CurrentUser(ctx context.Context) (dashboard.CurrentUser, error)

CurrentUser provides a mock function for the type MockClient

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

func (*MockClient) HasRepo added in v0.0.12

func (_mock *MockClient) HasRepo(ctx context.Context, orgID string, repoName string) (bool, error)

HasRepo provides a mock function for the type MockClient

func (*MockClient) RunParameters

func (_mock *MockClient) RunParameters(ctx context.Context, repoURL string, branchName string) (dashboard.RunParameters, error)

RunParameters provides a mock function for the type MockClient

type MockClient_CurrentUser_Call added in v0.0.12

type MockClient_CurrentUser_Call struct {
	*mock.Call
}

MockClient_CurrentUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CurrentUser'

func (*MockClient_CurrentUser_Call) Return added in v0.0.12

func (*MockClient_CurrentUser_Call) Run added in v0.0.12

func (*MockClient_CurrentUser_Call) RunAndReturn added in v0.0.12

type MockClient_Expecter

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

func (*MockClient_Expecter) CurrentUser added in v0.0.12

func (_e *MockClient_Expecter) CurrentUser(ctx interface{}) *MockClient_CurrentUser_Call

CurrentUser is a helper method to define mock.On call

  • ctx context.Context

func (*MockClient_Expecter) HasRepo added in v0.0.12

func (_e *MockClient_Expecter) HasRepo(ctx interface{}, orgID interface{}, repoName interface{}) *MockClient_HasRepo_Call

HasRepo is a helper method to define mock.On call

  • ctx context.Context
  • orgID string
  • repoName string

func (*MockClient_Expecter) RunParameters

func (_e *MockClient_Expecter) RunParameters(ctx interface{}, repoURL interface{}, branchName interface{}) *MockClient_RunParameters_Call

RunParameters is a helper method to define mock.On call

  • ctx context.Context
  • repoURL string
  • branchName string

type MockClient_HasRepo_Call added in v0.0.12

type MockClient_HasRepo_Call struct {
	*mock.Call
}

MockClient_HasRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasRepo'

func (*MockClient_HasRepo_Call) Return added in v0.0.12

func (*MockClient_HasRepo_Call) Run added in v0.0.12

func (_c *MockClient_HasRepo_Call) Run(run func(ctx context.Context, orgID string, repoName string)) *MockClient_HasRepo_Call

func (*MockClient_HasRepo_Call) RunAndReturn added in v0.0.12

func (_c *MockClient_HasRepo_Call) RunAndReturn(run func(ctx context.Context, orgID string, repoName string) (bool, error)) *MockClient_HasRepo_Call

type MockClient_RunParameters_Call

type MockClient_RunParameters_Call struct {
	*mock.Call
}

MockClient_RunParameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunParameters'

func (*MockClient_RunParameters_Call) Return

func (*MockClient_RunParameters_Call) Run

func (_c *MockClient_RunParameters_Call) Run(run func(ctx context.Context, repoURL string, branchName string)) *MockClient_RunParameters_Call

func (*MockClient_RunParameters_Call) RunAndReturn

func (_c *MockClient_RunParameters_Call) RunAndReturn(run func(ctx context.Context, repoURL string, branchName string) (dashboard.RunParameters, error)) *MockClient_RunParameters_Call

Jump to

Keyboard shortcuts

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