test

package
Version: v0.0.0-...-6c2d9fc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HelmRoot = filepath.Join(os.Getenv("GOPATH"), "src/github.com/helm/helm-classic/")

HelmRoot - dir root of the project

Functions

func CaptureOutput

func CaptureOutput(fn func()) (out string)

CaptureOutput redirect all log/std streams, capture and replace

func CreateTmpHome

func CreateTmpHome() string

CreateTmpHome create a temporary directory for $HELMC_HOME

func ExpectContains

func ExpectContains(t *testing.T, actual string, expected string)

ExpectContains assert b is contained within a

func ExpectEquals

func ExpectEquals(t *testing.T, a interface{}, b interface{})

ExpectEquals assert a == b

func ExpectMatches

func ExpectMatches(t *testing.T, actual string, expected string)

ExpectMatches assert a ~= b

func FakeUpdate

func FakeUpdate(home string)

FakeUpdate add testdata to home path

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL