diff options
| author | Channing Kimble-Brown <channing@golang.org> | 2019-02-25 14:06:09 -0500 |
|---|---|---|
| committer | Julie Qiu <julie@golang.org> | 2020-03-27 16:46:33 -0400 |
| commit | db97fa3db8fc8b45b509ec74f08142bb884fce8e (patch) | |
| tree | 982b6721dce2ff2c79e13791c08b31d7933af4c0 /internal/postgres/postgres_test.go | |
| parent | 10286b9fa61aa6ff6a00e88ed455d25a9473622d (diff) | |
| download | go-x-pkgsite-db97fa3db8fc8b45b509ec74f08142bb884fce8e.tar.xz | |
internal, internal/postgres: merge license and readme structs into version
The ReadMe and License structs in internal/discovery.go are being merged
into the Version struct to reflect the corresponding tables being
merged into the versions table in the database.
Change-Id: I78a2c05733bb935140c9c4c86237e673921f5b36
Reviewed-on: https://team-review.git.corp.google.com/c/422452
Reviewed-by: Julie Qiu <julieqiu@google.com>
Diffstat (limited to 'internal/postgres/postgres_test.go')
| -rw-r--r-- | internal/postgres/postgres_test.go | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/internal/postgres/postgres_test.go b/internal/postgres/postgres_test.go index 11d0d24b..67b3c0b8 100644 --- a/internal/postgres/postgres_test.go +++ b/internal/postgres/postgres_test.go @@ -52,15 +52,16 @@ func TestPostgres_ReadAndWriteVersion(t *testing.T) { } var testVersion = &internal.Version{ - Module: module, - Version: "v1.0.0", - Synopsis: "This is a synopsis", - License: &internal.License{}, - ReadMe: &internal.ReadMe{}, - CommitTime: time.Now(), - Packages: []*internal.Package{}, - Dependencies: []*internal.Version{}, - Dependents: []*internal.Version{}, + Module: module, + Version: "v1.0.0", + Synopsis: "This is a synopsis", + LicenseName: "licensename", + LicenseContents: "licensecontents", + ReadMe: "readme", + CommitTime: time.Now(), + Packages: []*internal.Package{}, + Dependencies: []*internal.Version{}, + Dependents: []*internal.Version{}, } testCases := []struct { |
