repotesting

package
v0.3.0-pre2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package repotesting contains test utilities for working with repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	Repository *repo.Repository
	// contains filtered or unexported fields
}

Environment encapsulates details of a test environment.

func (*Environment) Close

func (e *Environment) Close(t *testing.T)

Close closes testing environment

func (*Environment) MustReopen

func (e *Environment) MustReopen(t *testing.T)

MustReopen closes and reopens the repository.

func (*Environment) Setup

func (e *Environment) Setup(t *testing.T, opts ...func(*repo.NewRepositoryOptions)) *Environment

Setup sets up a test environment.

func (*Environment) VerifyStorageBlockCount

func (e *Environment) VerifyStorageBlockCount(t *testing.T, want int)

VerifyStorageBlockCount verifies that the underlying storage contains the specified number of blocks.

Jump to

Keyboard shortcuts

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