testutil

package
v0.0.0-...-8de5e17 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package testutil is a collection of utilities for use by Metafora's etcd tests. Since tests are spread across the m_etcd and m_etcd_test packages utilities must be in a shared location.

Unless you're making changes to the m_etcd package you don't need to use this.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEtcdClient

func NewEtcdClient(t TestCase) (*etcd.Client, []string)

NewEtcdClient creates a new etcd client for use by the metafora client during testing.

Types

type TestCase

type TestCase interface {
	Skip(args ...interface{})
	Fatalf(format string, args ...interface{})
}

TestCase just defines the subset of *testing.T methods needed to avoid pulling in the testing package.

Jump to

Keyboard shortcuts

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