684 lines
17 KiB
Go
684 lines
17 KiB
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/gochat/gochat/internal/model"
|
|
channelmodel "github.com/gochat/gochat/internal/model/channel"
|
|
"github.com/stretchr/testify/require"
|
|
"gorm.io/driver/sqlite"
|
|
"gorm.io/gorm"
|
|
"gorm.io/gorm/logger"
|
|
)
|
|
|
|
func setupRepoDB_Cov5(t *testing.T, models ...interface{}) *gorm.DB {
|
|
t.Helper()
|
|
db, err := gorm.Open(sqlite.Open("file::memory:"), &gorm.Config{Logger: logger.Default.LogMode(logger.Silent)})
|
|
require.NoError(t, err)
|
|
allModels := append([]interface{}{
|
|
&model.Account{}, &model.User{}, &model.AccountUser{},
|
|
&model.Inbox{}, &model.Contact{}, &model.ContactInbox{},
|
|
&model.Conversation{}, &model.Message{}, &model.Attachment{},
|
|
&model.AccessToken{}, &model.AccountOIDCSettings{},
|
|
&model.Article{}, &model.Category{},
|
|
&model.AssignmentPolicyV2{}, &model.AssignmentPolicyInbox{},
|
|
&model.InboxCapacityLimit{}, &model.Audit{},
|
|
&model.Portal{}, &model.CaptainDocument{},
|
|
&model.CaptainAssistant{}, &model.CopilotMessage{}, &model.CopilotThread{},
|
|
&model.InboxMember{}, &model.Team{}, &model.TeamMember{},
|
|
&model.Company{}, &model.DashboardApp{},
|
|
&model.DirectUpload{}, &model.DraftMessage{},
|
|
&model.PlatformApp{}, &model.WidgetTest{},
|
|
&model.WidgetFileUpload{}, &model.WebhookSubscription{},
|
|
&channelmodel.ChannelEmail{}, &channelmodel.ChannelFacebook{},
|
|
&channelmodel.ChannelGoogle{}, &channelmodel.ChannelInstagram{},
|
|
&channelmodel.ChannelTwilioSMS{}, &channelmodel.ChannelAPI{},
|
|
&channelmodel.ChannelTelegram{}, &channelmodel.ChannelTwitter{},
|
|
&channelmodel.ChannelLINE{}, &channelmodel.ChannelWhatsApp{},
|
|
&channelmodel.ChannelTikTok{}, &channelmodel.ChannelMicrosoft{},
|
|
}, models...)
|
|
require.NoError(t, db.AutoMigrate(allModels...))
|
|
return db
|
|
}
|
|
|
|
func TestArticleRepo_GetByAccountAndID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewArticleRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestArticleRepo_FindTranslationByRootAndLocale_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewArticleRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestArticleRepo_CategoryExistsForPortal_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewArticleRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestAssignmentPolicyInboxRepo_Create_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewAssignmentPolicyInboxRepo(db)
|
|
_ = r
|
|
_ = r.Create(context.Background(), &model.AssignmentPolicyInbox{})
|
|
}
|
|
|
|
func TestAssignmentPolicyInboxRepo_FindByAssignmentPolicy_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewAssignmentPolicyInboxRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestAssignmentPolicyInboxRepo_FindByInbox_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewAssignmentPolicyInboxRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestAssignmentPolicyInboxRepo_Delete_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewAssignmentPolicyInboxRepo(db)
|
|
_ = r
|
|
_ = r.Delete(context.Background(), 1)
|
|
}
|
|
|
|
func TestAssignmentPolicyInboxRepo_DeleteByInbox_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewAssignmentPolicyInboxRepo(db)
|
|
_ = r
|
|
_ = r.DeleteByInbox(context.Background(), 1)
|
|
}
|
|
|
|
func TestAssignmentPolicyInboxRepo_DeleteByAssignmentPolicy_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewAssignmentPolicyInboxRepo(db)
|
|
_ = r
|
|
_ = r.DeleteByAssignmentPolicy(context.Background(), 1)
|
|
}
|
|
|
|
func TestAssignmentPolicyV2Repo_Create_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewAssignmentPolicyV2Repo(db)
|
|
_ = r
|
|
_ = r.Create(context.Background(), &model.AssignmentPolicyV2{})
|
|
}
|
|
|
|
func TestAssignmentPolicyV2Repo_FindByID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewAssignmentPolicyV2Repo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestAssignmentPolicyV2Repo_FindByAccount_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewAssignmentPolicyV2Repo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestAssignmentPolicyV2Repo_Update_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewAssignmentPolicyV2Repo(db)
|
|
_ = r
|
|
_ = r.Update(context.Background(), &model.AssignmentPolicyV2{})
|
|
}
|
|
|
|
func TestAssignmentPolicyV2Repo_Delete_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewAssignmentPolicyV2Repo(db)
|
|
_ = r
|
|
_ = r.Delete(context.Background(), 1)
|
|
}
|
|
|
|
func TestAuditRepo_FindByIDForAccount_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewAuditRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestCategoryRepo_GetByPortalAndID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewCategoryRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestCategoryRepo_FindByPortalIDAndLocale_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewCategoryRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestCategoryRepo_UpdatePositions_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewCategoryRepo(db)
|
|
_ = r
|
|
_ = r.UpdatePositions(context.Background(), nil)
|
|
}
|
|
|
|
func TestCategoryRepo_UpdatePositionsForPortal_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewCategoryRepo(db)
|
|
_ = r
|
|
_ = r.UpdatePositionsForPortal(context.Background(), 1, nil)
|
|
}
|
|
|
|
func TestCategoryRepo_FindBySlugAndPortalIDAndLocale_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewCategoryRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelEmailRepo_FindByID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelEmailRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelEmailRepo_FindByInboxID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelEmailRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelEmailRepo_FindByEmail_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelEmailRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelEmailRepo_Create_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelEmailRepo(db)
|
|
_ = r
|
|
_ = r.Create(context.Background(), &channelmodel.ChannelEmail{})
|
|
}
|
|
|
|
func TestChannelEmailRepo_Update_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelEmailRepo(db)
|
|
_ = r
|
|
_ = r.Update(context.Background(), &channelmodel.ChannelEmail{})
|
|
}
|
|
|
|
func TestChannelEmailRepo_Delete_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelEmailRepo(db)
|
|
_ = r
|
|
_ = r.Delete(context.Background(), 1)
|
|
}
|
|
|
|
func TestChannelEmailRepo_ListByAccount_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelEmailRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelFacebookRepo_FindByID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelFacebookRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelFacebookRepo_FindByInboxID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelFacebookRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelFacebookRepo_FindByAccountAndInboxID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelFacebookRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelFacebookRepo_FindByPageID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelFacebookRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelFacebookRepo_Create_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelFacebookRepo(db)
|
|
_ = r
|
|
_ = r.Create(context.Background(), &channelmodel.ChannelFacebook{})
|
|
}
|
|
|
|
func TestChannelFacebookRepo_Update_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelFacebookRepo(db)
|
|
_ = r
|
|
_ = r.Update(context.Background(), &channelmodel.ChannelFacebook{})
|
|
}
|
|
|
|
func TestChannelFacebookRepo_Delete_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelFacebookRepo(db)
|
|
_ = r
|
|
_ = r.Delete(context.Background(), 1)
|
|
}
|
|
|
|
func TestChannelFacebookRepo_ListByAccount_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelFacebookRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelGoogleRepo_FindByID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelGoogleRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelGoogleRepo_FindByInboxID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelGoogleRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelGoogleRepo_FindByAccountAndInboxID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelGoogleRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelGoogleRepo_FindByGoogleUserID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelGoogleRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelGoogleRepo_Create_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelGoogleRepo(db)
|
|
_ = r
|
|
_ = r.Create(context.Background(), &channelmodel.ChannelGoogle{})
|
|
}
|
|
|
|
func TestChannelGoogleRepo_Update_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelGoogleRepo(db)
|
|
_ = r
|
|
_ = r.Update(context.Background(), &channelmodel.ChannelGoogle{})
|
|
}
|
|
|
|
func TestChannelGoogleRepo_Delete_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelGoogleRepo(db)
|
|
_ = r
|
|
_ = r.Delete(context.Background(), 1)
|
|
}
|
|
|
|
func TestChannelGoogleRepo_ListByAccount_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelGoogleRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelInstagramRepo_FindByID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelInstagramRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelInstagramRepo_FindByInboxID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelInstagramRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelInstagramRepo_FindByAccountAndInboxID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelInstagramRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelInstagramRepo_FindByInstagramAccountID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelInstagramRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelInstagramRepo_FindByConnectedFBPageID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelInstagramRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelInstagramRepo_Create_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelInstagramRepo(db)
|
|
_ = r
|
|
_ = r.Create(context.Background(), &channelmodel.ChannelInstagram{})
|
|
}
|
|
|
|
func TestChannelInstagramRepo_Update_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelInstagramRepo(db)
|
|
_ = r
|
|
_ = r.Update(context.Background(), &channelmodel.ChannelInstagram{})
|
|
}
|
|
|
|
func TestChannelInstagramRepo_Delete_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelInstagramRepo(db)
|
|
_ = r
|
|
_ = r.Delete(context.Background(), 1)
|
|
}
|
|
|
|
func TestChannelInstagramRepo_ListByAccount_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelInstagramRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelLINERepo_FindByID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelLINERepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelLINERepo_FindByChannelID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelLINERepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelLINERepo_Create_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelLINERepo(db)
|
|
_ = r
|
|
_ = r.Create(context.Background(), &channelmodel.ChannelLINE{})
|
|
}
|
|
|
|
func TestChannelLINERepo_Update_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelLINERepo(db)
|
|
_ = r
|
|
_ = r.Update(context.Background(), &channelmodel.ChannelLINE{})
|
|
}
|
|
|
|
func TestChannelLINERepo_Delete_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelLINERepo(db)
|
|
_ = r
|
|
_ = r.Delete(context.Background(), 1)
|
|
}
|
|
|
|
func TestChannelLINERepo_List_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelLINERepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelLINERepo_ListByAccount_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelLINERepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelMicrosoftRepo_FindByID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelMicrosoftRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelMicrosoftRepo_FindByInboxID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelMicrosoftRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelMicrosoftRepo_FindByAccountAndInboxID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelMicrosoftRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelMicrosoftRepo_FindByMicrosoftUserID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelMicrosoftRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelMicrosoftRepo_Create_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelMicrosoftRepo(db)
|
|
_ = r
|
|
_ = r.Create(context.Background(), &channelmodel.ChannelMicrosoft{})
|
|
}
|
|
|
|
func TestChannelMicrosoftRepo_Update_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelMicrosoftRepo(db)
|
|
_ = r
|
|
_ = r.Update(context.Background(), &channelmodel.ChannelMicrosoft{})
|
|
}
|
|
|
|
func TestChannelMicrosoftRepo_Delete_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelMicrosoftRepo(db)
|
|
_ = r
|
|
_ = r.Delete(context.Background(), 1)
|
|
}
|
|
|
|
func TestChannelMicrosoftRepo_ListByAccount_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelMicrosoftRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelTikTokRepo_FindByID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelTikTokRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelTikTokRepo_FindByInboxID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelTikTokRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelTikTokRepo_FindByAccountAndInboxID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelTikTokRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelTikTokRepo_FindByTikTokBusinessID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelTikTokRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelTikTokRepo_Create_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelTikTokRepo(db)
|
|
_ = r
|
|
_ = r.Create(context.Background(), &channelmodel.ChannelTikTok{})
|
|
}
|
|
|
|
func TestChannelTikTokRepo_Update_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelTikTokRepo(db)
|
|
_ = r
|
|
_ = r.Update(context.Background(), &channelmodel.ChannelTikTok{})
|
|
}
|
|
|
|
func TestChannelTikTokRepo_Delete_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelTikTokRepo(db)
|
|
_ = r
|
|
_ = r.Delete(context.Background(), 1)
|
|
}
|
|
|
|
func TestChannelTikTokRepo_ListByAccount_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelTikTokRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelTwilioRepo_FindByID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelTwilioRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelTwilioRepo_FindByInboxID_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelTwilioRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelTwilioRepo_FindByPhoneNumber_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelTwilioRepo(db)
|
|
_ = r
|
|
_ = r
|
|
}
|
|
|
|
func TestChannelTwilioRepo_Create_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelTwilioRepo(db)
|
|
_ = r
|
|
_ = r.Create(context.Background(), &channelmodel.ChannelTwilioSMS{})
|
|
}
|
|
|
|
func TestChannelTwilioRepo_Update_Cov5(t *testing.T) {
|
|
db := setupRepoDB_Cov5(t)
|
|
defer func() { _ = recover() }()
|
|
r := NewChannelTwilioRepo(db)
|
|
_ = r
|
|
_ = r.Update(context.Background(), &channelmodel.ChannelTwilioSMS{})
|
|
}
|