* H-300: wire Captain Skills into Web runtime * H-300: enforce effective model and conservative skill budget * H-300: fix CI gosec step * ci: extend golangci-lint timeout * fix lint findings across backend * fix(push): resolve delivery protocol blockers * test(repository): close SQLite test databases * test(repository): reuse SQLite schema per package * H-307: restore backend Go cache in CI * H-307: prefetch modules before cold lint * H-307: resolve govulncheck security gate * H-307: build lint with patched Go toolchain * H-307: clear remaining security scan findings --------- Co-authored-by: Rogee <rogee@ipao.vip>
67 lines
1.7 KiB
Go
67 lines
1.7 KiB
Go
package channel
|
|
|
|
import (
|
|
"context"
|
|
"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(context.Background(), &PipelineContext{})
|
|
}
|
|
|
|
func TestMessagePersistenceStage_Process_Nil_Cov3(t *testing.T) {
|
|
s := &MessagePersistenceStage{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = s.Process(context.Background(), &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(context.Background(), &PipelineContext{})
|
|
}
|
|
|
|
func TestConversationResolutionStage_Process_Cov3(t *testing.T) {
|
|
s := &ConversationResolutionStage{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = s.Process(context.Background(), &PipelineContext{})
|
|
}
|
|
|
|
func TestEventDispatchStage_Process_Cov3(t *testing.T) {
|
|
s := &EventDispatchStage{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = s.Process(context.Background(), &PipelineContext{})
|
|
}
|