Skip to content

Commit

Permalink
fixed mocks
Browse files Browse the repository at this point in the history
Signed-off-by: Rashad Sirajudeen <rashad.20@cse.mrt.ac.lk>
  • Loading branch information
rashadism committed Apr 22, 2024
1 parent 51f0978 commit 841279f
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion internal/build/container_ops_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ drwxrwxrwx 2 123 456 (.*) some-vol
h.AssertNil(t, err)
defer cleanupContainer(ctx, ctr.ID)

writeOp := build.WriteRunToml(containerPath, []builder.RunImageMetadata{builder.RunImageMetadata{
writeOp := build.WriteRunToml(containerPath, []builder.RunImageMetadata{{
Image: "image-1",
Mirrors: []string{
"mirror-1",
Expand Down
2 changes: 1 addition & 1 deletion internal/build/lifecycle_execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ func (l *LifecycleExecution) Analyze(ctx context.Context, buildCache, launchCach
platformAPILessThan07 := l.platformAPI.LessThan("0.7")

cacheBindOp := NullOp()
if l.opts.ClearCache {
if l.opts.ClearCache || l.DetectOnly {
if platformAPILessThan07 || l.platformAPI.AtLeast("0.9") {
args = prependArg("-skip-layers", args)
}
Expand Down
3 changes: 2 additions & 1 deletion internal/builder/testmocks/mock_lifecycle.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/commands/testmocks/mock_pack_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pkg/testmocks/mock_blob_downloader.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pkg/testmocks/mock_build_module.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pkg/testmocks/mock_buildpack_downloader.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pkg/testmocks/mock_image_fetcher.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 841279f

Please sign in to comment.