internal/testing/pagecheck: rename packageURLPath to unitURLPath

packageURLPath is renamted to unitURLPath, since it returns the url path
for all unit pages.

Change-Id: I9b85d5eda8a5a9276b2b7b2ac370b8159405cce1
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/277694
Trust: Julie Qiu <julie@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
diff --git a/internal/testing/pagecheck/pagecheck.go b/internal/testing/pagecheck/pagecheck.go
index 9dc5fc0..671ba2c 100644
--- a/internal/testing/pagecheck/pagecheck.go
+++ b/internal/testing/pagecheck/pagecheck.go
@@ -47,7 +47,7 @@
 
 // UnitHeader checks a main page header for a unit.
 func UnitHeader(p *Page, versionedURL bool, isPackage bool) htmlcheck.Checker {
-	urlPath := packageURLPath(p, versionedURL)
+	urlPath := unitURLPath(p, versionedURL)
 	curBreadcrumb := path.Base(p.Suffix)
 	if p.Suffix == "" {
 		curBreadcrumb = p.ModulePath
@@ -182,7 +182,7 @@
 		in("a", href(p.LatestLink), exactText("Go to latest")))
 }
 
-func packageURLPath(p *Page, versioned bool) string {
+func unitURLPath(p *Page, versioned bool) string {
 	v := ""
 	if versioned {
 		v = "@" + p.Version