Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeFileLike ¶
BeFileLike tests that a file exists, has a specific mode, and specific content.
func BeLayerLike ¶
BeLayerLike tests that a layer has a specific flag configuration.
Types ¶
type BuildFactory ¶
type BuildFactory struct {
// Build is the configured build to use.
Build build.Build
// The BuildPlan output at termination.
Output buildplan.BuildPlan
}
BuildFactory is a factory for creating a test Build.
func NewBuildFactory ¶
func NewBuildFactory(t *testing.T) *BuildFactory
NewBuildFactory creates a new instance of BuildFactory.
func (*BuildFactory) AddBuildPlan ¶
func (f *BuildFactory) AddBuildPlan(t *testing.T, name string, dependency buildplan.Dependency)
AddBuildPlan adds an entry to a build plan.
func (*BuildFactory) AddDependency ¶
func (f *BuildFactory) AddDependency(t *testing.T, id string, fixture string)
AddDependency adds a dependency to the buildpack metadata and copies a fixture into a cached dependency layer.
type DetectFactory ¶
DetectFactory is a factory for creating a test Detect.
func NewDetectFactory ¶
func NewDetectFactory(t *testing.T) *DetectFactory
NewDetectFactory creates a new instance of DetectFactory.
func (*DetectFactory) AddBuildPlan ¶
func (f *DetectFactory) AddBuildPlan(t *testing.T, name string, dependency buildplan.Dependency)
AddBuildPlan adds an entry to a build plan.
Click to show internal directories.
Click to hide internal directories.