Skip to content

Commit

Permalink
feat: update namely/protoc-all image version to 1.47_0 (#1418)
Browse files Browse the repository at this point in the history
* feat: update namely/protoc-all image version to 1.47_0

Signed-off-by: Gaius <gaius.qi@gmail.com>

* feat: generate mock file

Signed-off-by: Gaius <gaius.qi@gmail.com>
  • Loading branch information
gaius-qi committed Jun 29, 2022
1 parent fa04316 commit 6955e7c
Show file tree
Hide file tree
Showing 94 changed files with 4,174 additions and 2,381 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ build-e2e-sha256sum:

# Run unittests
test:
@go test -v -gcflags "all=-l" -race -short ${PKG_LIST}
@go test -v -race -short ${PKG_LIST}
.PHONY: test

# Run tests with coverage
test-coverage:
@go test -v -gcflags "all=-l" -race -short ${PKG_LIST} -coverprofile cover.out -covermode=atomic
@go test -v -race -short ${PKG_LIST} -coverprofile cover.out -covermode=atomic
@cat cover.out >> coverage.txt
.PHONY: test-coverage

Expand Down
6 changes: 2 additions & 4 deletions client/clientutil/keepalive.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

//go:generate mockgen -destination mocks/keepalive_mock.go -source keepalive.go -package mocks

package clientutil

import (
Expand All @@ -24,8 +26,6 @@ import (
logger "d7y.io/dragonfly/v2/internal/dflog"
)

var _ *logger.SugaredLoggerOnWith // pin this package for no log code generation

type KeepAlive interface {
Keep()
Alive(alive time.Duration) bool
Expand All @@ -36,8 +36,6 @@ type keepAlive struct {
access atomic.Int64
}

var _ KeepAlive = (*keepAlive)(nil)

func NewKeepAlive(name string) KeepAlive {
return &keepAlive{
name: name,
Expand Down
61 changes: 61 additions & 0 deletions client/clientutil/mocks/keepalive_mock.go

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

2 changes: 2 additions & 0 deletions client/config/dynconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

//go:generate mockgen -destination mocks/dynconfig_mock.go -source dynconfig.go -package mocks

package config

import (
Expand Down
197 changes: 197 additions & 0 deletions client/config/mocks/dynconfig_mock.go

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

63 changes: 63 additions & 0 deletions client/daemon/objectstorage/mocks/objectstorage_mock.go

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

2 changes: 2 additions & 0 deletions client/daemon/objectstorage/objectstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

//go:generate mockgen -destination mocks/objectstorage_mock.go -source objectstorage.go -package mocks

package objectstorage

import (
Expand Down
Loading

0 comments on commit 6955e7c

Please sign in to comment.