mock

package
v0.0.0-...-b544036 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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 Signer

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

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

func (*Signer) Invocations

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

func (*Signer) Serialize

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

func (*Signer) SerializeCallCount

func (fake *Signer) SerializeCallCount() int

func (*Signer) SerializeCalls

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

func (*Signer) SerializeReturns

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

func (*Signer) SerializeReturnsOnCall

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

func (*Signer) Sign

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

func (*Signer) SignArgsForCall

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

func (*Signer) SignCallCount

func (fake *Signer) SignCallCount() int

func (*Signer) SignCalls

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

func (*Signer) SignReturns

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

func (*Signer) SignReturnsOnCall

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

type SnapshotClient

type SnapshotClient struct {
	CancelStub func(context.Context, *peer.SignedSnapshotRequest, ...grpc.CallOption) (*empty.Empty, error)

	GenerateStub func(context.Context, *peer.SignedSnapshotRequest, ...grpc.CallOption) (*empty.Empty, error)

	QueryPendingsStub func(context.Context, *peer.SignedSnapshotRequest, ...grpc.CallOption) (*peer.QueryPendingSnapshotsResponse, error)
	// contains filtered or unexported fields
}

func (*SnapshotClient) Cancel

func (fake *SnapshotClient) Cancel(arg1 context.Context, arg2 *peer.SignedSnapshotRequest, arg3 ...grpc.CallOption) (*empty.Empty, error)

func (*SnapshotClient) CancelArgsForCall

func (fake *SnapshotClient) CancelArgsForCall(i int) (context.Context, *peer.SignedSnapshotRequest, []grpc.CallOption)

func (*SnapshotClient) CancelCallCount

func (fake *SnapshotClient) CancelCallCount() int

func (*SnapshotClient) CancelCalls

func (fake *SnapshotClient) CancelCalls(stub func(context.Context, *peer.SignedSnapshotRequest, ...grpc.CallOption) (*empty.Empty, error))

func (*SnapshotClient) CancelReturns

func (fake *SnapshotClient) CancelReturns(result1 *empty.Empty, result2 error)

func (*SnapshotClient) CancelReturnsOnCall

func (fake *SnapshotClient) CancelReturnsOnCall(i int, result1 *empty.Empty, result2 error)

func (*SnapshotClient) Generate

func (fake *SnapshotClient) Generate(arg1 context.Context, arg2 *peer.SignedSnapshotRequest, arg3 ...grpc.CallOption) (*empty.Empty, error)

func (*SnapshotClient) GenerateArgsForCall

func (fake *SnapshotClient) GenerateArgsForCall(i int) (context.Context, *peer.SignedSnapshotRequest, []grpc.CallOption)

func (*SnapshotClient) GenerateCallCount

func (fake *SnapshotClient) GenerateCallCount() int

func (*SnapshotClient) GenerateCalls

func (fake *SnapshotClient) GenerateCalls(stub func(context.Context, *peer.SignedSnapshotRequest, ...grpc.CallOption) (*empty.Empty, error))

func (*SnapshotClient) GenerateReturns

func (fake *SnapshotClient) GenerateReturns(result1 *empty.Empty, result2 error)

func (*SnapshotClient) GenerateReturnsOnCall

func (fake *SnapshotClient) GenerateReturnsOnCall(i int, result1 *empty.Empty, result2 error)

func (*SnapshotClient) Invocations

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

func (*SnapshotClient) QueryPendings

func (*SnapshotClient) QueryPendingsArgsForCall

func (fake *SnapshotClient) QueryPendingsArgsForCall(i int) (context.Context, *peer.SignedSnapshotRequest, []grpc.CallOption)

func (*SnapshotClient) QueryPendingsCallCount

func (fake *SnapshotClient) QueryPendingsCallCount() int

func (*SnapshotClient) QueryPendingsCalls

func (*SnapshotClient) QueryPendingsReturns

func (fake *SnapshotClient) QueryPendingsReturns(result1 *peer.QueryPendingSnapshotsResponse, result2 error)

func (*SnapshotClient) QueryPendingsReturnsOnCall

func (fake *SnapshotClient) QueryPendingsReturnsOnCall(i int, result1 *peer.QueryPendingSnapshotsResponse, result2 error)

Jump to

Keyboard shortcuts

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