mocks

package
v0.97.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 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 FGAStoreHelper

type FGAStoreHelper struct {
	mock.Mock
}

FGAStoreHelper is an autogenerated mock type for the FGAStoreHelper type

func NewFGAStoreHelper

func NewFGAStoreHelper(t interface {
	mock.TestingT
	Cleanup(func())
}) *FGAStoreHelper

NewFGAStoreHelper creates a new instance of FGAStoreHelper. 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 (*FGAStoreHelper) EXPECT

func (*FGAStoreHelper) GetModelIDForTenant

func (_m *FGAStoreHelper) GetModelIDForTenant(ctx context.Context, conn openfgav1.OpenFGAServiceClient, tenantID string) (string, error)

GetModelIDForTenant provides a mock function with given fields: ctx, conn, tenantID

func (*FGAStoreHelper) GetStoreIDForTenant

func (_m *FGAStoreHelper) GetStoreIDForTenant(ctx context.Context, conn openfgav1.OpenFGAServiceClient, tenantID string) (string, error)

GetStoreIDForTenant provides a mock function with given fields: ctx, conn, tenantID

func (*FGAStoreHelper) IsDuplicateWriteError

func (_m *FGAStoreHelper) IsDuplicateWriteError(err error) bool

IsDuplicateWriteError provides a mock function with given fields: err

type FGAStoreHelper_Expecter

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

func (*FGAStoreHelper_Expecter) GetModelIDForTenant

func (_e *FGAStoreHelper_Expecter) GetModelIDForTenant(ctx interface{}, conn interface{}, tenantID interface{}) *FGAStoreHelper_GetModelIDForTenant_Call

GetModelIDForTenant is a helper method to define mock.On call

  • ctx context.Context
  • conn openfgav1.OpenFGAServiceClient
  • tenantID string

func (*FGAStoreHelper_Expecter) GetStoreIDForTenant

func (_e *FGAStoreHelper_Expecter) GetStoreIDForTenant(ctx interface{}, conn interface{}, tenantID interface{}) *FGAStoreHelper_GetStoreIDForTenant_Call

GetStoreIDForTenant is a helper method to define mock.On call

  • ctx context.Context
  • conn openfgav1.OpenFGAServiceClient
  • tenantID string

func (*FGAStoreHelper_Expecter) IsDuplicateWriteError

func (_e *FGAStoreHelper_Expecter) IsDuplicateWriteError(err interface{}) *FGAStoreHelper_IsDuplicateWriteError_Call

IsDuplicateWriteError is a helper method to define mock.On call

  • err error

type FGAStoreHelper_GetModelIDForTenant_Call

type FGAStoreHelper_GetModelIDForTenant_Call struct {
	*mock.Call
}

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

func (*FGAStoreHelper_GetModelIDForTenant_Call) Return

func (*FGAStoreHelper_GetModelIDForTenant_Call) Run

type FGAStoreHelper_GetStoreIDForTenant_Call

type FGAStoreHelper_GetStoreIDForTenant_Call struct {
	*mock.Call
}

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

func (*FGAStoreHelper_GetStoreIDForTenant_Call) Return

func (*FGAStoreHelper_GetStoreIDForTenant_Call) Run

type FGAStoreHelper_IsDuplicateWriteError_Call

type FGAStoreHelper_IsDuplicateWriteError_Call struct {
	*mock.Call
}

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

func (*FGAStoreHelper_IsDuplicateWriteError_Call) Return

func (*FGAStoreHelper_IsDuplicateWriteError_Call) Run

func (*FGAStoreHelper_IsDuplicateWriteError_Call) RunAndReturn

Jump to

Keyboard shortcuts

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