fix mungedocs unit tests

This commit is contained in:
Mike Danese 2016-12-20 16:30:48 -08:00
parent 161c391f44
commit eb8be5a093
3 changed files with 18 additions and 4 deletions

View File

@ -28,6 +28,11 @@ go_test(
"util_test.go",
"whitespace_test.go",
],
data = [
"mungedocs.go",
":testdata",
"//docs:srcs",
],
library = ":go_default_library",
tags = ["automanaged"],
deps = ["//vendor:github.com/stretchr/testify/assert"],
@ -50,3 +55,8 @@ go_library(
tags = ["automanaged"],
deps = ["//vendor:github.com/spf13/pflag"],
)
filegroup(
name = "testdata",
srcs = glob(["testdata/*"]),
)

View File

@ -45,10 +45,6 @@ func TestGoodLinks(t *testing.T) {
expected string
}{
{"", ""},
{"[README](https://github.com/kubernetes/kubernetes/tree/master/README.md)",
"[README](README.md)"},
{"[README](../README.md)",
"[README](README.md)"},
{"[README](https://lwn.net)",
"[README](https://lwn.net)"},
// _ to -

8
docs/BUILD Normal file
View File

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
filegroup(
name = "srcs",
srcs = glob(["**/*"]),
)