From e65b4795a5928d7989c3089dca5e5243439160dd Mon Sep 17 00:00:00 2001 From: Reugn Date: Tue, 10 Dec 2019 03:47:35 +0200 Subject: [PATCH] move license_test from project root; change package name (#116) --- go.mod | 1 - go.sum | 2 -- license_test.go => integration-tests/license_test.go | 6 +++--- 3 files changed, 3 insertions(+), 6 deletions(-) rename license_test.go => integration-tests/license_test.go (95%) diff --git a/go.mod b/go.mod index 339748e75c489..bdbadf13fc49f 100644 --- a/go.mod +++ b/go.mod @@ -16,5 +16,4 @@ require ( github.com/spf13/cobra v0.0.3 github.com/spf13/pflag v1.0.3 // indirect github.com/stretchr/testify v1.3.0 - github.com/valyala/gozstd v1.4.1 ) diff --git a/go.sum b/go.sum index c3fdcf672e011..3d8be2ae86154 100644 --- a/go.sum +++ b/go.sum @@ -34,7 +34,5 @@ github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/valyala/gozstd v1.4.1 h1:3/+pPStlV5Py2TsGhzNUItnYgX2yaX2tHMw/32c/0dM= -github.com/valyala/gozstd v1.4.1/go.mod h1:oYOS+oJovjw9ewtrwEYb9+ybolEXd6pHyLMuAWN5zts= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33 h1:I6FyU15t786LL7oL/hn43zqTuEGr4PN7F4XJ1p4E3Y8= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= diff --git a/license_test.go b/integration-tests/license_test.go similarity index 95% rename from license_test.go rename to integration-tests/license_test.go index 84998c54b5205..2613e255cbb1c 100644 --- a/license_test.go +++ b/integration-tests/license_test.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. -package main +package license_test import ( "io/ioutil" @@ -65,11 +65,11 @@ var otherCheck = regexp.MustCompile(`# `) var skip = map[string]bool{ - "pkg/pb/PulsarApi.pb.go": true, + "../pkg/pb/PulsarApi.pb.go": true, } func TestLicense(t *testing.T) { - err := filepath.Walk(".", func(path string, fi os.FileInfo, err error) error { + err := filepath.Walk("../.", func(path string, fi os.FileInfo, err error) error { if skip[path] { return nil }