framework

package
v1.6.9-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TeardownOnPanic

func TeardownOnPanic(t *testing.T, f TestFixture)

TeardownOnPanic can be used to ensure cleanup on setup failure.

Types

type FederationAPIFixture

type FederationAPIFixture struct {
	Host string
	// contains filtered or unexported fields
}

FederationAPIFixture manages a federation api server

func (*FederationAPIFixture) Setup

func (f *FederationAPIFixture) Setup(t *testing.T)

func (*FederationAPIFixture) Teardown

func (f *FederationAPIFixture) Teardown(t *testing.T)

type TestFixture

type TestFixture interface {
	Teardown(t *testing.T)
}

Setup is likely to be fixture-specific, but Teardown needs to be consistent to enable TeardownOnPanic.

Jump to

Keyboard shortcuts

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