mocks

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultACLProvider

type DefaultACLProvider struct {
	CheckACLStub func(string, string, interface{}) error

	IsPtypePolicyStub func(string) bool
	// contains filtered or unexported fields
}

func (*DefaultACLProvider) CheckACL

func (fake *DefaultACLProvider) CheckACL(arg1 string, arg2 string, arg3 interface{}) error

func (*DefaultACLProvider) CheckACLArgsForCall

func (fake *DefaultACLProvider) CheckACLArgsForCall(i int) (string, string, interface{})

func (*DefaultACLProvider) CheckACLCallCount

func (fake *DefaultACLProvider) CheckACLCallCount() int

func (*DefaultACLProvider) CheckACLCalls

func (fake *DefaultACLProvider) CheckACLCalls(stub func(string, string, interface{}) error)

func (*DefaultACLProvider) CheckACLReturns

func (fake *DefaultACLProvider) CheckACLReturns(result1 error)

func (*DefaultACLProvider) CheckACLReturnsOnCall

func (fake *DefaultACLProvider) CheckACLReturnsOnCall(i int, result1 error)

func (*DefaultACLProvider) Invocations

func (fake *DefaultACLProvider) Invocations() map[string][][]interface{}

func (*DefaultACLProvider) IsPtypePolicy

func (fake *DefaultACLProvider) IsPtypePolicy(arg1 string) bool

func (*DefaultACLProvider) IsPtypePolicyArgsForCall

func (fake *DefaultACLProvider) IsPtypePolicyArgsForCall(i int) string

func (*DefaultACLProvider) IsPtypePolicyCallCount

func (fake *DefaultACLProvider) IsPtypePolicyCallCount() int

func (*DefaultACLProvider) IsPtypePolicyCalls

func (fake *DefaultACLProvider) IsPtypePolicyCalls(stub func(string) bool)

func (*DefaultACLProvider) IsPtypePolicyReturns

func (fake *DefaultACLProvider) IsPtypePolicyReturns(result1 bool)

func (*DefaultACLProvider) IsPtypePolicyReturnsOnCall

func (fake *DefaultACLProvider) IsPtypePolicyReturnsOnCall(i int, result1 bool)

type MockACLProvider

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

func (*MockACLProvider) AssertExpectations

func (m *MockACLProvider) AssertExpectations(t *testing.T)

AssertExpectations overrider the mock method for convenience

func (*MockACLProvider) CheckACL

func (m *MockACLProvider) CheckACL(resName string, channelID string, idinfo interface{}) error

func (*MockACLProvider) GenerateSimulationResults

func (m *MockACLProvider) GenerateSimulationResults(txEnvelop *common.Envelope, simulator ledger.TxSimulator, initializingLedger bool) error

func (*MockACLProvider) On

func (m *MockACLProvider) On(methodName string, arguments ...interface{}) *mock.Call

On overrider the mock method for convenience

func (*MockACLProvider) Reset

func (m *MockACLProvider) Reset()

clear the mock so we can start afresh

type SignerSerializer

type SignerSerializer struct {
	SerializeStub func() ([]byte, error)

	SignStub func([]byte) ([]byte, error)
	// contains filtered or unexported fields
}

func (*SignerSerializer) Invocations

func (fake *SignerSerializer) Invocations() map[string][][]interface{}

func (*SignerSerializer) Serialize

func (fake *SignerSerializer) Serialize() ([]byte, error)

func (*SignerSerializer) SerializeCallCount

func (fake *SignerSerializer) SerializeCallCount() int

func (*SignerSerializer) SerializeCalls

func (fake *SignerSerializer) SerializeCalls(stub func() ([]byte, error))

func (*SignerSerializer) SerializeReturns

func (fake *SignerSerializer) SerializeReturns(result1 []byte, result2 error)

func (*SignerSerializer) SerializeReturnsOnCall

func (fake *SignerSerializer) SerializeReturnsOnCall(i int, result1 []byte, result2 error)

func (*SignerSerializer) Sign

func (fake *SignerSerializer) Sign(arg1 []byte) ([]byte, error)

func (*SignerSerializer) SignArgsForCall

func (fake *SignerSerializer) SignArgsForCall(i int) []byte

func (*SignerSerializer) SignCallCount

func (fake *SignerSerializer) SignCallCount() int

func (*SignerSerializer) SignCalls

func (fake *SignerSerializer) SignCalls(stub func([]byte) ([]byte, error))

func (*SignerSerializer) SignReturns

func (fake *SignerSerializer) SignReturns(result1 []byte, result2 error)

func (*SignerSerializer) SignReturnsOnCall

func (fake *SignerSerializer) SignReturnsOnCall(i int, result1 []byte, result2 error)

Jump to

Keyboard shortcuts

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