testutil

package
v0.0.0-...-3c171a9 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0 Imports: 4 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 NewEtcdV3Client

func NewEtcdV3Client(t TestCase) *etcdv3.Client

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