This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
|
package client
|
|
|
|
import (
|
|
"crypto/tls"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestTLS(t *testing.T) {
|
|
assert := assert.New(t)
|
|
client := &Client{}
|
|
assert.Nil(client.TLSConnectionState())
|
|
client.conn = &tls.Conn{}
|
|
assert.NotNil(client.TLSConnectionState())
|
|
}
|