diff options
| author | Julie Qiu <julie@golang.org> | 2020-08-31 23:53:49 -0400 |
|---|---|---|
| committer | Julie Qiu <julie@golang.org> | 2020-09-01 14:48:33 +0000 |
| commit | aa55b12cd0c3639a5371bbfca1ff6882fc1bd64c (patch) | |
| tree | b7042d3a47137cae06341ed928b00d8a7dcfa4a8 /internal/postgres/insert_module_test.go | |
| parent | f773eeaf37917464ad024d1e966254e091e390f1 (diff) | |
| download | go-x-pkgsite-aa55b12cd0c3639a5371bbfca1ff6882fc1bd64c.tar.xz | |
internal: rename PathInfo to UnitMeta
PathInfo is renamed to UnitMeta, and GetPathInfo is renamed to
GetUnitMeta.
For golang/go#39629
Change-Id: Ia91cf7d2752988653efcc0e46a4d6b8b63017ef3
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/251978
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'internal/postgres/insert_module_test.go')
| -rw-r--r-- | internal/postgres/insert_module_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/postgres/insert_module_test.go b/internal/postgres/insert_module_test.go index 2b857915..acaeaee4 100644 --- a/internal/postgres/insert_module_test.go +++ b/internal/postgres/insert_module_test.go @@ -110,7 +110,7 @@ func checkModule(ctx context.Context, t *testing.T, want *internal.Module) { } for _, dir := range want.Units { - got, err := testDB.GetUnit(ctx, &dir.PathInfo, internal.AllFields) + got, err := testDB.GetUnit(ctx, &dir.UnitMeta, internal.AllFields) if err != nil { t.Fatal(err) } @@ -182,7 +182,7 @@ func TestInsertModuleLicenseCheck(t *testing.T) { checkHasRedistData(mi.LegacyReadmeContents, pkg.DocumentationHTML, bypass) // New model - pathInfo := &internal.PathInfo{ + pathInfo := &internal.UnitMeta{ Path: mod.ModulePath, ModulePath: mod.ModulePath, Version: mod.Version, |
