func TestNewClient(t *testing.T) {
conn := NewTestingConn()
sink := make(chan ClientEvent)
- client := NewClient("foohost", conn)
+ host := "foohost"
+ client := NewClient(&host, conn)
go client.Processor(sink)
event := <-sink
// Test replies formatting
func TestClientReplies(t *testing.T) {
conn := NewTestingConn()
- client := NewClient("foohost", conn)
+ host := "foohost"
+ client := NewClient(&host, conn)
client.nickname = "мойник"
client.Reply("hello")