fabric: github.com/hyperledger/fabric/common/flogging/mock Index | Files

package mock

import "github.com/hyperledger/fabric/common/flogging/mock"

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

observer.go write_syncer.go

type Observer Uses

type Observer struct {
    CheckStub func(zapcore.Entry, *zapcore.CheckedEntry)

    WriteEntryStub func(zapcore.Entry, []zapcore.Field)
    // contains filtered or unexported fields
}

func (*Observer) Check Uses

func (fake *Observer) Check(arg1 zapcore.Entry, arg2 *zapcore.CheckedEntry)

func (*Observer) CheckArgsForCall Uses

func (fake *Observer) CheckArgsForCall(i int) (zapcore.Entry, *zapcore.CheckedEntry)

func (*Observer) CheckCallCount Uses

func (fake *Observer) CheckCallCount() int

func (*Observer) CheckCalls Uses

func (fake *Observer) CheckCalls(stub func(zapcore.Entry, *zapcore.CheckedEntry))

func (*Observer) Invocations Uses

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

func (*Observer) WriteEntry Uses

func (fake *Observer) WriteEntry(arg1 zapcore.Entry, arg2 []zapcore.Field)

func (*Observer) WriteEntryArgsForCall Uses

func (fake *Observer) WriteEntryArgsForCall(i int) (zapcore.Entry, []zapcore.Field)

func (*Observer) WriteEntryCallCount Uses

func (fake *Observer) WriteEntryCallCount() int

func (*Observer) WriteEntryCalls Uses

func (fake *Observer) WriteEntryCalls(stub func(zapcore.Entry, []zapcore.Field))

type WriteSyncer Uses

type WriteSyncer struct {
    SyncStub func() error

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

func (*WriteSyncer) Invocations Uses

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

func (*WriteSyncer) Sync Uses

func (fake *WriteSyncer) Sync() error

func (*WriteSyncer) SyncCallCount Uses

func (fake *WriteSyncer) SyncCallCount() int

func (*WriteSyncer) SyncCalls Uses

func (fake *WriteSyncer) SyncCalls(stub func() error)

func (*WriteSyncer) SyncReturns Uses

func (fake *WriteSyncer) SyncReturns(result1 error)

func (*WriteSyncer) SyncReturnsOnCall Uses

func (fake *WriteSyncer) SyncReturnsOnCall(i int, result1 error)

func (*WriteSyncer) Write Uses

func (fake *WriteSyncer) Write(arg1 []byte) (int, error)

func (*WriteSyncer) WriteArgsForCall Uses

func (fake *WriteSyncer) WriteArgsForCall(i int) []byte

func (*WriteSyncer) WriteCallCount Uses

func (fake *WriteSyncer) WriteCallCount() int

func (*WriteSyncer) WriteCalls Uses

func (fake *WriteSyncer) WriteCalls(stub func([]byte) (int, error))

func (*WriteSyncer) WriteReturns Uses

func (fake *WriteSyncer) WriteReturns(result1 int, result2 error)

func (*WriteSyncer) WriteReturnsOnCall Uses

func (fake *WriteSyncer) WriteReturnsOnCall(i int, result1 int, result2 error)

Package mock imports 3 packages (graph). Updated 2019-02-06. Refresh now. Tools for package owners.