forked from buildpacks/pack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Javier Romero <[email protected]>
- Loading branch information
Showing
74 changed files
with
2,895 additions
and
1,214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,11 +69,12 @@ func testPackageBuilder(t *testing.T, when spec.G, it spec.S) { | |
return subject.SaveAsFile(path.Join(tmpDir, "package.cnb")) | ||
}}, | ||
} { | ||
testFn := test.fn | ||
when(test.name, func() { | ||
when("validate buildpack", func() { | ||
when("buildpack not set", func() { | ||
it("returns error", func() { | ||
err := test.fn() | ||
err := testFn() | ||
h.AssertError(t, err, "buildpack must be set") | ||
}) | ||
}) | ||
|
@@ -100,7 +101,7 @@ func testPackageBuilder(t *testing.T, when spec.G, it spec.S) { | |
h.AssertNil(t, err) | ||
subject.AddDependency(bp2) | ||
|
||
err = test.fn() | ||
err = testFn() | ||
h.AssertError(t, err, "buildpack '[email protected]' is not used by buildpack '[email protected]'") | ||
}) | ||
}) | ||
|
@@ -132,7 +133,7 @@ func testPackageBuilder(t *testing.T, when spec.G, it spec.S) { | |
h.AssertNil(t, err) | ||
subject.AddDependency(presentBP) | ||
|
||
err = test.fn() | ||
err = testFn() | ||
h.AssertError(t, err, "buildpack '[email protected]' references buildpack '[email protected]' which is not present") | ||
}) | ||
}) | ||
|
@@ -166,7 +167,7 @@ func testPackageBuilder(t *testing.T, when spec.G, it spec.S) { | |
h.AssertNil(t, err) | ||
subject.AddDependency(presentBP) | ||
|
||
err = test.fn() | ||
err = testFn() | ||
h.AssertError(t, err, "buildpack '[email protected]' references buildpack '[email protected]' which is not present") | ||
}) | ||
}) | ||
|
@@ -207,7 +208,7 @@ func testPackageBuilder(t *testing.T, when spec.G, it spec.S) { | |
|
||
subject.AddDependency(dependency) | ||
|
||
err = test.fn() | ||
err = testFn() | ||
h.AssertNil(t, err) | ||
}) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.