scaffoldtest

package
v0.0.0-...-01492f3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestResult

type TestResult struct {
	// Actual is the bytes written to a scaffolded file.
	Actual bytes.Buffer

	// Golden is the golden file contents read from the controller-tools/test package
	Golden string
}

TestResult is the result of running the scaffolding.

func NewTestScaffold

func NewTestScaffold(writeToPath, goldenPath string) (*scaffold.Scaffold, *TestResult)

NewTestScaffold returns a new scaffold and TestResult instance for testing

Jump to

Keyboard shortcuts

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