aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/insert_module_test.go
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2021-02-22 18:27:15 -0500
committerJonathan Amsterdam <jba@google.com>2021-02-23 12:04:16 +0000
commit890225953544941cd7e20924d61a452b1b5f2655 (patch)
treebd9877750ebbb31a8be2063a52a565cf24e60a05 /internal/postgres/insert_module_test.go
parent7aaac6e2a709b0075e0606827b1cc9ce25e6ff33 (diff)
downloadgo-x-pkgsite-890225953544941cd7e20924d61a452b1b5f2655.tar.xz
internal/discovery: add retraction fields
Add fields to hold retraction information. Also, switch deprecation to a pair of bool and string rather than a pointer, because it's clearer. For golang/go#44437 Change-Id: Ica771c5ec8e5c0abeec16f9d998339ef60b401a5 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/295195 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'internal/postgres/insert_module_test.go')
-rw-r--r--internal/postgres/insert_module_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/postgres/insert_module_test.go b/internal/postgres/insert_module_test.go
index 44997549..e3b2ad82 100644
--- a/internal/postgres/insert_module_test.go
+++ b/internal/postgres/insert_module_test.go
@@ -69,8 +69,8 @@ func TestInsertModule(t *testing.T) {
name: "deprecated",
module: func() *internal.Module {
m := sample.DefaultModule()
- c := "use v2"
- m.DeprecatedComment = &c
+ m.Deprecated = true
+ m.DeprecationComment = "use v2"
return m
}(),
},