Documentation ¶
Index ¶
- func BeFileLike(t *testing.T, file string, mode os.FileMode, content string)
- func BeLaunchMetadataLike(t *testing.T, layers layersPkg.Layers, expected layersPkg.Metadata)
- func BeLayerLike(t *testing.T, layer layersPkg.Layer, build bool, cache bool, launch bool)
- func FileExists(t *testing.T, file string)
- func FixturePath(t *testing.T, fixture string) string
- type BuildFactory
- type DetectFactory
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 BeLaunchMetadataLike ¶ added in v1.15.0
BeLaunchMetadata tests that launch metadata has a specific configuration.
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.