mirror of
https://github.com/libp2p/go-eventbus.git
synced 2025-03-14 10:30:05 +08:00
14 lines
141 B
Go
14 lines
141 B
Go
package event
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
type EventA struct{}
|
|
|
|
func TestSimple(t *testing.T) {
|
|
bus := NewBus()
|
|
_, _ = bus.Sub(new(EventA))
|
|
|
|
}
|