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:
parent
425557e8bd
commit
820f0cb14b
2 changed files with 89 additions and 0 deletions
12
client/connection_test.go
Normal file
12
client/connection_test.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue