66 lines
1.6 KiB
Go
66 lines
1.6 KiB
Go
package channel
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestContactResolutionStage_Name_Cov3(t *testing.T) {
|
|
s := &ContactResolutionStage{}
|
|
assert.Equal(t, "contact_resolution", s.Name())
|
|
}
|
|
|
|
func TestMessagePersistenceStage_Name_Cov3(t *testing.T) {
|
|
s := &MessagePersistenceStage{}
|
|
assert.Equal(t, "message_persistence", s.Name())
|
|
}
|
|
|
|
func TestContactResolutionStage_Process_Nil_Cov3(t *testing.T) {
|
|
s := &ContactResolutionStage{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = s.Process(nil, &PipelineContext{})
|
|
}
|
|
|
|
func TestMessagePersistenceStage_Process_Nil_Cov3(t *testing.T) {
|
|
s := &MessagePersistenceStage{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = s.Process(nil, &PipelineContext{})
|
|
}
|
|
|
|
func TestValidateStage_Name_Cov3(t *testing.T) {
|
|
s := &ValidateStage{}
|
|
defer func() { _ = recover() }()
|
|
_ = s.Name()
|
|
}
|
|
|
|
func TestConversationResolutionStage_Name_Cov3(t *testing.T) {
|
|
s := &ConversationResolutionStage{}
|
|
defer func() { _ = recover() }()
|
|
_ = s.Name()
|
|
}
|
|
|
|
func TestEventDispatchStage_Name_Cov3(t *testing.T) {
|
|
s := &EventDispatchStage{}
|
|
defer func() { _ = recover() }()
|
|
_ = s.Name()
|
|
}
|
|
|
|
func TestValidateStage_Process_Cov3(t *testing.T) {
|
|
s := &ValidateStage{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = s.Process(nil, &PipelineContext{})
|
|
}
|
|
|
|
func TestConversationResolutionStage_Process_Cov3(t *testing.T) {
|
|
s := &ConversationResolutionStage{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = s.Process(nil, &PipelineContext{})
|
|
}
|
|
|
|
func TestEventDispatchStage_Process_Cov3(t *testing.T) {
|
|
s := &EventDispatchStage{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = s.Process(nil, &PipelineContext{})
|
|
}
|