Граф коммитов

2 Коммитов

Автор SHA1 Сообщение Дата
Tatiana Bradley d10c878bff internal/proxy: use latest instead of list to test existence
Change-Id: I144dc8b0a9b32620172b48a92da5443ac65911b4
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/594898
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-28 15:27:33 +00:00
Tatiana Bradley a5e41834b9 cmd/vulnreport: add test framework for vulnreport
Adds a test framework that allows tests to inject fake/mock
dependencies into the vulnreport commands and record the expected
output of commands.

Some subcommand tests are left as TODOs, as they require additional
fake/mock dependencies that haven't been implemented yet.

Change-Id: I25f6085f2297e5b9d916f0927c1111ac2b49bef8
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/590038
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-06-13 15:59:21 +00:00