2023-09-20 14:57:12 -06:00
|
|
|
package event_bus
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestEventBusInterface(t *testing.T) {
|
|
|
|
t.Parallel()
|
|
|
|
|
|
|
|
eventBusInstance := new(eventBus)
|
|
|
|
|
|
|
|
//assert
|
|
|
|
require.Implements(t, (*Interface)(nil), eventBusInstance, "should implement the eventBus interface")
|
|
|
|
}
|
2023-09-20 15:13:57 -06:00
|
|
|
|
|
|
|
func TestNoopEventBusInterface(t *testing.T) {
|
|
|
|
t.Parallel()
|
|
|
|
|
|
|
|
noopEventBusInstance := new(noopEventBus)
|
|
|
|
|
|
|
|
//assert
|
|
|
|
require.Implements(t, (*Interface)(nil), noopEventBusInstance, "should implement the eventBus interface")
|
|
|
|
}
|