51 lines
1.5 KiB
Go
51 lines
1.5 KiB
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
// Test widget_service low-coverage functions with nil receiver
|
|
|
|
func TestWidgetService_PublicCreateContact_Nil_Cov40(t *testing.T) {
|
|
s := &WidgetService{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = s.PublicCreateContact(context.Background(), "", PublicContactRequest{})
|
|
}
|
|
|
|
func TestWidgetService_PublicUpdateContact_Nil_Cov40(t *testing.T) {
|
|
s := &WidgetService{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = s.PublicUpdateContact(context.Background(), "", "", PublicContactRequest{})
|
|
}
|
|
|
|
func TestWidgetService_PublicCreateConversation_Nil_Cov40(t *testing.T) {
|
|
s := &WidgetService{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = s.PublicCreateConversation(context.Background(), "", "", PublicConversationRequest{})
|
|
}
|
|
|
|
func TestWidgetService_UpdateMessage_Nil_Cov40(t *testing.T) {
|
|
s := &WidgetService{}
|
|
defer func() { _ = recover() }()
|
|
_, _, _ = s.UpdateMessage(context.Background(), WidgetMessageUpdate{})
|
|
}
|
|
|
|
func TestWidgetService_SendTranscript_Nil_Cov40(t *testing.T) {
|
|
s := &WidgetService{}
|
|
defer func() { _ = recover() }()
|
|
_ = s.SendTranscript(context.Background(), "")
|
|
}
|
|
|
|
func TestWidgetService_AddDyteParticipant_Nil_Cov40(t *testing.T) {
|
|
s := &WidgetService{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = s.AddDyteParticipant(context.Background(), "", "", 0)
|
|
}
|
|
|
|
func TestWidgetService_DeleteContactCustomAttributes_Nil_Cov40(t *testing.T) {
|
|
s := &WidgetService{}
|
|
defer func() { _ = recover() }()
|
|
_, _ = s.DeleteContactCustomAttributes(context.Background(), "", nil)
|
|
}
|