test

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Test contains common test helpers used across packages in porter.

Index

Constants

View Source
const (
	MockedCommandEnv   = "MOCK_COMMAND"
	ExpectedCommandEnv = "EXPECTED_COMMAND"
)

Variables

This section is empty.

Functions

func TestMainWithMockedCommandHandlers

func TestMainWithMockedCommandHandlers(m *testing.M)

Types

type Logger

type Logger struct {
	T *testing.T
}

Logger helps capture output in a test while still showing it in the console

func (Logger) Write

func (l Logger) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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