Skip to content

Commit

Permalink
feat(makefile): genetate mock auto (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-cj authored Dec 10, 2020
1 parent 6030dba commit 3d37e45
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 148 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ generate:
@mockgen -source vendor/github.com/deislabs/oras/pkg/auth/client.go -destination pkg/oras/mock/mock_auth.go -package mock
@mockgen -source vendor/github.com/containerd/containerd/remotes/resolver.go -destination pkg/oras/mock/mock_resolver.go -package mock
@mockgen -source pkg/model/format.go -destination pkg/model/mock/mock_format.go -package mock
@mockgen -source pkg/ormb/ormb.go -destination pkg/ormb/mock/mock_ormb.go -package mock

test: generate
@go test -race -coverprofile=coverage.out ./...
Expand Down
148 changes: 0 additions & 148 deletions pkg/ormb/mock/mock.go

This file was deleted.

131 changes: 131 additions & 0 deletions pkg/ormb/mock/mock_ormb.go

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

0 comments on commit 3d37e45

Please sign in to comment.