Skip to content

Commit

Permalink
feat: update mockery
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassabreu committed Feb 9, 2024
1 parent 0de2dec commit 737626c
Show file tree
Hide file tree
Showing 6 changed files with 725 additions and 58 deletions.
8 changes: 8 additions & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
with-expecter: true
dir: "internal/mocks"
packages:
github.com/lucassabreu/clockify-cli/internal/mocks:
interfaces:
Client:
Config:
Factory:
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ go-install: deps-install ## install dev version
go install $(MAIN_PKG)

go-generate: deps-install ## recreates generate files
go install github.com/vektra/mockery/v2@v2.15.0
go generate ./...
go install github.com/vektra/mockery/v2@v2.40.3
mockery

test-install: deps-install go-generate
go install gotest.tools/gotestsum@latest
Expand Down
3 changes: 0 additions & 3 deletions internal/mocks/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ import (
"github.com/lucassabreu/clockify-cli/pkg/cmdutil"
)

//go:generate mockery --name=Factory --inpackage --with-expecter
type Factory interface {
cmdutil.Factory
}

//go:generate mockery --name=Config --inpackage --with-expecter
type Config interface {
cmdutil.Config
}

//go:generate mockery --name=Client --inpackage --with-expecter
type Client interface {
api.Client
}
Loading

0 comments on commit 737626c

Please sign in to comment.