26 lines
541 B
Go
26 lines
541 B
Go
package event
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
/**
|
|
* @Author linya.jj
|
|
* @Date 2023/4/27 09:25
|
|
*/
|
|
|
|
func TestEventHandlerDoNothing(t *testing.T) {
|
|
status, err := EventHandlerDoNothing(context.Background(), nil, []byte(""))
|
|
assert.Nil(t, err)
|
|
assert.Equal(t, EventProcessStatusKSuccess, status)
|
|
}
|
|
|
|
func TestEventHandlerSaveToRDS(t *testing.T) {
|
|
status, err := EventHandlerSaveToRDS(context.Background(), nil, []byte(""))
|
|
assert.Nil(t, err)
|
|
assert.Equal(t, EventProcessStatusKSuccess, status)
|
|
}
|