mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClientIdentity

type MockClientIdentity struct {
	mock.Mock
}

MockClientIdentity is an autogenerated mock type for the ClientIdentity type

func NewMockClientIdentity

func NewMockClientIdentity(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClientIdentity

NewMockClientIdentity creates a new instance of MockClientIdentity. 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 (*MockClientIdentity) AssertAttributeValue

func (_mock *MockClientIdentity) AssertAttributeValue(attrName string, attrValue string) error

AssertAttributeValue provides a mock function for the type MockClientIdentity

func (*MockClientIdentity) EXPECT

func (*MockClientIdentity) GetAttributeValue

func (_mock *MockClientIdentity) GetAttributeValue(attrName string) (string, bool, error)

GetAttributeValue provides a mock function for the type MockClientIdentity

func (*MockClientIdentity) GetID

func (_mock *MockClientIdentity) GetID() (string, error)

GetID provides a mock function for the type MockClientIdentity

func (*MockClientIdentity) GetMSPID

func (_mock *MockClientIdentity) GetMSPID() (string, error)

GetMSPID provides a mock function for the type MockClientIdentity

func (*MockClientIdentity) GetX509Certificate

func (_mock *MockClientIdentity) GetX509Certificate() (*x509.Certificate, error)

GetX509Certificate provides a mock function for the type MockClientIdentity

type MockClientIdentity_AssertAttributeValue_Call

type MockClientIdentity_AssertAttributeValue_Call struct {
	*mock.Call
}

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

func (*MockClientIdentity_AssertAttributeValue_Call) Return

func (*MockClientIdentity_AssertAttributeValue_Call) Run

func (*MockClientIdentity_AssertAttributeValue_Call) RunAndReturn

type MockClientIdentity_Expecter

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

func (*MockClientIdentity_Expecter) AssertAttributeValue

func (_e *MockClientIdentity_Expecter) AssertAttributeValue(attrName interface{}, attrValue interface{}) *MockClientIdentity_AssertAttributeValue_Call

AssertAttributeValue is a helper method to define mock.On call

  • attrName string
  • attrValue string

func (*MockClientIdentity_Expecter) GetAttributeValue

func (_e *MockClientIdentity_Expecter) GetAttributeValue(attrName interface{}) *MockClientIdentity_GetAttributeValue_Call

GetAttributeValue is a helper method to define mock.On call

  • attrName string

func (*MockClientIdentity_Expecter) GetID

GetID is a helper method to define mock.On call

func (*MockClientIdentity_Expecter) GetMSPID

GetMSPID is a helper method to define mock.On call

func (*MockClientIdentity_Expecter) GetX509Certificate

GetX509Certificate is a helper method to define mock.On call

type MockClientIdentity_GetAttributeValue_Call

type MockClientIdentity_GetAttributeValue_Call struct {
	*mock.Call
}

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

func (*MockClientIdentity_GetAttributeValue_Call) Return

func (*MockClientIdentity_GetAttributeValue_Call) Run

func (*MockClientIdentity_GetAttributeValue_Call) RunAndReturn

type MockClientIdentity_GetID_Call

type MockClientIdentity_GetID_Call struct {
	*mock.Call
}

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

func (*MockClientIdentity_GetID_Call) Return

func (*MockClientIdentity_GetID_Call) Run

func (*MockClientIdentity_GetID_Call) RunAndReturn

type MockClientIdentity_GetMSPID_Call

type MockClientIdentity_GetMSPID_Call struct {
	*mock.Call
}

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

func (*MockClientIdentity_GetMSPID_Call) Return

func (*MockClientIdentity_GetMSPID_Call) Run

func (*MockClientIdentity_GetMSPID_Call) RunAndReturn

type MockClientIdentity_GetX509Certificate_Call

type MockClientIdentity_GetX509Certificate_Call struct {
	*mock.Call
}

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

func (*MockClientIdentity_GetX509Certificate_Call) Return

func (*MockClientIdentity_GetX509Certificate_Call) Run

func (*MockClientIdentity_GetX509Certificate_Call) RunAndReturn

type MockRule

type MockRule struct {
	mock.Mock
}

MockRule is an autogenerated mock type for the Rule type

func NewMockRule

func NewMockRule(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRule

NewMockRule creates a new instance of MockRule. 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 (*MockRule) Check

Check provides a mock function for the type MockRule

func (*MockRule) EXPECT

func (_m *MockRule) EXPECT() *MockRule_Expecter

type MockRule_Check_Call

type MockRule_Check_Call struct {
	*mock.Call
}

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

func (*MockRule_Check_Call) Return

func (*MockRule_Check_Call) Run

func (*MockRule_Check_Call) RunAndReturn

type MockRule_Expecter

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

func (*MockRule_Expecter) Check

func (_e *MockRule_Expecter) Check(ctx interface{}) *MockRule_Check_Call

Check is a helper method to define mock.On call

  • ctx contractapi.TransactionContextInterface

type MockTransactionContextInterface

type MockTransactionContextInterface struct {
	mock.Mock
}

MockTransactionContextInterface is an autogenerated mock type for the TransactionContextInterface type

func NewMockTransactionContextInterface

func NewMockTransactionContextInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTransactionContextInterface

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

func (*MockTransactionContextInterface) GetClientIdentity

func (_mock *MockTransactionContextInterface) GetClientIdentity() cid.ClientIdentity

GetClientIdentity provides a mock function for the type MockTransactionContextInterface

func (*MockTransactionContextInterface) GetStub

GetStub provides a mock function for the type MockTransactionContextInterface

type MockTransactionContextInterface_Expecter

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

func (*MockTransactionContextInterface_Expecter) GetClientIdentity

GetClientIdentity is a helper method to define mock.On call

func (*MockTransactionContextInterface_Expecter) GetStub

GetStub is a helper method to define mock.On call

type MockTransactionContextInterface_GetClientIdentity_Call

type MockTransactionContextInterface_GetClientIdentity_Call struct {
	*mock.Call
}

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

func (*MockTransactionContextInterface_GetClientIdentity_Call) Return

func (*MockTransactionContextInterface_GetClientIdentity_Call) Run

func (*MockTransactionContextInterface_GetClientIdentity_Call) RunAndReturn

type MockTransactionContextInterface_GetStub_Call

type MockTransactionContextInterface_GetStub_Call struct {
	*mock.Call
}

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

func (*MockTransactionContextInterface_GetStub_Call) Return

func (*MockTransactionContextInterface_GetStub_Call) Run

func (*MockTransactionContextInterface_GetStub_Call) RunAndReturn

Jump to

Keyboard shortcuts

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