mirror of
https://github.com/fluffle/goirc
synced 2025-05-15 12:03:21 +00:00
Further comment tidy and code reorg.
This commit is contained in:
parent
d6cb0bb026
commit
5f2665dde8
3 changed files with 20 additions and 8 deletions
|
@ -17,6 +17,7 @@ type testState struct {
|
|||
c *Conn
|
||||
}
|
||||
|
||||
// NOTE: including a second argument at all prevents calling c.postConnect()
|
||||
func setUp(t *testing.T, start ...bool) (*Conn, *testState) {
|
||||
ctrl := gomock.NewController(t)
|
||||
st := state.NewMockTracker(ctrl)
|
||||
|
@ -56,7 +57,7 @@ func TestEOF(t *testing.T) {
|
|||
|
||||
// Set up a handler to detect whether disconnected handlers are called
|
||||
dcon := false
|
||||
c.HandleFunc("disconnected", func(conn *Conn, line *Line) {
|
||||
c.HandleFunc(DISCONNECTED, func(conn *Conn, line *Line) {
|
||||
dcon = true
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue