test

package
v0.0.0-...-a9c2c10 Latest Latest
Warning

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

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

Documentation

Overview

Package test provides functions that are used for testing GlobalStorer implementations.

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 saves chunks to the outStore, exports them to the tar archive, imports tar archive to the inStore and checks if all chunks are imported correctly.

func MockStore

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

MockStore creates NodeStore instances from provided GlobalStorer, each one with a unique address, stores different chunks on them and checks if they are retrievable or not on all nodes. Attribute n defines the number of NodeStores that will be created.

Types

This section is empty.

Jump to

Keyboard shortcuts

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