sum7
/
yaja
Archived
1
0
Fork 0
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.
yaja/client/tls_test.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())
}