internal/testing/pagecheck: rename PackageURLFormat to UnitURLFormat

Change-Id: Ib622e3372ed55814162000ea92d8770625ecfe7d
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/277695
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
diff --git a/internal/frontend/server_test.go b/internal/frontend/server_test.go
index 5f22c09..bc7a692 100644
--- a/internal/frontend/server_test.go
+++ b/internal/frontend/server_test.go
@@ -329,7 +329,7 @@
 		LatestMajorVersionLink: "/" + sample.ModulePath + "/" + sample.Suffix,
 		LicenseType:            sample.LicenseType,
 		LicenseFilePath:        sample.LicenseFilePath,
-		PackageURLFormat:       "/" + sample.ModulePath + "%s/" + sample.Suffix,
+		UnitURLFormat:          "/" + sample.ModulePath + "%s/" + sample.Suffix,
 		ModuleURL:              "/" + sample.ModulePath,
 	}
 
@@ -346,7 +346,7 @@
 		LatestMajorVersionLink: "/github.com/v2major/module_name/v2/bar",
 		LicenseType:            sample.LicenseType,
 		LicenseFilePath:        sample.LicenseFilePath,
-		PackageURLFormat:       "/github.com/v2major/module_name%s/bar",
+		UnitURLFormat:          "/github.com/v2major/module_name%s/bar",
 		ModuleURL:              "/github.com/v2major/module_name",
 	}
 
@@ -357,7 +357,7 @@
 	v2pkgV1Buz.IsLatestMinor = true
 	v2pkgV1Buz.LatestLink = "/github.com/v2major/module_name/buz"
 	v2pkgV1Buz.LatestMajorVersionLink = "/github.com/v2major/module_name/v2"
-	v2pkgV1Buz.PackageURLFormat = "/github.com/v2major/module_name%s/buz"
+	v2pkgV1Buz.UnitURLFormat = "/github.com/v2major/module_name%s/buz"
 
 	v2pkgV200 := &pagecheck.Page{
 		Title:                  "bar",
@@ -372,7 +372,7 @@
 		LatestMajorVersionLink: "/github.com/v2major/module_name/v2/bar",
 		LicenseType:            sample.LicenseType,
 		LicenseFilePath:        sample.LicenseFilePath,
-		PackageURLFormat:       "/github.com/v2major/module_name/v2%s/bar",
+		UnitURLFormat:          "/github.com/v2major/module_name/v2%s/bar",
 		ModuleURL:              "/github.com/v2major/module_name/v2",
 	}
 
@@ -402,7 +402,7 @@
 		LatestMajorVersionLink: "/github.com/incompatible/dir/inc",
 		LicenseType:            "MIT",
 		LicenseFilePath:        "LICENSE",
-		PackageURLFormat:       "/github.com/incompatible%s/dir/inc",
+		UnitURLFormat:          "/github.com/incompatible%s/dir/inc",
 		ModuleURL:              "/github.com/incompatible",
 	}
 
@@ -417,7 +417,7 @@
 		LatestLink:             "/github.com/non_redistributable/bar",
 		LatestMajorVersionLink: "/github.com/non_redistributable/bar",
 		LicenseType:            "",
-		PackageURLFormat:       "/github.com/non_redistributable%s/bar",
+		UnitURLFormat:          "/github.com/non_redistributable%s/bar",
 		ModuleURL:              "/github.com/non_redistributable",
 	}
 
@@ -432,7 +432,7 @@
 		IsLatestMinor:          true,
 		IsLatestMajor:          true,
 		ModuleURL:              "/" + sample.ModulePath,
-		PackageURLFormat:       "/" + sample.ModulePath + "%s/foo/directory",
+		UnitURLFormat:          "/" + sample.ModulePath + "%s/foo/directory",
 		LatestMajorVersionLink: "/github.com/valid/module_name/foo/directory",
 		LatestLink:             "/github.com/valid/module_name/foo/directory",
 	}
@@ -469,7 +469,7 @@
 		LicenseFilePath:        "LICENSE",
 		IsLatestMinor:          true,
 		IsLatestMajor:          true,
-		PackageURLFormat:       "/github.com/pseudo%s/dir",
+		UnitURLFormat:          "/github.com/pseudo%s/dir",
 	}
 
 	dirCmd := &pagecheck.Page{
@@ -484,7 +484,7 @@
 		IsLatestMinor:          true,
 		ModuleURL:              "/std",
 		LatestLink:             "/cmd",
-		PackageURLFormat:       "/cmd%s",
+		UnitURLFormat:          "/cmd%s",
 		LatestMajorVersionLink: "/cmd",
 	}
 
@@ -496,7 +496,7 @@
 		LicenseType:            sample.LicenseType,
 		LicenseFilePath:        sample.LicenseFilePath,
 		ModuleURL:              "/net/http",
-		PackageURLFormat:       "/net/http%s",
+		UnitURLFormat:          "/net/http%s",
 		IsLatestMinor:          true,
 		IsLatestMajor:          true,
 		LatestLink:             "/net/http",
diff --git a/internal/testing/pagecheck/pagecheck.go b/internal/testing/pagecheck/pagecheck.go
index 671ba2c..2507884 100644
--- a/internal/testing/pagecheck/pagecheck.go
+++ b/internal/testing/pagecheck/pagecheck.go
@@ -32,7 +32,7 @@
 	// link to the latest major version for this package, or if the package does not exist
 	// link to the latest major version
 	LatestMajorVersionLink string
-	PackageURLFormat       string // the relative package URL, with one %s for "@version"; also used for dirs
+	UnitURLFormat          string // the relative unit URL, with one %s for "@version"
 	ModuleURL              string // the relative module URL
 	CommitTime             string
 }
@@ -187,5 +187,5 @@
 	if versioned {
 		v = "@" + p.Version
 	}
-	return fmt.Sprintf(p.PackageURLFormat, v)
+	return fmt.Sprintf(p.UnitURLFormat, v)
 }