mocks

package
v0.0.0-...-523a819 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 Code generated by mockery v1.0.0. 不要编辑。

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 Code generated by mockery v1.0.0. 不要编辑。

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 Code generated by mockery v1.0.0. 不要编辑。

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 Code generated by mockery v1.0.0. 不要编辑。

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 Code generated by mockery v1.0.0. 不要编辑。

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 Code generated by mockery v1.0.0. 不要编辑。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelResponse

type ChannelResponse struct {
	mock.Mock
}

channelResponse是针对channelResponse类型自动生成的模拟类型

func (*ChannelResponse) Config

func (_m *ChannelResponse) Config() (*discovery.ConfigResult, error)

config提供了一个具有给定字段的模拟函数:

func (*ChannelResponse) Endorsers

func (_m *ChannelResponse) Endorsers(invocationChain client.InvocationChain, f client.Filter) (client.Endorsers, error)

背书人为给定字段提供模拟函数:invocationChain,f

func (*ChannelResponse) Peers

func (_m *ChannelResponse) Peers(invocationChain ...*discovery.ChaincodeCall) ([]*client.Peer, error)

对等端为给定字段提供模拟函数:invocationChain

type CommandRegistrar

type CommandRegistrar struct {
	mock.Mock
}

commandRegistrar是commandRegistrar类型的自动生成的模拟类型

func (*CommandRegistrar) Command

func (_m *CommandRegistrar) Command(name string, help string, onCommand common.CLICommand) *kingpin.CmdClause

命令提供具有给定字段的模拟函数:name、help、oncommand

type LocalResponse

type LocalResponse struct {
	mock.Mock
}

LocalResponse是为LocalResponse类型自动生成的模拟类型

func (*LocalResponse) Peers

func (_m *LocalResponse) Peers() ([]*discovery.Peer, error)

对等端为给定字段提供模拟函数:

type ResponseParser

type ResponseParser struct {
	mock.Mock
}

ResponseParser是ResponseParser类型的自动生成的模拟类型

func (*ResponseParser) ParseResponse

func (_m *ResponseParser) ParseResponse(channel string, response discovery.ServiceResponse) error

ParseResponse提供了一个具有给定字段的模拟函数:通道、响应

type ServiceResponse

type ServiceResponse struct {
	mock.Mock
}

ServiceResponse是为ServiceResponse类型自动生成的模拟类型

func (*ServiceResponse) ForChannel

func (_m *ServiceResponse) ForChannel(_a0 string) discovery.ChannelResponse

forchannel提供了一个具有给定字段的模拟函数:a0

func (*ServiceResponse) ForLocal

func (_m *ServiceResponse) ForLocal() discovery.LocalResponse

ForLocal为给定字段提供模拟函数:

func (*ServiceResponse) Raw

raw提供了一个具有给定字段的模拟函数:

type Stub

type Stub struct {
	mock.Mock
}

存根是为存根类型自动生成的模拟类型

func (*Stub) Send

func (_m *Stub) Send(server string, conf common.Config, req *discovery.Request) (cmd.ServiceResponse, error)

发送提供给定字段的模拟函数:服务器、CONF、Req

Jump to

Keyboard shortcuts

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