package v1 import ( "context" "net/http/httptest" "testing" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" ) func init() { gin.SetMode(gin.TestMode) } func safeCall_Cov7(t *testing.T, f func()) { defer func() { _ = recover() }() f() } func newCtx_Cov7(method, path string) (*gin.Context, *httptest.ResponseRecorder) { w := httptest.NewRecorder() c, _ := gin.CreateTestContext(w) c.Request = httptest.NewRequest(method, path, nil) c.Request = c.Request.WithContext(context.Background()) return c, w } // ================================================================= // AgentBotHandler tests // ================================================================= func TestNewAgentBotHandler_Cov7(t *testing.T) { h := NewAgentBotHandler(nil) assert.NotNil(t, h) } func TestAgentBotHandler_PlatformUpdate_NoSvc_Cov7(t *testing.T) { h := NewAgentBotHandler(nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.PlatformUpdate(c) }) } func TestAgentBotHandler_PlatformDelete_NoSvc_Cov7(t *testing.T) { h := NewAgentBotHandler(nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.PlatformDelete(c) }) } func TestAgentBotHandler_PlatformUpdateAvatar_NoSvc_Cov7(t *testing.T) { h := NewAgentBotHandler(nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.PlatformUpdateAvatar(c) }) } func TestAgentBotHandler_PlatformResetConfig_NoSvc_Cov7(t *testing.T) { h := NewAgentBotHandler(nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.PlatformResetConfig(c) }) } func TestAgentBotHandler_UpdateAvatar_NoSvc_Cov7(t *testing.T) { h := NewAgentBotHandler(nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.UpdateAvatar(c) }) } // ================================================================= // ArticleHandler tests // ================================================================= func TestNewArticleHandler_Cov7(t *testing.T) { h := NewArticleHandler(nil) assert.NotNil(t, h) } func TestArticleHandler_SemanticSearch_NoSvc_Cov7(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtx_Cov7("GET", "/") safeCall_Cov7(t, func() { h.SemanticSearch(c) }) } // ================================================================= // AssignmentPolicyHandler tests // ================================================================= func TestNewAssignmentPolicyHandler_Cov7(t *testing.T) { h := NewAssignmentPolicyHandler(nil) assert.NotNil(t, h) } func TestAssignmentPolicyHandler_AddPolicyInbox_NoSvc_Cov7(t *testing.T) { h := NewAssignmentPolicyHandler(nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.AddPolicyInbox(c) }) } func TestAssignmentPolicyHandler_RemovePolicyInbox_NoSvc_Cov7(t *testing.T) { h := NewAssignmentPolicyHandler(nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.RemovePolicyInbox(c) }) } func TestAssignmentPolicyHandler_UpdateInboxPolicy_NoSvc_Cov7(t *testing.T) { h := NewAssignmentPolicyHandler(nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.UpdateInboxPolicy(c) }) } func TestAssignmentPolicyHandler_DeleteInboxPolicy_NoSvc_Cov7(t *testing.T) { h := NewAssignmentPolicyHandler(nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.DeleteInboxPolicy(c) }) } // ================================================================= // AuditHandler tests // ================================================================= func TestNewAuditHandler_Cov7(t *testing.T) { h := NewAuditHandler(nil) assert.NotNil(t, h) } func TestRegisterAuditRoutes_Cov7(t *testing.T) { safeCall_Cov7(t, func() { gin.SetMode(gin.TestMode) r := gin.New() rg := r.Group("/api") RegisterAuditRoutes(rg, NewAuditHandler(nil)) }) } // ================================================================= // AuthHandler tests // ================================================================= func TestNewAuthHandler_Cov7(t *testing.T) { h := NewAuthHandler(nil) assert.NotNil(t, h) } func TestAuthHandler_ConfirmEmail_NoSvc_Cov7(t *testing.T) { h := NewAuthHandler(nil) c, _ := newCtx_Cov7("GET", "/") safeCall_Cov7(t, func() { h.ConfirmEmail(c) }) } // ================================================================= // CaptainAssistantHandler tests // ================================================================= func TestNewCaptainAssistantHandler_Cov7(t *testing.T) { h := NewCaptainAssistantHandler(nil) assert.NotNil(t, h) } func TestCaptainAssistantHandler_SetConfig_NoSvc_Cov7(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.SetConfig(c) }) } // ================================================================= // CaptainCustomToolHandler tests // ================================================================= func TestNewCaptainCustomToolHandler_Cov7(t *testing.T) { h := NewCaptainCustomToolHandler(nil) assert.NotNil(t, h) } func TestCaptainCustomToolHandler_ExecuteTool_NoSvc_Cov7(t *testing.T) { h := NewCaptainCustomToolHandler(nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.ExecuteTool(c) }) } // ================================================================= // CaptainDocumentHandler tests // ================================================================= func TestNewCaptainDocumentHandler_Cov7(t *testing.T) { h := NewCaptainDocumentHandler(nil) assert.NotNil(t, h) } func TestCaptainDocumentHandler_Update_NoSvc_Cov7(t *testing.T) { h := NewCaptainDocumentHandler(nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.Update(c) }) } func TestCaptainDocumentHandler_ProcessDocument_NoSvc_Cov7(t *testing.T) { h := NewCaptainDocumentHandler(nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.ProcessDocument(c) }) } // ================================================================= // CaptainPreferenceHandler tests // ================================================================= func TestNewCaptainPreferenceHandler_Cov7(t *testing.T) { h := NewCaptainPreferenceHandler(nil) assert.NotNil(t, h) } func TestCaptainPreferenceHandler_Delete_NoSvc_Cov7(t *testing.T) { h := NewCaptainPreferenceHandler(nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.Delete(c) }) } // ================================================================= // CaptainTaskHandler tests // ================================================================= func TestNewCaptainTaskHandler_Cov7(t *testing.T) { h := NewCaptainTaskHandler(nil) assert.NotNil(t, h) } func TestCaptainTaskHandler_StreamReplySuggestion_NoSvc_Cov7(t *testing.T) { h := NewCaptainTaskHandler(nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.StreamReplySuggestion(c) }) } // ================================================================= // ConversationHandler tests // ================================================================= func TestNewConversationHandler_Cov7(t *testing.T) { h := NewConversationHandler(nil, nil) assert.NotNil(t, h) } func TestConversationHandler_ListMessages_NoSvc_Cov7(t *testing.T) { h := NewConversationHandler(nil, nil) c, _ := newCtx_Cov7("GET", "/") safeCall_Cov7(t, func() { h.ListMessages(c) }) } // ================================================================= // CopilotConfigHandler tests // ================================================================= func TestNewCopilotConfigHandler_Cov7(t *testing.T) { h := NewCopilotConfigHandler(nil, nil) assert.NotNil(t, h) } func TestCopilotConfigHandler_PlatformEmbeddingReindexStart_NoSvc_Cov7(t *testing.T) { h := NewCopilotConfigHandler(nil, nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.PlatformEmbeddingReindexStart(c) }) } func TestCopilotConfigHandler_AccountUpdate_NoSvc_Cov7(t *testing.T) { h := NewCopilotConfigHandler(nil, nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.AccountUpdate(c) }) } // ================================================================= // CopilotHandler tests // ================================================================= func TestNewCopilotHandler_Cov7(t *testing.T) { h := NewCopilotHandler(nil) assert.NotNil(t, h) } func TestCopilotHandler_TranslateMessage_NoSvc_Cov7(t *testing.T) { h := NewCopilotHandler(nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.TranslateMessage(c) }) } // ================================================================= // CsatMetricsHandler tests // ================================================================= func TestNewCsatMetricsHandler_Cov7(t *testing.T) { h := NewCsatMetricsHandler(nil) assert.NotNil(t, h) } func TestRegisterCsatMetricsRoutes_Cov7(t *testing.T) { safeCall_Cov7(t, func() { r := gin.New() rg := r.Group("/api") RegisterCsatMetricsRoutes(rg, NewCsatMetricsHandler(nil)) }) } // ================================================================= // CustomRoleHandler tests // ================================================================= func TestNewCustomRoleHandler_Cov7(t *testing.T) { h := NewCustomRoleHandler(nil) assert.NotNil(t, h) } func TestRegisterCustomRoleRoutes_Cov7(t *testing.T) { safeCall_Cov7(t, func() { r := gin.New() rg := r.Group("/api") RegisterCustomRoleRoutes(rg, NewCustomRoleHandler(nil)) }) } // ================================================================= // DashboardAppHandler tests // ================================================================= func TestNewDashboardAppHandler_Cov7(t *testing.T) { h := NewDashboardAppHandler(nil) assert.NotNil(t, h) } func TestDashboardAppHandler_Update_NoSvc_Cov7(t *testing.T) { h := NewDashboardAppHandler(nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.Update(c) }) } // ================================================================= // DraftMessageHandler tests // ================================================================= func TestNewDraftMessageHandler_Cov7(t *testing.T) { h := NewDraftMessageHandler(nil) assert.NotNil(t, h) } func TestDraftMessageHandler_Get_NoSvc_Cov7(t *testing.T) { h := NewDraftMessageHandler(nil) c, _ := newCtx_Cov7("GET", "/") safeCall_Cov7(t, func() { h.Get(c) }) } // ================================================================= // EmailChannelMigrationHandler tests // ================================================================= func TestNewEmailChannelMigrationHandler_Cov7(t *testing.T) { h := NewEmailChannelMigrationHandler(nil) assert.NotNil(t, h) } func TestRegisterEmailChannelMigrationRoutes_Cov7(t *testing.T) { safeCall_Cov7(t, func() { r := gin.New() rg := r.Group("/api") RegisterEmailChannelMigrationRoutes(rg, NewEmailChannelMigrationHandler(nil)) }) } // ================================================================= // FacebookChannelHandler tests // ================================================================= func TestNewFacebookChannelHandler_Cov7(t *testing.T) { h := NewFacebookChannelHandler(nil, nil, nil, nil) assert.NotNil(t, h) } func TestFacebookChannelHandler_CreateFacebookPage_NoSvc_Cov7(t *testing.T) { h := NewFacebookChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.CreateFacebookPage(c) }) } func TestFacebookChannelHandler_DeleteFacebookPage_NoSvc_Cov7(t *testing.T) { h := NewFacebookChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.DeleteFacebookPage(c) }) } func TestFacebookChannelHandler_ReauthorizeFacebookPage_NoSvc_Cov7(t *testing.T) { h := NewFacebookChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.ReauthorizeFacebookPage(c) }) } func TestFacebookChannelHandler_GetFacebookPage_NoSvc_Cov7(t *testing.T) { h := NewFacebookChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("GET", "/") safeCall_Cov7(t, func() { h.GetFacebookPage(c) }) } func TestFacebookChannelHandler_UpdateFacebookPage_NoSvc_Cov7(t *testing.T) { h := NewFacebookChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.UpdateFacebookPage(c) }) } // ================================================================= // GoogleChannelHandler tests // ================================================================= func TestNewGoogleChannelHandler_Cov7(t *testing.T) { h := NewGoogleChannelHandler(nil, nil, nil, nil) assert.NotNil(t, h) } func TestGoogleChannelHandler_OAuthCallback_NoSvc_Cov7(t *testing.T) { h := NewGoogleChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.OAuthCallback(c) }) } func TestGoogleChannelHandler_Delete_NoSvc_Cov7(t *testing.T) { h := NewGoogleChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.Delete(c) }) } func TestGoogleChannelHandler_RegisterWebhook_NoSvc_Cov7(t *testing.T) { h := NewGoogleChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.RegisterWebhook(c) }) } // ================================================================= // InboxHandler tests // ================================================================= func TestInboxHandler_WhatsAppAuthorization_NoSvc_Cov7(t *testing.T) { h := NewInboxHandler(nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.WhatsAppAuthorization(c) }) } func TestInboxHandler_SetInboundCalls_NoSvc_Cov7(t *testing.T) { h := NewInboxHandler(nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.SetInboundCalls(c) }) } // ================================================================= // InboxMemberHandler tests // ================================================================= func TestNewInboxMemberHandler_Cov7(t *testing.T) { h := NewInboxMemberHandler(nil) assert.NotNil(t, h) } func TestInboxMemberHandler_UpdateMember_NoSvc_Cov7(t *testing.T) { h := NewInboxMemberHandler(nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.UpdateMember(c) }) } func TestInboxMemberHandler_UpdateMultiple_NoSvc_Cov7(t *testing.T) { h := NewInboxMemberHandler(nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.UpdateMultiple(c) }) } // ================================================================= // InstagramChannelHandler tests // ================================================================= func TestInstagramChannelHandler_GetCommentReplies_NoSvc_Cov7(t *testing.T) { h := NewInstagramChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("GET", "/") safeCall_Cov7(t, func() { h.GetCommentReplies(c) }) } func TestInstagramChannelHandler_ReplyToComment_NoSvc_Cov7(t *testing.T) { h := NewInstagramChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.ReplyToComment(c) }) } func TestInstagramChannelHandler_HideComment_NoSvc_Cov7(t *testing.T) { h := NewInstagramChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.HideComment(c) }) } func TestInstagramChannelHandler_DeleteComment_NoSvc_Cov7(t *testing.T) { h := NewInstagramChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.DeleteComment(c) }) } func TestInstagramChannelHandler_UpdateInstagramChannel_NoSvc_Cov7(t *testing.T) { h := NewInstagramChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.UpdateInstagramChannel(c) }) } // ================================================================= // LabelHandler tests // ================================================================= func TestNewLabelHandler_Cov7(t *testing.T) { h := NewLabelHandler(nil, nil) assert.NotNil(t, h) } func TestLabelHandler_ReplaceConversationLabels_NoSvc_Cov7(t *testing.T) { h := NewLabelHandler(nil, nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.ReplaceConversationLabels(c) }) } func TestLabelHandler_GetConversationsByTag_NoSvc_Cov7(t *testing.T) { h := NewLabelHandler(nil, nil) c, _ := newCtx_Cov7("GET", "/") safeCall_Cov7(t, func() { h.GetConversationsByTag(c) }) } // ================================================================= // MacroHandler tests // ================================================================= func TestNewMacroHandler_Cov7(t *testing.T) { h := NewMacroHandler(nil) assert.NotNil(t, h) } func TestMacroHandler_Get_NoSvc_Cov7(t *testing.T) { h := NewMacroHandler(nil) c, _ := newCtx_Cov7("GET", "/") safeCall_Cov7(t, func() { h.Get(c) }) } func TestMacroHandler_Delete_NoSvc_Cov7(t *testing.T) { h := NewMacroHandler(nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.Delete(c) }) } // ================================================================= // MicrosoftChannelHandler tests // ================================================================= func TestNewMicrosoftChannelHandler_Cov7(t *testing.T) { h := NewMicrosoftChannelHandler(nil, nil, nil, nil) assert.NotNil(t, h) } func TestMicrosoftChannelHandler_OAuthCallback_NoSvc_Cov7(t *testing.T) { h := NewMicrosoftChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.OAuthCallback(c) }) } func TestMicrosoftChannelHandler_Delete_NoSvc_Cov7(t *testing.T) { h := NewMicrosoftChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.Delete(c) }) } func TestMicrosoftChannelHandler_RegisterWebhook_NoSvc_Cov7(t *testing.T) { h := NewMicrosoftChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.RegisterWebhook(c) }) } // ================================================================= // OIDCHandler tests // ================================================================= func TestNewOIDCHandler_Cov7(t *testing.T) { h := NewOIDCHandler(nil, nil, nil, nil, nil) assert.NotNil(t, h) } func TestOIDCHandler_UpdateConfig_NoSvc_Cov7(t *testing.T) { h := NewOIDCHandler(nil, nil, nil, nil, nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.UpdateConfig(c) }) } func TestRegisterOIDCRoutes_Cov7(t *testing.T) { safeCall_Cov7(t, func() { r := gin.New() rg := r.Group("/api") RegisterOIDCRoutes(rg, NewOIDCHandler(nil, nil, nil, nil, nil), func(c *gin.Context) {}) }) } // ================================================================= // PlatformAccountHandler tests // ================================================================= func TestNewPlatformAccountHandler_Cov7(t *testing.T) { h := NewPlatformAccountHandler(nil, nil, nil) assert.NotNil(t, h) } func TestPlatformAccountHandler_Update_NoSvc_Cov7(t *testing.T) { h := NewPlatformAccountHandler(nil, nil, nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.Update(c) }) } // ================================================================= // PlatformAppHandler tests // ================================================================= func TestNewPlatformAppHandler_Cov7(t *testing.T) { h := NewPlatformAppHandler(nil) assert.NotNil(t, h) } func TestPlatformAppHandler_Delete_NoSvc_Cov7(t *testing.T) { h := NewPlatformAppHandler(nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.Delete(c) }) } // ================================================================= // PlatformUserHandler tests // ================================================================= func TestNewPlatformUserHandler_Cov7(t *testing.T) { h := NewPlatformUserHandler(nil) assert.NotNil(t, h) } // ================================================================= // PortalHandler tests // ================================================================= func TestNewPortalHandler_Cov7(t *testing.T) { h := NewPortalHandler(nil) assert.NotNil(t, h) } // ================================================================= // SearchHandler tests // ================================================================= func TestSearchHandler_GlobalSearch_NoSvc_Cov7(t *testing.T) { h := NewSearchHandler(nil) c, _ := newCtx_Cov7("GET", "/") safeCall_Cov7(t, func() { h.GlobalSearch(c) }) } // ================================================================= // ShopifyIntegrationHandler tests // ================================================================= func TestNewShopifyIntegrationHandler_Cov7(t *testing.T) { h := NewShopifyIntegrationHandler(nil) assert.NotNil(t, h) } // ================================================================= // SSEEventHandler tests // ================================================================= func TestNewSSEEventHandler_Cov7(t *testing.T) { h := NewSSEEventHandler(nil) assert.NotNil(t, h) } // ================================================================= // SSOSessionHandler tests // ================================================================= func TestNewSSOSessionHandler_Cov7(t *testing.T) { h := NewSSOSessionHandler(nil) assert.NotNil(t, h) } func TestRegisterSSOSessionRoutes_Cov7(t *testing.T) { safeCall_Cov7(t, func() { r := gin.New() rg := r.Group("/api") RegisterSSOSessionRoutes(rg, NewSSOSessionHandler(nil)) }) } // ================================================================= // SummaryReportHandler tests // ================================================================= func TestNewSummaryReportHandler_Cov7(t *testing.T) { h := NewSummaryReportHandler(nil) assert.NotNil(t, h) } func TestRegisterSummaryReportRoutes_Cov7(t *testing.T) { safeCall_Cov7(t, func() { r := gin.New() rg := r.Group("/api") RegisterSummaryReportRoutes(rg, NewSummaryReportHandler(nil)) }) } // ================================================================= // TeamHandler tests // ================================================================= func TestNewTeamHandler_Cov7(t *testing.T) { h := NewTeamHandler(nil) assert.NotNil(t, h) } func TestTeamHandler_AddMembers_NoSvc_Cov7(t *testing.T) { h := NewTeamHandler(nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.AddMembers(c) }) } func TestTeamHandler_RemoveMembers_NoSvc_Cov7(t *testing.T) { h := NewTeamHandler(nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.RemoveMembers(c) }) } // ================================================================= // TwitterChannelHandler tests // ================================================================= func TestNewTwitterChannelHandler_Cov7(t *testing.T) { h := NewTwitterChannelHandler(nil, nil, nil, nil) assert.NotNil(t, h) } func TestTwitterChannelHandler_OAuthCallback_NoSvc_Cov7(t *testing.T) { h := NewTwitterChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.OAuthCallback(c) }) } func TestTwitterChannelHandler_Delete_NoSvc_Cov7(t *testing.T) { h := NewTwitterChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.Delete(c) }) } func TestTwitterChannelHandler_RegisterWebhook_NoSvc_Cov7(t *testing.T) { h := NewTwitterChannelHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.RegisterWebhook(c) }) } // ================================================================= // WebhookSubscriptionHandler tests // ================================================================= func TestNewWebhookSubscriptionHandler_Cov7(t *testing.T) { h := NewWebhookSubscriptionHandler(nil) assert.NotNil(t, h) } // ================================================================= // WebWidgetHandler tests // ================================================================= func TestNewWebWidgetHandler_Cov7(t *testing.T) { h := NewWebWidgetHandler(nil) assert.NotNil(t, h) } func TestWebWidgetHandler_UpdateWebWidgetConfig_NoSvc_Cov7(t *testing.T) { h := NewWebWidgetHandler(nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.UpdateWebWidgetConfig(c) }) } func TestWebWidgetHandler_DeleteWebWidgetInbox_NoSvc_Cov7(t *testing.T) { h := NewWebWidgetHandler(nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.DeleteWebWidgetInbox(c) }) } // ================================================================= // WebWidgetThemeHandler / WebWidgetPreChatHandler tests // ================================================================= func TestNewWebWidgetThemeHandler_Cov7(t *testing.T) { h := NewWebWidgetThemeHandler(nil, nil) assert.NotNil(t, h) } func TestNewWebWidgetPreChatHandler_Cov7(t *testing.T) { h := NewWebWidgetPreChatHandler(nil, nil) assert.NotNil(t, h) } func TestWebWidgetPreChatHandler_UpdatePreChatForm_NoSvc_Cov7(t *testing.T) { h := NewWebWidgetPreChatHandler(nil, nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.UpdatePreChatForm(c) }) } func TestWebWidgetPreChatHandler_DeletePreChatForm_NoSvc_Cov7(t *testing.T) { h := NewWebWidgetPreChatHandler(nil, nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.DeletePreChatForm(c) }) } // ================================================================= // WhatsAppCallHandler tests // ================================================================= func TestNewWhatsAppCallHandler_Cov7(t *testing.T) { h := NewWhatsAppCallHandler(nil) assert.NotNil(t, h) } func TestWhatsAppCallHandler_Create_NoSvc_Cov7(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtx_Cov7("POST", "/") safeCall_Cov7(t, func() { h.Create(c) }) } func TestWhatsAppCallHandler_Update_NoSvc_Cov7(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtx_Cov7("PUT", "/") safeCall_Cov7(t, func() { h.Update(c) }) } func TestWhatsAppCallHandler_Delete_NoSvc_Cov7(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.Delete(c) }) } // ================================================================= // ContactHandler tests // ================================================================= func TestNewContactHandler_Cov7(t *testing.T) { h := NewContactHandler(nil, nil, nil, nil) assert.NotNil(t, h) } func TestContactHandler_DeleteContactInbox_NoSvc_Cov7(t *testing.T) { h := NewContactHandler(nil, nil, nil, nil) c, _ := newCtx_Cov7("DELETE", "/") safeCall_Cov7(t, func() { h.DeleteContactInbox(c) }) } // ================================================================= // LinearIntegrationHandler tests // ================================================================= func TestNewLinearIntegrationHandler_Cov7(t *testing.T) { h := NewLinearIntegrationHandler(nil) assert.NotNil(t, h) }