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
Click to show internal directories.
Click to hide internal directories.