internal/client: fix bug in latestFixedVersion

Fix bug in latestFixedVersion and add tests. This bug only affected the
in memory client, which was used for testing.

Change-Id: I56fd4a6ad90de9cb78e3eba4d3f87fdad79e7eda
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/486806
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2 files changed
tree: 0947dcb8c117b7ad8a1134dd0ba4b2b105a055c6
  1. cmd/
  2. devtools/
  3. doc/
  4. internal/
  5. .gitignore
  6. all_test.go
  7. checks.bash
  8. CONTRIBUTING.md
  9. go.mod
  10. go.sum
  11. LICENSE
  12. PATENTS
  13. README.md
  14. tools_test.go
README.md

Go Vulnerability Management

Go Reference

This repository contains packages for accessing and analyzing data from the Go Vulnerability Database.

See https://go.dev/security/vuln for more information about the Go vulnerability management system.

Privacy Policy

The privacy policy for govulncheck can be found at https://vuln.go.dev/privacy.

License

Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.

Database entries available at https://vuln.go.dev are distributed under the terms of the CC-BY 4.0 license.