spec

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package spec contains a set of tests to ensure a repo implementation conforms to expected behaviors, calling RunRepoTests on a given repo implementation should pass all checks in order to properly work with Qri. test also has a TestRepo, which uses an in-memory implementation of Repo suited for tests that require a repo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunRepoTests

func RunRepoTests(t *testing.T, rmf RepoMakerFunc)

RunRepoTests tests that this repo conforms to expected behaviors

Types

type RepoMakerFunc

type RepoMakerFunc func(t *testing.T) (r repo.Repo, cleanup func())

RepoMakerFunc produces a new instance of a repository when called the returned cleanup function will be called at the end of each test, and can be used to do things like remove temp files

Jump to

Keyboard shortcuts

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