mock

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConnectionManagerInterface added in v1.2.6

type MockConnectionManagerInterface struct {
	CreateFunc func(c *github_com_confluentinc_cc_structs_kafka_auth_v1.Connection) error

	ReadFunc func(id string, opts ...github_com_confluentinc_auth0_management.ReqOption) (*github_com_confluentinc_cc_structs_kafka_auth_v1.Connection, error)

	ListFunc func(opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_cc_structs_kafka_auth_v1.Connection, error)

	UpdateFunc func(id string, c *github_com_confluentinc_cc_structs_kafka_auth_v1.Connection) error

	DeleteFunc func(id string) error

	GetConnectionIDFunc func(connectionName string) (string, error)
	// contains filtered or unexported fields
}

MockConnectionManagerInterface is a mock of ConnectionManagerInterface interface

func (*MockConnectionManagerInterface) Create added in v1.2.6

Create mocks base method by wrapping the associated func.

func (*MockConnectionManagerInterface) CreateCalled added in v1.2.6

func (m *MockConnectionManagerInterface) CreateCalled() bool

CreateCalled returns true if Create was called at least once.

func (*MockConnectionManagerInterface) CreateCalls added in v1.2.6

CreateCalls returns the calls made to Create.

func (*MockConnectionManagerInterface) Delete added in v1.2.6

Delete mocks base method by wrapping the associated func.

func (*MockConnectionManagerInterface) DeleteCalled added in v1.2.6

func (m *MockConnectionManagerInterface) DeleteCalled() bool

DeleteCalled returns true if Delete was called at least once.

func (*MockConnectionManagerInterface) DeleteCalls added in v1.2.6

func (m *MockConnectionManagerInterface) DeleteCalls() []struct {
	Id string
}

DeleteCalls returns the calls made to Delete.

func (*MockConnectionManagerInterface) GetConnectionID added in v1.2.6

func (m *MockConnectionManagerInterface) GetConnectionID(connectionName string) (string, error)

GetConnectionID mocks base method by wrapping the associated func.

func (*MockConnectionManagerInterface) GetConnectionIDCalled added in v1.2.6

func (m *MockConnectionManagerInterface) GetConnectionIDCalled() bool

GetConnectionIDCalled returns true if GetConnectionID was called at least once.

func (*MockConnectionManagerInterface) GetConnectionIDCalls added in v1.2.6

func (m *MockConnectionManagerInterface) GetConnectionIDCalls() []struct {
	ConnectionName string
}

GetConnectionIDCalls returns the calls made to GetConnectionID.

func (*MockConnectionManagerInterface) List added in v1.2.6

List mocks base method by wrapping the associated func.

func (*MockConnectionManagerInterface) ListCalled added in v1.2.6

func (m *MockConnectionManagerInterface) ListCalled() bool

ListCalled returns true if List was called at least once.

func (*MockConnectionManagerInterface) ListCalls added in v1.2.6

ListCalls returns the calls made to List.

func (*MockConnectionManagerInterface) Read added in v1.2.6

Read mocks base method by wrapping the associated func.

func (*MockConnectionManagerInterface) ReadCalled added in v1.2.6

func (m *MockConnectionManagerInterface) ReadCalled() bool

ReadCalled returns true if Read was called at least once.

func (*MockConnectionManagerInterface) ReadCalls added in v1.2.6

ReadCalls returns the calls made to Read.

func (*MockConnectionManagerInterface) Reset added in v1.2.6

func (m *MockConnectionManagerInterface) Reset()

Reset resets the calls made to the mocked methods.

func (*MockConnectionManagerInterface) Update added in v1.2.6

Update mocks base method by wrapping the associated func.

func (*MockConnectionManagerInterface) UpdateCalled added in v1.2.6

func (m *MockConnectionManagerInterface) UpdateCalled() bool

UpdateCalled returns true if Update was called at least once.

func (*MockConnectionManagerInterface) UpdateCalls added in v1.2.6

UpdateCalls returns the calls made to Update.

type MockUserManagerInterface

MockUserManagerInterface is a mock of UserManagerInterface interface

func (*MockUserManagerInterface) AssignRoles

AssignRoles mocks base method by wrapping the associated func.

func (*MockUserManagerInterface) AssignRolesCalled

func (m *MockUserManagerInterface) AssignRolesCalled() bool

AssignRolesCalled returns true if AssignRoles was called at least once.

func (*MockUserManagerInterface) AssignRolesCalls

func (m *MockUserManagerInterface) AssignRolesCalls() []struct {
	Id    string
	Roles []*github_com_confluentinc_auth0_management.Role
}

AssignRolesCalls returns the calls made to AssignRoles.

func (*MockUserManagerInterface) Create

Create mocks base method by wrapping the associated func.

func (*MockUserManagerInterface) CreateCalled

func (m *MockUserManagerInterface) CreateCalled() bool

CreateCalled returns true if Create was called at least once.

func (*MockUserManagerInterface) CreateCalls

CreateCalls returns the calls made to Create.

func (*MockUserManagerInterface) Delete

func (m *MockUserManagerInterface) Delete(id string) error

Delete mocks base method by wrapping the associated func.

func (*MockUserManagerInterface) DeleteCalled

func (m *MockUserManagerInterface) DeleteCalled() bool

DeleteCalled returns true if Delete was called at least once.

func (*MockUserManagerInterface) DeleteCalls

func (m *MockUserManagerInterface) DeleteCalls() []struct {
	Id string
}

DeleteCalls returns the calls made to Delete.

func (*MockUserManagerInterface) GetRoles

GetRoles mocks base method by wrapping the associated func.

func (*MockUserManagerInterface) GetRolesCalled

func (m *MockUserManagerInterface) GetRolesCalled() bool

GetRolesCalled returns true if GetRoles was called at least once.

func (*MockUserManagerInterface) GetRolesCalls

func (m *MockUserManagerInterface) GetRolesCalls() []struct {
	Id   string
	Opts []github_com_confluentinc_auth0_management.ReqOption
}

GetRolesCalls returns the calls made to GetRoles.

func (*MockUserManagerInterface) List

List mocks base method by wrapping the associated func.

func (*MockUserManagerInterface) ListByEmail

ListByEmail mocks base method by wrapping the associated func.

func (*MockUserManagerInterface) ListByEmailCalled

func (m *MockUserManagerInterface) ListByEmailCalled() bool

ListByEmailCalled returns true if ListByEmail was called at least once.

func (*MockUserManagerInterface) ListByEmailCalls

func (m *MockUserManagerInterface) ListByEmailCalls() []struct {
	Email string
	Opts  []github_com_confluentinc_auth0_management.ReqOption
}

ListByEmailCalls returns the calls made to ListByEmail.

func (*MockUserManagerInterface) ListCalled

func (m *MockUserManagerInterface) ListCalled() bool

ListCalled returns true if List was called at least once.

func (*MockUserManagerInterface) ListCalls

ListCalls returns the calls made to List.

func (*MockUserManagerInterface) Read

Read mocks base method by wrapping the associated func.

func (*MockUserManagerInterface) ReadCalled

func (m *MockUserManagerInterface) ReadCalled() bool

ReadCalled returns true if Read was called at least once.

func (*MockUserManagerInterface) ReadCalls

ReadCalls returns the calls made to Read.

func (*MockUserManagerInterface) Reset

func (m *MockUserManagerInterface) Reset()

Reset resets the calls made to the mocked methods.

func (*MockUserManagerInterface) Search

Search mocks base method by wrapping the associated func.

func (*MockUserManagerInterface) SearchCalled

func (m *MockUserManagerInterface) SearchCalled() bool

SearchCalled returns true if Search was called at least once.

func (*MockUserManagerInterface) SearchCalls

SearchCalls returns the calls made to Search.

func (*MockUserManagerInterface) UnassignRoles

UnassignRoles mocks base method by wrapping the associated func.

func (*MockUserManagerInterface) UnassignRolesCalled

func (m *MockUserManagerInterface) UnassignRolesCalled() bool

UnassignRolesCalled returns true if UnassignRoles was called at least once.

func (*MockUserManagerInterface) UnassignRolesCalls

func (m *MockUserManagerInterface) UnassignRolesCalls() []struct {
	Id    string
	Roles []*github_com_confluentinc_auth0_management.Role
}

UnassignRolesCalls returns the calls made to UnassignRoles.

func (*MockUserManagerInterface) Update

Update mocks base method by wrapping the associated func.

func (*MockUserManagerInterface) UpdateCalled

func (m *MockUserManagerInterface) UpdateCalled() bool

UpdateCalled returns true if Update was called at least once.

func (*MockUserManagerInterface) UpdateCalls

UpdateCalls returns the calls made to Update.

Jump to

Keyboard shortcuts

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