From 937870445b8bddd7f05ea90e81c58ebe83681534 Mon Sep 17 00:00:00 2001 From: poy Date: Thu, 25 Apr 2019 15:36:05 -0600 Subject: [PATCH] gomock: refactor directory name Rename directory to match default package output of gomock. --- .../internal/{mock_matcher => mock_gomock}/mock_matcher.go | 0 gomock/matchers_test.go | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename gomock/internal/{mock_matcher => mock_gomock}/mock_matcher.go (100%) diff --git a/gomock/internal/mock_matcher/mock_matcher.go b/gomock/internal/mock_gomock/mock_matcher.go similarity index 100% rename from gomock/internal/mock_matcher/mock_matcher.go rename to gomock/internal/mock_gomock/mock_matcher.go diff --git a/gomock/matchers_test.go b/gomock/matchers_test.go index db1411eb..8bb87f75 100644 --- a/gomock/matchers_test.go +++ b/gomock/matchers_test.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:generate mockgen -destination internal/mock_matcher/mock_matcher.go github.com/golang/mock/gomock Matcher +//go:generate mockgen -destination internal/mock_gomock/mock_matcher.go github.com/golang/mock/gomock Matcher package gomock_test @@ -21,7 +21,7 @@ import ( "testing" "github.com/golang/mock/gomock" - mock_matcher "github.com/golang/mock/gomock/internal/mock_matcher" + "github.com/golang/mock/gomock/internal/mock_gomock" ) func TestMatchers(t *testing.T) { @@ -57,7 +57,7 @@ func TestNotMatcher(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - mockMatcher := mock_matcher.NewMockMatcher(ctrl) + mockMatcher := mock_gomock.NewMockMatcher(ctrl) notMatcher := gomock.Not(mockMatcher) mockMatcher.EXPECT().Matches(4).Return(true)