aboutsummaryrefslogtreecommitdiff
path: root/internal/testing/sample
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2021-11-15 09:18:34 -0500
committerJonathan Amsterdam <jba@google.com>2021-11-15 20:17:11 +0000
commit664ef416968ca8bc699cf240615bbce4bd366f49 (patch)
treefc4e0292c7e56b6ad9a67a0ee36056e978c2b7a9 /internal/testing/sample
parente4128003cbb95f3ff3b5795f5db9524f6a6f77e7 (diff)
downloadgo-x-pkgsite-664ef416968ca8bc699cf240615bbce4bd366f49.tar.xz
internal/licenses: remove Metadata.OldCoverage
We don't need the OldCoverage field anymore. All DBs have only the new Coverage information. Change-Id: Ib2d8e0cdacdc2f7b6514a8a5310d6905be15136c Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/363954 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
Diffstat (limited to 'internal/testing/sample')
-rw-r--r--internal/testing/sample/sample.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/testing/sample/sample.go b/internal/testing/sample/sample.go
index 72d5c128..c2fcf9dd 100644
--- a/internal/testing/sample/sample.go
+++ b/internal/testing/sample/sample.go
@@ -20,7 +20,6 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/licensecheck"
- oldlicensecheck "github.com/google/licensecheck/old"
"golang.org/x/pkgsite/internal"
"golang.org/x/pkgsite/internal/godoc"
"golang.org/x/pkgsite/internal/licenses"
@@ -391,9 +390,9 @@ func LicenseMetadata() []*licenses.Metadata {
{
Types: []string{LicenseType},
FilePath: LicenseFilePath,
- OldCoverage: oldlicensecheck.Coverage{
+ Coverage: licensecheck.Coverage{
Percent: 100,
- Match: []oldlicensecheck.Match{{Name: LicenseType, Type: oldlicensecheck.MIT, Percent: 100}},
+ Match: []licensecheck.Match{{ID: "MIT", Type: 0}},
},
},
}