use mockery for mock code generation

This commit is contained in:
6543 2023-02-13 22:42:32 +01:00
parent 9a3d1c36dc
commit 34cb9fca4f
No known key found for this signature in database
GPG key ID: B8BE6D610E61C862
3 changed files with 113 additions and 35 deletions

View file

@ -8,6 +8,9 @@ import (
"github.com/rs/zerolog/log"
)
//go:generate go install github.com/vektra/mockery/v2@latest
//go:generate mockery --name CertDB --output . --filename mock.go --inpackage --case underscore
type CertDB interface {
Close() error
Put(name string, cert *certificate.Resource) error