internal/frontend: remove testPackage.doc

This field was set in test cases, but never inserted into the
DB or compared.

Change-Id: Ia25d8b8b91d4abcd18e9a8532d80ae0c4c77a45b
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/289236
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
This commit is contained in:
Jonathan Amsterdam 2021-02-03 14:31:27 -05:00
Родитель 6ddc1f3f3b
Коммит 84a9264bad
2 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -24,7 +24,6 @@ func TestLatestMinorVersion(t *testing.T) {
packages: []testPackage{
{
suffix: "bar",
doc: sample.DocumentationHTML.String(),
readmeContents: sample.ReadmeContents,
readmeFilePath: sample.ReadmeFilePath,
},

Просмотреть файл

@ -62,7 +62,6 @@ type testModule struct {
type testPackage struct {
name string
suffix string
doc string
readmeContents string
readmeFilePath string
}
@ -108,13 +107,11 @@ var testModules = []testModule{
packages: []testPackage{
{
suffix: "foo",
doc: sample.DocumentationHTML.String(),
readmeContents: sample.ReadmeContents,
readmeFilePath: sample.ReadmeFilePath,
},
{
suffix: "foo/directory/hello",
doc: `<a href="/pkg/io#Writer">io.Writer</a>`,
},
},
},
@ -126,23 +123,19 @@ var testModules = []testModule{
packages: []testPackage{
{
suffix: "bar",
doc: sample.DocumentationHTML.String(),
readmeContents: sample.ReadmeContents,
readmeFilePath: sample.ReadmeFilePath,
},
{
suffix: "bar/directory/hello",
doc: `<a href="/pkg/io#Writer">io.Writer</a>`,
},
{
suffix: "buz",
doc: sample.DocumentationHTML.String(),
readmeContents: sample.ReadmeContents,
readmeFilePath: sample.ReadmeFilePath,
},
{
suffix: "buz/directory/hello",
doc: `<a href="/pkg/io#Writer">io.Writer</a>`,
},
},
},
@ -154,13 +147,11 @@ var testModules = []testModule{
packages: []testPackage{
{
suffix: "bar",
doc: sample.DocumentationHTML.String(),
readmeContents: sample.ReadmeContents,
readmeFilePath: sample.ReadmeFilePath,
},
{
suffix: "bar/directory/hello",
doc: `<a href="/pkg/io#Writer">io.Writer</a>`,
},
},
},
@ -229,7 +220,6 @@ var testModules = []testModule{
// UnitMeta (right sidebar) links will be from the godoc and
// module readme.
suffix: "no_readme",
doc: sample.DocumentationHTML.String(),
},
{
// This package has a readme as well as godoc links, so the
@ -237,7 +227,6 @@ var testModules = []testModule{
suffix: "has_readme",
readmeFilePath: "has_readme/README.md", // required
readmeContents: packageLinksReadme,
doc: sample.DocumentationHTML.String(),
},
},
},