test

package
v0.0.0-...-f8b7a73 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

包测试提供用于测试的函数 GlobalStrer实施。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportExport

func ImportExport(t *testing.T, outStore, inStore mock.GlobalStorer, n int)

importexport将块保存到出口,将它们导出到tar存档, 将tar存档导入到instore并检查是否正确导入了所有块。

func MockStore

func MockStore(t *testing.T, globalStore mock.GlobalStorer, n int)

mockstore从提供的globalstorer创建nodestore实例, 每个都有一个唯一的地址,在上面存储不同的块 并检查它们是否可在所有节点上检索。 属性n定义将创建的节点存储数。

Types

This section is empty.

Jump to

Keyboard shortcuts

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