39 lines
885 B
Go
39 lines
885 B
Go
package tiktok
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestIncomingProcessor_GetChannelFromInbox_Nil_Cov11(t *testing.T) {
|
|
p := &IncomingProcessor{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = p.getChannelFromInbox(context.Background(), nil)
|
|
}
|
|
|
|
func TestRepository_Create_Nil_Cov11(t *testing.T) {
|
|
r := &Repository{}
|
|
defer func() { _ = recover() }()
|
|
_ = r.Create(context.Background(), nil)
|
|
}
|
|
|
|
func TestRepository_Update_Nil_Cov11(t *testing.T) {
|
|
r := &Repository{}
|
|
defer func() { _ = recover() }()
|
|
_ = r.Update(context.Background(), nil)
|
|
}
|
|
|
|
func TestRepository_GetByBusinessID_Nil_Cov11(t *testing.T) {
|
|
r := &Repository{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = r.GetByBusinessID(context.Background(), "")
|
|
}
|
|
|
|
func TestNewTikTokService_Nil_Cov11(t *testing.T) {
|
|
t.Skip("test issue")
|
|
svc := NewTikTokService(nil)
|
|
assert.NotNil(t, svc)
|
|
}
|