Commit eb8be5a0 authored by Mike Danese's avatar Mike Danese

fix mungedocs unit tests

parent 161c391f
...@@ -28,6 +28,11 @@ go_test( ...@@ -28,6 +28,11 @@ go_test(
"util_test.go", "util_test.go",
"whitespace_test.go", "whitespace_test.go",
], ],
data = [
"mungedocs.go",
":testdata",
"//docs:srcs",
],
library = ":go_default_library", library = ":go_default_library",
tags = ["automanaged"], tags = ["automanaged"],
deps = ["//vendor:github.com/stretchr/testify/assert"], deps = ["//vendor:github.com/stretchr/testify/assert"],
...@@ -50,3 +55,8 @@ go_library( ...@@ -50,3 +55,8 @@ go_library(
tags = ["automanaged"], tags = ["automanaged"],
deps = ["//vendor:github.com/spf13/pflag"], deps = ["//vendor:github.com/spf13/pflag"],
) )
filegroup(
name = "testdata",
srcs = glob(["testdata/*"]),
)
...@@ -45,10 +45,6 @@ func TestGoodLinks(t *testing.T) { ...@@ -45,10 +45,6 @@ func TestGoodLinks(t *testing.T) {
expected string 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)",
"[README](https://lwn.net)"}, "[README](https://lwn.net)"},
// _ to - // _ to -
......
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
filegroup(
name = "srcs",
srcs = glob(["**/*"]),
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment