mirror of
https://github.com/fluffle/goirc
synced 2025-07-02 11:33:54 +00:00
Run gofmt over code, it's been a while.
This commit is contained in:
parent
18c20080e8
commit
c400a2141a
7 changed files with 53 additions and 54 deletions
|
@ -10,7 +10,7 @@ import (
|
|||
func TestSimpleDispatch(t *testing.T) {
|
||||
r := NewRegistry()
|
||||
out := make(chan bool)
|
||||
|
||||
|
||||
h := NewHandler(func(ev ...interface{}) {
|
||||
out <- ev[0].(bool)
|
||||
})
|
||||
|
@ -41,7 +41,7 @@ func TestParallelDispatch(t *testing.T) {
|
|||
}
|
||||
|
||||
// create some handlers and send an event to them
|
||||
for _, t := range []int{5,11,2,15,8} {
|
||||
for _, t := range []int{5, 11, 2, 15, 8} {
|
||||
r.AddHandler("send", factory(t))
|
||||
}
|
||||
r.Dispatch("send")
|
||||
|
@ -79,7 +79,7 @@ func TestSerialDispatch(t *testing.T) {
|
|||
}
|
||||
|
||||
// create some handlers and send an event to them
|
||||
for _, t := range []int{5,11,2,15,8} {
|
||||
for _, t := range []int{5, 11, 2, 15, 8} {
|
||||
r.AddHandler("send", factory(t))
|
||||
}
|
||||
r.Dispatch("send")
|
||||
|
@ -101,4 +101,3 @@ func TestSerialDispatch(t *testing.T) {
|
|||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue