Skip to content

Commit

Permalink
relocate mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Oct 23, 2018
1 parent 0c6fc2b commit 5fc606c
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/router/router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"v2ray.com/core/common"
"v2ray.com/core/common/net"
"v2ray.com/core/common/session"
"v2ray.com/core/features/mocks"
"v2ray.com/core/testing/mocks"
)

func TestSimpleRouter(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ package core

//go:generate go get -u github.com/golang/mock/gomock
//go:generate go install github.com/golang/mock/mockgen
//go:generate mockgen -package mocks -destination v2ray.com/core/features/mocks/dns.go v2ray.com/core/features/dns Client
//go:generate mockgen -package mocks -destination v2ray.com/core/testing/mocks/dns.go -mock_names Client=MockDNSClient v2ray.com/core/features/dns Client
//go:generate mockgen -package mocks -destination v2ray.com/core/testing/mocks/proxy.go -mock_names Inbound=MockProxyInbound,Outbound=MockProxyOutbound v2ray.com/core/proxy Inbound,Outbound
File renamed without changes.
97 changes: 97 additions & 0 deletions testing/mocks/proxy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5fc606c

Please sign in to comment.