1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-06-30 18:43:55 +00:00
goirc/client/connection_test.go
2011-08-21 13:38:51 +01:00

12 lines
241 B
Go

package client
import "testing"
func setUp(t *testing.T) (*mockNetConn, *Conn) {
c := New("test", "test", "Testing IRC")
m := MockNetConn(t)
c.sock = m
c.Flood = true // Tests can take a while otherwise
c.postConnect()
return m, c
}