1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-05-14 11:33:20 +00:00

Test all client commands.

This commit is contained in:
Alex Bramley 2011-08-21 13:38:51 +01:00
parent 425557e8bd
commit 820f0cb14b
2 changed files with 89 additions and 0 deletions

12
client/connection_test.go Normal file
View file

@ -0,0 +1,12 @@
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
}