Skip to content

Commit e4a93d3

Browse files
committed
change filename
1 parent 13d1afa commit e4a93d3

File tree

15 files changed

+2
-3
lines changed

15 files changed

+2
-3
lines changed

.mockery.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ all: True
55
dir: "{{.InterfaceDirRelative}}"
66
mockname: "Mock{{.InterfaceName}}"
77
pkgname: "{{.SrcPackageName}}"
8-
filename: "mocks_test.go"
8+
filename: "mocks_{{.SrcPackageName}}_test.go"
99
template-data:
1010
boilerplate-file: "./.boilerplate.txt"
1111
packages:
@@ -46,6 +46,5 @@ packages:
4646
config:
4747
all: True
4848
dir: internal/fixtures/
49-
filename: mocks_io_test.go
5049
pkgname: test
5150

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ tasks:
2121
mocks.remove:
2222
desc: remove all mock files
2323
cmds:
24-
- find . -name '*_mock.go' -o -name 'mock_*_test.go' -o -name 'mocks.go' -o -name "mocks_moq.go" -o -name 'mocks_test.go' -o -name 'mocks_moq_test.go' | xargs -r rm
24+
- find . -name '*_mock.go' -o -name 'mock_*_test.go' -o -name 'mocks.go' -o -name "mocks_moq.go" -o -name 'mocks_test.go' -o -name 'mocks_moq_test.go' -o -name 'mocks_*_test.go' | xargs -r rm
2525
- rm -rf mocks/
2626

2727
mocks.generate.mockery:
File renamed without changes.
File renamed without changes.

internal/fixtures/example_project/mocks_test.go renamed to internal/fixtures/example_project/mocks_example_project_test.go

File renamed without changes.

internal/fixtures/iface_new_type/mocks_test.go renamed to internal/fixtures/iface_new_type/mocks_iface_new_type_test.go

File renamed without changes.

internal/fixtures/iface_typed_param/mocks_test.go renamed to internal/fixtures/iface_typed_param/mocks_iface_typed_param_test.go

File renamed without changes.

internal/fixtures/index_list_expr/mocks_test.go renamed to internal/fixtures/index_list_expr/mocks_index_list_expr_test.go

File renamed without changes.

internal/fixtures/method_args/same_name_arg_and_type/mocks_test.go renamed to internal/fixtures/method_args/same_name_arg_and_type/mocks_same_name_arg_and_type_test.go

File renamed without changes.

0 commit comments

Comments
 (0)