aboutsummaryrefslogtreecommitdiff
path: root/internal/testing/sample/sample.go
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2020-10-27 12:08:06 -0400
committerJonathan Amsterdam <jba@google.com>2020-10-27 18:11:10 +0000
commitd630f3afed1510af57cf2a5bcfc9475686fd26df (patch)
treece4ba488ca207bb43899ed71cbb61af0df39bed8 /internal/testing/sample/sample.go
parent2d9cd52bb4a54aa48bcd529c5823f11d3fed718d (diff)
downloadgo-x-pkgsite-d630f3afed1510af57cf2a5bcfc9475686fd26df.tar.xz
internal/frontend: use definitions from internal/testing/sample
Change-Id: Ic435c89ae39d03bec0bb3303c80761fa873f5747 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/265558 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'internal/testing/sample/sample.go')
-rw-r--r--internal/testing/sample/sample.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/testing/sample/sample.go b/internal/testing/sample/sample.go
index ca88902b..a92b6844 100644
--- a/internal/testing/sample/sample.go
+++ b/internal/testing/sample/sample.go
@@ -31,13 +31,15 @@ var (
RepositoryURL = "https://github.com/valid/module_name"
VersionString = "v1.0.0"
CommitTime = NowTruncated()
+ LicenseType = "MIT"
+ LicenseFilePath = "LICENSE"
LicenseMetadata = []*licenses.Metadata{
{
- Types: []string{"MIT"},
- FilePath: "LICENSE",
+ Types: []string{LicenseType},
+ FilePath: LicenseFilePath,
Coverage: licensecheck.Coverage{
Percent: 100,
- Match: []licensecheck.Match{{Name: "MIT", Type: licensecheck.MIT, Percent: 100}},
+ Match: []licensecheck.Match{{Name: LicenseType, Type: licensecheck.MIT, Percent: 100}},
},
},
}