aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/insert_module_test.go
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/postgres/insert_module_test.go
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/postgres/insert_module_test.go')
-rw-r--r--internal/postgres/insert_module_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/postgres/insert_module_test.go b/internal/postgres/insert_module_test.go
index d415dcd5..5e9d8efc 100644
--- a/internal/postgres/insert_module_test.go
+++ b/internal/postgres/insert_module_test.go
@@ -121,7 +121,7 @@ func checkModule(ctx context.Context, t *testing.T, db *DB, want *internal.Modul
wantu.Subdirectories = subdirectories
opts := cmp.Options{
cmpopts.EquateEmpty(),
- cmpopts.IgnoreFields(licenses.Metadata{}, "Coverage", "OldCoverage"),
+ cmpopts.IgnoreFields(licenses.Metadata{}, "Coverage"),
cmp.AllowUnexported(source.Info{}, safehtml.HTML{}),
}
if diff := cmp.Diff(wantu, got, opts); diff != "" {