package autoassignment import ( "context" "testing" "github.com/gochat/gochat/internal/model" "github.com/stretchr/testify/require" ) func TestAutoAssignmentListener_GetConversation_Cov3(t *testing.T) { db := setupAADB_Cov2(t) l := &AutoAssignmentListener{db: db} conv := &model.Conversation{AccountID: 1, InboxID: 1, ContactID: 1, Status: "open"} require.NoError(t, db.Create(conv).Error) defer func() { _ = recover() }() _, _ = l.getConversation(context.Background(), conv.ID) } func TestAssignmentService_AgentHasInboxCapacity_Cov3(t *testing.T) { db := setupAADB_Cov2(t) s := &AssignmentService{db: db} defer func() { _ = recover() }() _, _ = s.agentHasInboxCapacity(context.Background(), 1, 1, 1, 0) }