feat: add tests
This commit is contained in:
18
internal/cert/client_cert_test.go
Normal file
18
internal/cert/client_cert_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package cert
|
||||
|
||||
import (
|
||||
"crypto/x509"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
"gitlab.com/urkob/go-cert-gen/pkg/client"
|
||||
)
|
||||
|
||||
func Test_newClientCert(t *testing.T) {
|
||||
var config *client.ClientCertConfig
|
||||
var rootCA *x509.Certificate
|
||||
var rootKeyPEM []byte
|
||||
|
||||
_, _, err := newClientCert(config, rootCA, rootKeyPEM)
|
||||
require.NoError(t, err)
|
||||
}
|
||||
Reference in New Issue
Block a user