fabric: github.com/hyperledger/fabric/core/aclmgmt/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/core/aclmgmt/mocks"

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

defaultaclprovider.go mocks.go signer_serializer.go

type DefaultACLProvider Uses

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

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

func (*DefaultACLProvider) CheckACL Uses

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

func (*DefaultACLProvider) CheckACLArgsForCall Uses

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

func (*DefaultACLProvider) CheckACLCallCount Uses

func (fake *DefaultACLProvider) CheckACLCallCount() int

func (*DefaultACLProvider) CheckACLCalls Uses

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

func (*DefaultACLProvider) CheckACLReturns Uses

func (fake *DefaultACLProvider) CheckACLReturns(result1 error)

func (*DefaultACLProvider) CheckACLReturnsOnCall Uses

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

func (*DefaultACLProvider) Invocations Uses

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

func (*DefaultACLProvider) IsPtypePolicy Uses

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

func (*DefaultACLProvider) IsPtypePolicyArgsForCall Uses

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

func (*DefaultACLProvider) IsPtypePolicyCallCount Uses

func (fake *DefaultACLProvider) IsPtypePolicyCallCount() int

func (*DefaultACLProvider) IsPtypePolicyCalls Uses

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

func (*DefaultACLProvider) IsPtypePolicyReturns Uses

func (fake *DefaultACLProvider) IsPtypePolicyReturns(result1 bool)

func (*DefaultACLProvider) IsPtypePolicyReturnsOnCall Uses

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

type MockACLProvider Uses

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

func (*MockACLProvider) AssertExpectations Uses

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

AssertExpectations overrider the mock method for convenience

func (*MockACLProvider) CheckACL Uses

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

func (*MockACLProvider) GenerateSimulationResults Uses

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

func (*MockACLProvider) On Uses

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

On overrider the mock method for convenience

func (*MockACLProvider) Reset Uses

func (m *MockACLProvider) Reset()

clear the mock so we can start afresh

type SignerSerializer Uses

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

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

func (*SignerSerializer) Invocations Uses

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

func (*SignerSerializer) Serialize Uses

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

func (*SignerSerializer) SerializeCallCount Uses

func (fake *SignerSerializer) SerializeCallCount() int

func (*SignerSerializer) SerializeCalls Uses

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

func (*SignerSerializer) SerializeReturns Uses

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

func (*SignerSerializer) SerializeReturnsOnCall Uses

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

func (*SignerSerializer) Sign Uses

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

func (*SignerSerializer) SignArgsForCall Uses

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

func (*SignerSerializer) SignCallCount Uses

func (fake *SignerSerializer) SignCallCount() int

func (*SignerSerializer) SignCalls Uses

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

func (*SignerSerializer) SignReturns Uses

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

func (*SignerSerializer) SignReturnsOnCall Uses

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

Package mocks imports 5 packages (graph). Updated 2020-01-19. Refresh now. Tools for package owners.