mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-07 14:21:37 +00:00
fix: remove unused createTestCert function in tlsprobe tests
golangci-lint (unused linter) flagged createTestCert as dead code — only createTestCertWithKey is called by the actual tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -118,12 +118,6 @@ func TestCertKeyInfo_ECDSA(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// Helper: createTestCert creates a self-signed test certificate with RSA key.
|
||||
func createTestCert(t *testing.T, cn string) *x509.Certificate {
|
||||
cert, _ := createTestCertWithKey(t, cn, "rsa")
|
||||
return cert
|
||||
}
|
||||
|
||||
// Helper: createTestCertWithKey creates a test certificate with specified key type.
|
||||
func createTestCertWithKey(t *testing.T, cn, keyType string) (*x509.Certificate, interface{}) {
|
||||
var privKey interface{}
|
||||
|
||||
Reference in New Issue
Block a user