aboutsummaryrefslogtreecommitdiff
path: root/internal/testing/sample
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2021-02-04 17:03:35 -0500
committerJonathan Amsterdam <jba@google.com>2021-02-05 17:58:23 +0000
commit5289fe63bf336e52e579b0e30c4616bcfe3a31ad (patch)
treed5625057960ae781b386b61fff575693809b9784 /internal/testing/sample
parent2d69953aadef149a323c39790271b2d124677756 (diff)
downloadgo-x-pkgsite-5289fe63bf336e52e579b0e30c4616bcfe3a31ad.tar.xz
internal: support "all" in BuildContext
Handle BuildContexts where one or more parts are "all". These should only occur when searching for a matching Documentation, not sorting. (Because we sort only when there is more than one Documentation, and if there is an all/all Documentation then there aren't any others.) Change-Id: Ibe28bd78fa278c042d1459f7046bfe8eef49bbac Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/289679 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'internal/testing/sample')
-rw-r--r--internal/testing/sample/sample.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/testing/sample/sample.go b/internal/testing/sample/sample.go
index 4df0df6e..72144f89 100644
--- a/internal/testing/sample/sample.go
+++ b/internal/testing/sample/sample.go
@@ -62,8 +62,8 @@ var (
Synopsis = "This is a package synopsis"
ReadmeFilePath = "README.md"
ReadmeContents = "readme"
- GOOS = "linux"
- GOARCH = "amd64"
+ GOOS = internal.All
+ GOARCH = internal.All
)
// LicenseCmpOpts are options to use when comparing licenses with the cmp package.