Unreviewed changes
5 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: internal/tests/api/api_test.go
Insertions: 3, Deletions: 0.
@@ -106,6 +106,8 @@
})
}
+// TODO(jba): add to the set of modules until all tests pass.
+// Then call once at the top of TestAPI.
func insertModules(t *testing.T, ds internal.TestingDataSource) {
const (
pkgPath = "example.com/a/b"
@@ -233,6 +235,7 @@
func testServePackage(t *testing.T, ds internal.TestingDataSource) {
insertModules(t, ds)
+ // TODO(jba): call insertModules in other tests.
for _, test := range []struct {
name string
```
Change information
Commit message:
internal/tests/api: fix deprecation test, simplify
Fix the test that shows that we ignore deprecated modules.
Previously, this test always used the fake data source, even for the
DB. In fixing it, we discovered that the DB needs a go.mod file to
determine deprecation.
We discovered this while cleaning up tests, moving module insertion
to a separate function. This change is still here because it would
be challenging to split the two at this point.
Change-Id: I91be5d728d9c7dd827341f6c3ac56839c234f39a
Files:
- M internal/datasource.go
- M internal/postgres/test_helper.go
- M internal/testing/fakedatasource/fakedatasource.go
- M internal/testing/sample/sample.go
- M internal/tests/api/api_test.go
Change size: L
Delta: 5 files changed, 136 insertions(+), 138 deletions(-)
Branch: refs/heads/master