Skip to content

Commit

Permalink
Merge branch 'master' into import-customize
Browse files Browse the repository at this point in the history
  • Loading branch information
RangelReale committed Mar 10, 2023
2 parents ac22d5e + c96741b commit 6e9b6a1
Show file tree
Hide file tree
Showing 84 changed files with 2,594 additions and 2,649 deletions.
1 change: 1 addition & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ jobs:
with:
key: ${{ github.ref }}
path: .cache
- run: sudo apt-get install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
- run: pip install -r docs/requirements.txt
- run: mkdocs gh-deploy --force
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist
.idea
docs/ve
ve
.cache
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ builds:
- main: ./main.go
binary: mockery
ldflags:
- -s -w -X github.com/vektra/mockery/v2/pkg/config.SemVer=v{{.Version}}
- -s -w -X github.com/vektra/mockery/v2/pkg/logging.SemVer=v{{.Version}}
env:
- CGO_ENABLED=0
goos:
Expand Down
22 changes: 21 additions & 1 deletion .mockery.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
quiet: False
all: True
keeptree: True
disable-version-string: True
with-expecter: True
filename: "{{.MockName}}.go"
packages:
github.com/vektra/mockery/v2/pkg:
interfaces:
TypesPackage:
github.com/vektra/mockery/v2/pkg/fixtures:
interfaces:
RequesterArgSameAsNamedImport:
RequesterVariadic:
config:
with-expecter: False
configs:
- structname: RequesterVariadicOneArgument
unroll-variadic: False
- structname: RequesterVariadic
Expecter:
RequesterReturnElided:



11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ fmt:
go fmt ./...

.PHONY: test
test: mocks
test:
go test ./...

mocks: $(shell find . -type f -name '*.go' -not -name '*_test.go')
go run . --dir pkg/fixtures --output mocks/pkg/fixtures
go run . --all=false --print --dir pkg/fixtures --name RequesterVariadic --structname RequesterVariadicOneArgument --unroll-variadic=False > mocks/pkg/fixtures/RequesterVariadicOneArgument.go
go run . --all=false --print --dir pkg/fixtures --name Expecter --with-expecter > mocks/pkg/fixtures/Expecter.go
go run . --all=false --print --dir pkg/fixtures --name RequesterReturnElided --with-expecter > mocks/pkg/fixtures/RequesterReturnElided.go
@touch mocks
.PHONY: mocks
mocks:
go run .

.PHONY: install
install:
Expand Down
Loading

0 comments on commit 6e9b6a1

Please sign in to comment.