mirror of https://github.com/fluffle/goirc
13 lines
241 B
Go
13 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
|
||
|
}
|