testutil

package
v0.0.0-...-0f4c570 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package testutil provides utilities for testing code that involves pools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDockerClientOrSkip

func NewDockerClientOrSkip(t *testing.T) *dockerclient.Client

NewDockerClientOrSkip returns a local Docker client. The test is marked as skipped if there is no local Docker instance.

func NewTestPoolOrSkip

func NewTestPoolOrSkip(t *testing.T) (*local.Pool, func())

NewTestPoolOrSkip returns a new local Pool useful for testing. The test is marked as skipped if the pool cannot be constructed because there is no local Docker instance.

func TestPool

func TestPool(t *testing.T, p pool.Pool)

TestPool exercises the pool p on the testing instance t.

Types

This section is empty.

Jump to

Keyboard shortcuts

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