17 lines
281 B
Go
17 lines
281 B
Go
|
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())
|
||
|
}
|