fabric: github.com/hyperledger/fabric/core/comm/mock Index | Files

package mock

import "github.com/hyperledger/fabric/core/comm/mock"

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

new_semaphore.go semaphore.go server_stream.go stream_handler.go unary_handler.go

type NewSemaphore Uses

type NewSemaphore struct {
    Stub func(int) comm.Semaphore
    // contains filtered or unexported fields
}

func (*NewSemaphore) ArgsForCall Uses

func (fake *NewSemaphore) ArgsForCall(i int) int

func (*NewSemaphore) CallCount Uses

func (fake *NewSemaphore) CallCount() int

func (*NewSemaphore) Calls Uses

func (fake *NewSemaphore) Calls(stub func(int) comm.Semaphore)

func (*NewSemaphore) Invocations Uses

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

func (*NewSemaphore) Returns Uses

func (fake *NewSemaphore) Returns(result1 comm.Semaphore)

func (*NewSemaphore) ReturnsOnCall Uses

func (fake *NewSemaphore) ReturnsOnCall(i int, result1 comm.Semaphore)

func (*NewSemaphore) Spy Uses

func (fake *NewSemaphore) Spy(arg1 int) comm.Semaphore

type Semaphore Uses

type Semaphore struct {
    AcquireStub func(context.Context) error

    ReleaseStub func()
    // contains filtered or unexported fields
}

func (*Semaphore) Acquire Uses

func (fake *Semaphore) Acquire(arg1 context.Context) error

func (*Semaphore) AcquireArgsForCall Uses

func (fake *Semaphore) AcquireArgsForCall(i int) context.Context

func (*Semaphore) AcquireCallCount Uses

func (fake *Semaphore) AcquireCallCount() int

func (*Semaphore) AcquireCalls Uses

func (fake *Semaphore) AcquireCalls(stub func(context.Context) error)

func (*Semaphore) AcquireReturns Uses

func (fake *Semaphore) AcquireReturns(result1 error)

func (*Semaphore) AcquireReturnsOnCall Uses

func (fake *Semaphore) AcquireReturnsOnCall(i int, result1 error)

func (*Semaphore) Invocations Uses

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

func (*Semaphore) Release Uses

func (fake *Semaphore) Release()

func (*Semaphore) ReleaseCallCount Uses

func (fake *Semaphore) ReleaseCallCount() int

func (*Semaphore) ReleaseCalls Uses

func (fake *Semaphore) ReleaseCalls(stub func())

type ServerStream Uses

type ServerStream struct {
    ContextStub func() context.Context

    RecvMsgStub func(interface{}) error

    SendHeaderStub func(metadata.MD) error

    SendMsgStub func(interface{}) error

    SetHeaderStub func(metadata.MD) error

    SetTrailerStub func(metadata.MD)
    // contains filtered or unexported fields
}

func (*ServerStream) Context Uses

func (fake *ServerStream) Context() context.Context

func (*ServerStream) ContextCallCount Uses

func (fake *ServerStream) ContextCallCount() int

func (*ServerStream) ContextCalls Uses

func (fake *ServerStream) ContextCalls(stub func() context.Context)

func (*ServerStream) ContextReturns Uses

func (fake *ServerStream) ContextReturns(result1 context.Context)

func (*ServerStream) ContextReturnsOnCall Uses

func (fake *ServerStream) ContextReturnsOnCall(i int, result1 context.Context)

func (*ServerStream) Invocations Uses

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

func (*ServerStream) RecvMsg Uses

func (fake *ServerStream) RecvMsg(arg1 interface{}) error

func (*ServerStream) RecvMsgArgsForCall Uses

func (fake *ServerStream) RecvMsgArgsForCall(i int) interface{}

func (*ServerStream) RecvMsgCallCount Uses

func (fake *ServerStream) RecvMsgCallCount() int

func (*ServerStream) RecvMsgCalls Uses

func (fake *ServerStream) RecvMsgCalls(stub func(interface{}) error)

func (*ServerStream) RecvMsgReturns Uses

func (fake *ServerStream) RecvMsgReturns(result1 error)

func (*ServerStream) RecvMsgReturnsOnCall Uses

func (fake *ServerStream) RecvMsgReturnsOnCall(i int, result1 error)

func (*ServerStream) SendHeader Uses

func (fake *ServerStream) SendHeader(arg1 metadata.MD) error

func (*ServerStream) SendHeaderArgsForCall Uses

func (fake *ServerStream) SendHeaderArgsForCall(i int) metadata.MD

func (*ServerStream) SendHeaderCallCount Uses

func (fake *ServerStream) SendHeaderCallCount() int

func (*ServerStream) SendHeaderCalls Uses

func (fake *ServerStream) SendHeaderCalls(stub func(metadata.MD) error)

func (*ServerStream) SendHeaderReturns Uses

func (fake *ServerStream) SendHeaderReturns(result1 error)

func (*ServerStream) SendHeaderReturnsOnCall Uses

func (fake *ServerStream) SendHeaderReturnsOnCall(i int, result1 error)

func (*ServerStream) SendMsg Uses

func (fake *ServerStream) SendMsg(arg1 interface{}) error

func (*ServerStream) SendMsgArgsForCall Uses

func (fake *ServerStream) SendMsgArgsForCall(i int) interface{}

func (*ServerStream) SendMsgCallCount Uses

func (fake *ServerStream) SendMsgCallCount() int

func (*ServerStream) SendMsgCalls Uses

func (fake *ServerStream) SendMsgCalls(stub func(interface{}) error)

func (*ServerStream) SendMsgReturns Uses

func (fake *ServerStream) SendMsgReturns(result1 error)

func (*ServerStream) SendMsgReturnsOnCall Uses

func (fake *ServerStream) SendMsgReturnsOnCall(i int, result1 error)

func (*ServerStream) SetHeader Uses

func (fake *ServerStream) SetHeader(arg1 metadata.MD) error

func (*ServerStream) SetHeaderArgsForCall Uses

func (fake *ServerStream) SetHeaderArgsForCall(i int) metadata.MD

func (*ServerStream) SetHeaderCallCount Uses

func (fake *ServerStream) SetHeaderCallCount() int

func (*ServerStream) SetHeaderCalls Uses

func (fake *ServerStream) SetHeaderCalls(stub func(metadata.MD) error)

func (*ServerStream) SetHeaderReturns Uses

func (fake *ServerStream) SetHeaderReturns(result1 error)

func (*ServerStream) SetHeaderReturnsOnCall Uses

func (fake *ServerStream) SetHeaderReturnsOnCall(i int, result1 error)

func (*ServerStream) SetTrailer Uses

func (fake *ServerStream) SetTrailer(arg1 metadata.MD)

func (*ServerStream) SetTrailerArgsForCall Uses

func (fake *ServerStream) SetTrailerArgsForCall(i int) metadata.MD

func (*ServerStream) SetTrailerCallCount Uses

func (fake *ServerStream) SetTrailerCallCount() int

func (*ServerStream) SetTrailerCalls Uses

func (fake *ServerStream) SetTrailerCalls(stub func(metadata.MD))

type StreamHandler Uses

type StreamHandler struct {
    Stub func(interface{}, grpc.ServerStream) error
    // contains filtered or unexported fields
}

func (*StreamHandler) ArgsForCall Uses

func (fake *StreamHandler) ArgsForCall(i int) (interface{}, grpc.ServerStream)

func (*StreamHandler) CallCount Uses

func (fake *StreamHandler) CallCount() int

func (*StreamHandler) Calls Uses

func (fake *StreamHandler) Calls(stub func(interface{}, grpc.ServerStream) error)

func (*StreamHandler) Invocations Uses

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

func (*StreamHandler) Returns Uses

func (fake *StreamHandler) Returns(result1 error)

func (*StreamHandler) ReturnsOnCall Uses

func (fake *StreamHandler) ReturnsOnCall(i int, result1 error)

func (*StreamHandler) Spy Uses

func (fake *StreamHandler) Spy(arg1 interface{}, arg2 grpc.ServerStream) error

type UnaryHandler Uses

type UnaryHandler struct {
    Stub func(context.Context, interface{}) (interface{}, error)
    // contains filtered or unexported fields
}

func (*UnaryHandler) ArgsForCall Uses

func (fake *UnaryHandler) ArgsForCall(i int) (context.Context, interface{})

func (*UnaryHandler) CallCount Uses

func (fake *UnaryHandler) CallCount() int

func (*UnaryHandler) Calls Uses

func (fake *UnaryHandler) Calls(stub func(context.Context, interface{}) (interface{}, error))

func (*UnaryHandler) Invocations Uses

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

func (*UnaryHandler) Returns Uses

func (fake *UnaryHandler) Returns(result1 interface{}, result2 error)

func (*UnaryHandler) ReturnsOnCall Uses

func (fake *UnaryHandler) ReturnsOnCall(i int, result1 interface{}, result2 error)

func (*UnaryHandler) Spy Uses

func (fake *UnaryHandler) Spy(arg1 context.Context, arg2 interface{}) (interface{}, error)

Package mock imports 5 packages (graph). Updated 2019-01-10. Refresh now. Tools for package owners.