test

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2015 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempfile

func CreateTempfile(b []byte, t *testing.T) *os.File

func DeleteTempfile

func DeleteTempfile(f *os.File, t *testing.T)

func DemoConsulClient

func DemoConsulClient(t *testing.T) (*api.Client, *api.QueryOptions)

func WaitForFileContents added in v0.6.0

func WaitForFileContents(path string, contents []byte, t *testing.T)

Types

type FakeDependency

type FakeDependency struct {
	Name string
}

func (*FakeDependency) Display

func (d *FakeDependency) Display() string

func (*FakeDependency) Fetch

func (d *FakeDependency) Fetch(client *api.Client, options *api.QueryOptions) (interface{}, *api.QueryMeta, error)

func (*FakeDependency) HashCode

func (d *FakeDependency) HashCode() string

type FakeDependencyFetchError

type FakeDependencyFetchError struct {
	Name string
}

func (*FakeDependencyFetchError) Display

func (d *FakeDependencyFetchError) Display() string

func (*FakeDependencyFetchError) Fetch

func (d *FakeDependencyFetchError) Fetch(client *api.Client, options *api.QueryOptions) (interface{}, *api.QueryMeta, error)

func (*FakeDependencyFetchError) HashCode

func (d *FakeDependencyFetchError) HashCode() string

type FakeDependencyFetchRetry added in v0.5.0

type FakeDependencyFetchRetry struct {
	sync.Mutex
	Name string
	// contains filtered or unexported fields
}

func (*FakeDependencyFetchRetry) Display added in v0.5.0

func (d *FakeDependencyFetchRetry) Display() string

func (*FakeDependencyFetchRetry) Fetch added in v0.5.0

func (d *FakeDependencyFetchRetry) Fetch(client *api.Client, options *api.QueryOptions) (interface{}, *api.QueryMeta, error)

func (*FakeDependencyFetchRetry) HashCode added in v0.5.0

func (d *FakeDependencyFetchRetry) HashCode() string

type FakeDependencyStale added in v0.6.5

type FakeDependencyStale struct {
	Name string
}

func (*FakeDependencyStale) Display added in v0.6.5

func (d *FakeDependencyStale) Display() string

func (*FakeDependencyStale) Fetch added in v0.6.5

func (d *FakeDependencyStale) Fetch(client *api.Client, options *api.QueryOptions) (interface{}, *api.QueryMeta, error)

func (*FakeDependencyStale) HashCode added in v0.6.5

func (d *FakeDependencyStale) HashCode() string

Jump to

Keyboard shortcuts

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