From 473acc61c8392dc7ae303d91568e179c4f105a76 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 2 Jul 2019 12:12:53 +0200 Subject: add black list --- .../mockgen/tests/custom_package_name/README.md | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 vendor/github.com/golang/mock/mockgen/tests/custom_package_name/README.md (limited to 'vendor/github.com/golang/mock/mockgen/tests/custom_package_name/README.md') diff --git a/vendor/github.com/golang/mock/mockgen/tests/custom_package_name/README.md b/vendor/github.com/golang/mock/mockgen/tests/custom_package_name/README.md deleted file mode 100644 index b16da21..0000000 --- a/vendor/github.com/golang/mock/mockgen/tests/custom_package_name/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# Tests for custom package names - -This directory contains test for mockgen generating mocks when imported package -name does not match import path suffix. For example, package with name "client" -is located under import path "github.com/golang/mock/mockgen/tests/custom_package_name/client/v1". - -Prior to this patch: - - $ go generate greeter/greeter.go - 2018/03/05 22:44:52 Loading input failed: greeter.go:17:11: failed parsing returns: greeter.go:17:14: unknown package "client" - greeter/greeter.go:1: running "mockgen": exit status 1 - -This can be fixed by manually providing `-imports` flag, like `-imports client=github.com/golang/mock/mockgen/tests/custom_package_name/client/v1`. -But, mockgen should be able to automatically resolve package names in such situations. - -With this patch applied: - - $ go generate greeter/greeter.go - $ echo $? - 0 - -Mockgen runs successfully, produced output is equal to [greeter_mock_test.go](greeter/greeter_mock_test.go) content. -- cgit v1.2.3