package v1 import ( "context" "net/http/httptest" "strings" "testing" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" "gorm.io/gorm" "github.com/gochat/gochat/internal/automation" "github.com/gochat/gochat/internal/canned" "github.com/gochat/gochat/internal/llm" "github.com/gochat/gochat/internal/model" "github.com/gochat/gochat/internal/search" "github.com/gochat/gochat/internal/service" "github.com/gochat/gochat/internal/ws" ) func init() { gin.SetMode(gin.TestMode) } func safeCall_Cov9(t *testing.T, f func()) { defer func() { _ = recover() }() f() } func newCtx_Cov9(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 } func newCtxBody_Cov9(method, path string, body string) (*gin.Context, *httptest.ResponseRecorder) { w := httptest.NewRecorder() c, _ := gin.CreateTestContext(w) c.Request = httptest.NewRequest(method, path, strings.NewReader(body)) if body != "" { c.Request.Header.Set("Content-Type", "application/json") } c.Request = c.Request.WithContext(context.Background()) return c, w } func newCtxParams_Cov9(method, path string, params map[string]string) (*gin.Context, *httptest.ResponseRecorder) { c, w := newCtx_Cov9(method, path) for k, v := range params { c.Params = append(c.Params, gin.Param{Key: k, Value: v}) } return c, w } // ================================================================= // Constructor tests — verify all handlers can be created with nil // ================================================================= func TestNewArticleHandler_Nil_Cov9(t *testing.T) { h := NewArticleHandler(nil) assert.NotNil(t, h) } func TestNewCategoryHandler_Nil_Cov9(t *testing.T) { h := NewCategoryHandler(nil) assert.NotNil(t, h) } func TestNewContactHandler_Nil_Cov9(t *testing.T) { h := NewContactHandler(nil, nil, nil, nil) assert.NotNil(t, h) } func TestNewContactMergeHandler_Nil_Cov9(t *testing.T) { h := NewContactMergeHandler(nil) assert.NotNil(t, h) } func TestNewConversationHandler_Nil_Cov9(t *testing.T) { h := NewConversationHandler(nil, nil) assert.NotNil(t, h) } func TestNewConversationInsightHandler_Nil_Cov9(t *testing.T) { h := NewConversationInsightHandler(nil) assert.NotNil(t, h) } func TestNewConversationParticipantHandler_Nil_Cov9(t *testing.T) { h := NewConversationParticipantHandler(nil) assert.NotNil(t, h) } func TestNewCopilotConfigHandler_Nil_Cov9(t *testing.T) { h := NewCopilotConfigHandler(nil, nil) assert.NotNil(t, h) } func TestNewCopilotHandler_Nil_Cov9(t *testing.T) { h := NewCopilotHandler(nil) assert.NotNil(t, h) } func TestNewCsatMetricsHandler_Nil_Cov9(t *testing.T) { h := NewCsatMetricsHandler(nil) assert.NotNil(t, h) } func TestNewCsatSurveyHandler_Nil_Cov9(t *testing.T) { h := NewCsatSurveyHandler(nil) assert.NotNil(t, h) } func TestNewCustomAttributeDefinitionHandler_Nil_Cov9(t *testing.T) { h := NewCustomAttributeDefinitionHandler(nil) assert.NotNil(t, h) } func TestNewCustomAttributeValueHandler_Nil_Cov9(t *testing.T) { h := NewCustomAttributeValueHandler(nil) assert.NotNil(t, h) } func TestNewCustomFilterHandler_Nil_Cov9(t *testing.T) { h := NewCustomFilterHandler(nil) assert.NotNil(t, h) } func TestNewCustomRoleHandler_Nil_Cov9(t *testing.T) { h := NewCustomRoleHandler(nil) assert.NotNil(t, h) } func TestNewDashboardAppHandler_Nil_Cov9(t *testing.T) { h := NewDashboardAppHandler(nil) assert.NotNil(t, h) } func TestNewDeliveryStatusHandler_Nil_Cov9(t *testing.T) { h := NewDeliveryStatusHandler(nil) assert.NotNil(t, h) } func TestNewDraftMessageHandler_Nil_Cov9(t *testing.T) { h := NewDraftMessageHandler(nil) assert.NotNil(t, h) } func TestNewDyteIntegrationHandler_Nil_Cov9(t *testing.T) { h := NewDyteIntegrationHandler(nil) assert.NotNil(t, h) } func TestNewEmailChannelMigrationHandler_Nil_Cov9(t *testing.T) { h := NewEmailChannelMigrationHandler(nil) assert.NotNil(t, h) } func TestNewEnterpriseAccountHandler_Nil_Cov9(t *testing.T) { h := NewEnterpriseAccountHandler(nil) assert.NotNil(t, h) } func TestNewFolderHandler_Nil_Cov9(t *testing.T) { h := NewFolderHandler(nil) assert.NotNil(t, h) } func TestNewInboxCsatTemplateHandler_Nil_Cov9(t *testing.T) { h := NewInboxCsatTemplateHandler(nil) assert.NotNil(t, h) } func TestNewInboxHandler_Nil_Cov9(t *testing.T) { h := NewInboxHandler(nil) assert.NotNil(t, h) } func TestNewInboxLimitHandler_Nil_Cov9(t *testing.T) { h := NewInboxLimitHandler(nil) assert.NotNil(t, h) } func TestNewInboxMemberHandler_Nil_Cov9(t *testing.T) { h := NewInboxMemberHandler(nil) assert.NotNil(t, h) } func TestNewInstallationConfigHandler_Nil_Cov9(t *testing.T) { h := NewInstallationConfigHandler(nil) assert.NotNil(t, h) } func TestNewIntegrationHookHandler_Nil_Cov9(t *testing.T) { h := NewIntegrationHookHandler(nil) assert.NotNil(t, h) } func TestNewLabelHandler_Nil_Cov9(t *testing.T) { h := NewLabelHandler(nil, nil) assert.NotNil(t, h) } func TestNewLinearIntegrationHandler_Nil_Cov9(t *testing.T) { h := NewLinearIntegrationHandler(nil) assert.NotNil(t, h) } func TestNewLiveReportHandler_Nil_Cov9(t *testing.T) { h := NewLiveReportHandler(nil) assert.NotNil(t, h) } func TestNewMacroHandler_Nil_Cov9(t *testing.T) { h := NewMacroHandler(nil) assert.NotNil(t, h) } func TestNewMessageHandler_Nil_Cov9(t *testing.T) { h := NewMessageHandler(nil) assert.NotNil(t, h) } func TestNewNoteHandler_Nil_Cov9(t *testing.T) { h := NewNoteHandler(nil) assert.NotNil(t, h) } func TestNewNotificationHandler_Nil_Cov9(t *testing.T) { h := NewNotificationHandler(nil) assert.NotNil(t, h) } func TestNewNotificationSettingHandler_Nil_Cov9(t *testing.T) { h := NewNotificationSettingHandler(nil) assert.NotNil(t, h) } func TestNewNotificationSubscriptionHandler_Nil_Cov9(t *testing.T) { h := NewNotificationSubscriptionHandler(nil) assert.NotNil(t, h) } func TestNewNotionIntegrationHandler_Nil_Cov9(t *testing.T) { h := NewNotionIntegrationHandler(nil) assert.NotNil(t, h) } func TestNewPlatformAppHandler_Nil_Cov9(t *testing.T) { h := NewPlatformAppHandler(nil) assert.NotNil(t, h) } func TestNewPlatformUserHandler_Nil_Cov9(t *testing.T) { h := NewPlatformUserHandler(nil) assert.NotNil(t, h) } func TestNewPlatformUserSSOHandler_Nil_Cov9(t *testing.T) { h := NewPlatformUserSSOHandler() assert.NotNil(t, h) } func TestNewPortalHandler_Nil_Cov9(t *testing.T) { h := NewPortalHandler(nil) assert.NotNil(t, h) } func TestNewPortalMemberHandler_Nil_Cov9(t *testing.T) { h := NewPortalMemberHandler(nil) assert.NotNil(t, h) } func TestNewProfileHandler_Nil_Cov9(t *testing.T) { h := NewProfileHandler(nil) assert.NotNil(t, h) } func TestNewPushSubscriptionHandler_Nil_Cov9(t *testing.T) { h := NewPushSubscriptionHandler(nil) assert.NotNil(t, h) } func TestNewRAGHandler_Nil_Cov9(t *testing.T) { h := NewRAGHandler(nil) assert.NotNil(t, h) } func TestNewReportingEventHandler_Nil_Cov9(t *testing.T) { h := NewReportingEventHandler(nil) assert.NotNil(t, h) } func TestNewSearchHandler_Nil_Cov9(t *testing.T) { h := NewSearchHandler(nil) assert.NotNil(t, h) } func TestNewShopifyIntegrationHandler_Nil_Cov9(t *testing.T) { h := NewShopifyIntegrationHandler(nil) assert.NotNil(t, h) } func TestNewSlackIntegrationHandler_Nil_Cov9(t *testing.T) { h := NewSlackIntegrationHandler(nil) assert.NotNil(t, h) } func TestNewSlaPolicyHandler_Nil_Cov9(t *testing.T) { h := NewSlaPolicyHandler(nil) assert.NotNil(t, h) } func TestNewSSEStreamHandler_Nil_Cov9(t *testing.T) { h := NewSSEStreamHandler(nil, nil) assert.NotNil(t, h) } func TestNewSSOSessionHandler_Nil_Cov9(t *testing.T) { h := NewSSOSessionHandler(nil) assert.NotNil(t, h) } func TestNewSummaryReportHandler_Nil_Cov9(t *testing.T) { h := NewSummaryReportHandler(nil) assert.NotNil(t, h) } func TestNewTeamHandler_Nil_Cov9(t *testing.T) { h := NewTeamHandler(nil) assert.NotNil(t, h) } func TestNewUploadHandler_Nil_Cov9(t *testing.T) { h := NewUploadHandler(nil) assert.NotNil(t, h) } func TestNewWebhookSubscriptionHandler_Nil_Cov9(t *testing.T) { h := NewWebhookSubscriptionHandler(nil) assert.NotNil(t, h) } func TestNewWebWidgetHandler_Nil_Cov9(t *testing.T) { h := NewWebWidgetHandler(nil) assert.NotNil(t, h) } func TestNewWebWidgetOfflineHandler_Nil_Cov9(t *testing.T) { h := NewWebWidgetOfflineHandler(nil, nil) assert.NotNil(t, h) } func TestNewWebWidgetThemeHandler_Nil_Cov9(t *testing.T) { h := NewWebWidgetThemeHandler(nil, nil) assert.NotNil(t, h) } func TestNewWebWidgetPreChatHandler_Nil_Cov9(t *testing.T) { h := NewWebWidgetPreChatHandler(nil, nil) assert.NotNil(t, h) } func TestNewWhatsAppCallHandler_Nil_Cov9(t *testing.T) { h := NewWhatsAppCallHandler(nil) assert.NotNil(t, h) } func TestNewWidgetTestHandler_Nil_Cov9(t *testing.T) { h := NewWidgetTestHandler(nil) assert.NotNil(t, h) } func TestNewWorkingHourHandler_Nil_Cov9(t *testing.T) { h := NewWorkingHourHandler(nil) assert.NotNil(t, h) } func TestNewYearInReviewHandler_Nil_Cov9(t *testing.T) { h := NewYearInReviewHandler(nil) assert.NotNil(t, h) } func TestNewCaptainAssistantHandler_Nil_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) assert.NotNil(t, h) } func TestNewCaptainAssistantResponseHandler_Nil_Cov9(t *testing.T) { h := NewCaptainAssistantResponseHandler(nil) assert.NotNil(t, h) } func TestNewCaptainBulkActionHandler_Nil_Cov9(t *testing.T) { h := NewCaptainBulkActionHandler(nil) assert.NotNil(t, h) } func TestNewCaptainConversationHandler_Nil_Cov9(t *testing.T) { h := NewCaptainConversationHandler(nil) assert.NotNil(t, h) } func TestNewCaptainCustomToolHandler_Nil_Cov9(t *testing.T) { h := NewCaptainCustomToolHandler(nil) assert.NotNil(t, h) } func TestNewCaptainDocumentHandler_Nil_Cov9(t *testing.T) { h := NewCaptainDocumentHandler(nil) assert.NotNil(t, h) } func TestNewCaptainPreferenceHandler_Nil_Cov9(t *testing.T) { h := NewCaptainPreferenceHandler(nil) assert.NotNil(t, h) } func TestNewCaptainScenarioHandler_Nil_Cov9(t *testing.T) { h := NewCaptainScenarioHandler(nil) assert.NotNil(t, h) } func TestNewCaptainTaskExtendedHandler_Nil_Cov9(t *testing.T) { h := NewCaptainTaskExtendedHandler(nil) assert.NotNil(t, h) } func TestNewCaptainTaskHandler_Nil_Cov9(t *testing.T) { h := NewCaptainTaskHandler(nil) assert.NotNil(t, h) } func TestNewCampaignHandler_Nil_Cov9(t *testing.T) { h := NewCampaignHandler(nil) assert.NotNil(t, h) } func TestNewCompanyHandler_Nil_Cov9(t *testing.T) { h := NewCompanyHandler(nil) assert.NotNil(t, h) } func TestNewContactInboxHandler_Nil_Cov9(t *testing.T) { h := NewContactInboxHandler(nil) assert.NotNil(t, h) } // ================================================================= // ArticleHandler nil-service handler method tests // ================================================================= func TestArticleHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestArticleHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestArticleHandler_Edit_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Edit(c) }) } func TestArticleHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestArticleHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestArticleHandler_List_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestArticleHandler_ListByCategory_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"category_id": "1"}) safeCall_Cov9(t, func() { h.ListByCategory(c) }) } func TestArticleHandler_Search_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtx_Cov9("GET", "/?q=test") safeCall_Cov9(t, func() { h.Search(c) }) } func TestArticleHandler_SemanticSearch_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtx_Cov9("GET", "/?q=test") safeCall_Cov9(t, func() { h.SemanticSearch(c) }) } func TestArticleHandler_StatusCounts_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.StatusCounts(c) }) } func TestArticleHandler_Reorder_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `[]`) safeCall_Cov9(t, func() { h.Reorder(c) }) } func TestArticleHandler_BulkUpdateStatus_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.BulkUpdateStatus(c) }) } func TestArticleHandler_BulkUpdateCategory_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.BulkUpdateCategory(c) }) } func TestArticleHandler_BulkDelete_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.BulkDelete(c) }) } func TestArticleHandler_BulkTranslate_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.BulkTranslate(c) }) } func TestArticleHandler_BulkActions_NoSvc_Cov9(t *testing.T) { h := NewArticleHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.BulkActions(c) }) } // ================================================================= // CampaignHandler nil-service handler method tests // ================================================================= func TestCampaignHandler_List_NoSvc_Cov9(t *testing.T) { h := NewCampaignHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestCampaignHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewCampaignHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestCampaignHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewCampaignHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestCampaignHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewCampaignHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestCampaignHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewCampaignHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestCampaignHandler_Start_NoSvc_Cov9(t *testing.T) { h := NewCampaignHandler(nil) c, _ := newCtxParams_Cov9("POST", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Start(c) }) } func TestCampaignHandler_Stop_NoSvc_Cov9(t *testing.T) { h := NewCampaignHandler(nil) c, _ := newCtxParams_Cov9("POST", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Stop(c) }) } // ================================================================= // CompanyHandler nil-service handler method tests // ================================================================= func TestCompanyHandler_List_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestCompanyHandler_Search_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtx_Cov9("GET", "/?q=test") safeCall_Cov9(t, func() { h.Search(c) }) } func TestCompanyHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestCompanyHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestCompanyHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestCompanyHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestCompanyHandler_DestroyCustomAttributes_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.DestroyCustomAttributes(c) }) } func TestCompanyHandler_DeleteAvatar_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.DeleteAvatar(c) }) } func TestCompanyHandler_ListContacts_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.ListContacts(c) }) } func TestCompanyHandler_ListConversations_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.ListConversations(c) }) } func TestCompanyHandler_SearchContacts_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.SearchContacts(c) }) } func TestCompanyHandler_ListNotes_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.ListNotes(c) }) } func TestCompanyHandler_CreateNote_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.CreateNote(c) }) } func TestCompanyHandler_DeleteNote_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1", "note_id": "1"}) safeCall_Cov9(t, func() { h.DeleteNote(c) }) } func TestCompanyHandler_AddContact_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.AddContact(c) }) } func TestCompanyHandler_RemoveContact_NoSvc_Cov9(t *testing.T) { h := NewCompanyHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1", "contact_id": "1"}) safeCall_Cov9(t, func() { h.RemoveContact(c) }) } // ================================================================= // DashboardAppHandler nil-service handler method tests // ================================================================= func TestDashboardAppHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewDashboardAppHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestDashboardAppHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewDashboardAppHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestDashboardAppHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewDashboardAppHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestDashboardAppHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewDashboardAppHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestDashboardAppHandler_Patch_NoSvc_Cov9(t *testing.T) { h := NewDashboardAppHandler(nil) c, _ := newCtxBody_Cov9("PATCH", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Patch(c) }) } func TestDashboardAppHandler_List_NoSvc_Cov9(t *testing.T) { h := NewDashboardAppHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestDashboardAppHandler_Search_NoSvc_Cov9(t *testing.T) { h := NewDashboardAppHandler(nil) c, _ := newCtx_Cov9("GET", "/?q=test") safeCall_Cov9(t, func() { h.Search(c) }) } func TestDashboardAppHandler_GetWidgets_NoSvc_Cov9(t *testing.T) { h := NewDashboardAppHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.GetWidgets(c) }) } func TestDashboardAppHandler_AddWidget_NoSvc_Cov9(t *testing.T) { h := NewDashboardAppHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.AddWidget(c) }) } func TestDashboardAppHandler_RemoveWidget_NoSvc_Cov9(t *testing.T) { h := NewDashboardAppHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1", "widget_id": "1"}) safeCall_Cov9(t, func() { h.RemoveWidget(c) }) } func TestDashboardAppHandler_UpdateWidget_NoSvc_Cov9(t *testing.T) { h := NewDashboardAppHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}, {Key: "widget_id", Value: "1"}} safeCall_Cov9(t, func() { h.UpdateWidget(c) }) } // ================================================================= // CopilotConfigHandler nil-service handler method tests // ================================================================= func TestCopilotConfigHandler_PlatformGet_NoSvc_Cov9(t *testing.T) { h := NewCopilotConfigHandler(nil, nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.PlatformGet(c) }) } func TestCopilotConfigHandler_PlatformUpdate_NoSvc_Cov9(t *testing.T) { h := NewCopilotConfigHandler(nil, nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.PlatformUpdate(c) }) } func TestCopilotConfigHandler_PlatformTest_NoSvc_Cov9(t *testing.T) { h := NewCopilotConfigHandler(nil, nil) c, _ := newCtx_Cov9("POST", "/") safeCall_Cov9(t, func() { h.PlatformTest(c) }) } func TestCopilotConfigHandler_PlatformEmbeddingReindexStatus_NoSvc_Cov9(t *testing.T) { h := NewCopilotConfigHandler(nil, nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.PlatformEmbeddingReindexStatus(c) }) } func TestCopilotConfigHandler_PlatformEmbeddingReindexStart_NoSvc_Cov9(t *testing.T) { h := NewCopilotConfigHandler(nil, nil) c, _ := newCtx_Cov9("POST", "/") safeCall_Cov9(t, func() { h.PlatformEmbeddingReindexStart(c) }) } func TestCopilotConfigHandler_AccountGet_NoSvc_Cov9(t *testing.T) { h := NewCopilotConfigHandler(nil, nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.AccountGet(c) }) } func TestCopilotConfigHandler_AccountUpdate_NoSvc_Cov9(t *testing.T) { h := NewCopilotConfigHandler(nil, nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.AccountUpdate(c) }) } // ================================================================= // CopilotHandler nil-service handler method tests // ================================================================= func TestCopilotHandler_CreateThread_NoSvc_Cov9(t *testing.T) { h := NewCopilotHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.CreateThread(c) }) } func TestCopilotHandler_GetThread_NoSvc_Cov9(t *testing.T) { h := NewCopilotHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.GetThread(c) }) } func TestCopilotHandler_ListThreads_NoSvc_Cov9(t *testing.T) { h := NewCopilotHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListThreads(c) }) } func TestCopilotHandler_SendMessage_NoSvc_Cov9(t *testing.T) { h := NewCopilotHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.SendMessage(c) }) } func TestCopilotHandler_GetSuggestedReplies_NoSvc_Cov9(t *testing.T) { h := NewCopilotHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetSuggestedReplies(c) }) } func TestCopilotHandler_SummarizeConversation_NoSvc_Cov9(t *testing.T) { h := NewCopilotHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.SummarizeConversation(c) }) } func TestCopilotHandler_DeleteThread_NoSvc_Cov9(t *testing.T) { h := NewCopilotHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.DeleteThread(c) }) } func TestCopilotHandler_TranslateMessage_NoSvc_Cov9(t *testing.T) { h := NewCopilotHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.TranslateMessage(c) }) } func TestCopilotHandler_ListSuggestionMessages_NoSvc_Cov9(t *testing.T) { h := NewCopilotHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListSuggestionMessages(c) }) } func TestCopilotHandler_CreateSuggestionMessage_NoSvc_Cov9(t *testing.T) { h := NewCopilotHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.CreateSuggestionMessage(c) }) } // ================================================================= // CaptainAssistantHandler nil-service handler method tests // ================================================================= func TestCaptainAssistantHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestCaptainAssistantHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestCaptainAssistantHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestCaptainAssistantHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestCaptainAssistantHandler_List_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestCaptainAssistantHandler_Stats_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Stats(c) }) } func TestCaptainAssistantHandler_Summary_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Summary(c) }) } func TestCaptainAssistantHandler_Drilldown_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Drilldown(c) }) } func TestCaptainAssistantHandler_CreateMessageReport_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.CreateMessageReport(c) }) } func TestCaptainAssistantHandler_GetConfig_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetConfig(c) }) } func TestCaptainAssistantHandler_SetConfig_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.SetConfig(c) }) } func TestCaptainAssistantHandler_AssociateInbox_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.AssociateInbox(c) }) } func TestCaptainAssistantHandler_DissociateInbox_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtxBody_Cov9("DELETE", "/", `{}`) safeCall_Cov9(t, func() { h.DissociateInbox(c) }) } func TestCaptainAssistantHandler_ListInboxes_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListInboxes(c) }) } func TestCaptainAssistantHandler_GenerateResponse_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.GenerateResponse(c) }) } // ================================================================= // CaptainCustomToolHandler nil-service handler method tests // ================================================================= func TestCaptainCustomToolHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewCaptainCustomToolHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestCaptainCustomToolHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewCaptainCustomToolHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestCaptainCustomToolHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewCaptainCustomToolHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestCaptainCustomToolHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewCaptainCustomToolHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestCaptainCustomToolHandler_List_NoSvc_Cov9(t *testing.T) { h := NewCaptainCustomToolHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestCaptainCustomToolHandler_ExecuteTool_NoSvc_Cov9(t *testing.T) { h := NewCaptainCustomToolHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.ExecuteTool(c) }) } func TestCaptainCustomToolHandler_TestTool_NoSvc_Cov9(t *testing.T) { h := NewCaptainCustomToolHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.TestTool(c) }) } // ================================================================= // CaptainDocumentHandler nil-service handler method tests // ================================================================= func TestCaptainDocumentHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewCaptainDocumentHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestCaptainDocumentHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewCaptainDocumentHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestCaptainDocumentHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewCaptainDocumentHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestCaptainDocumentHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewCaptainDocumentHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestCaptainDocumentHandler_List_NoSvc_Cov9(t *testing.T) { h := NewCaptainDocumentHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestCaptainDocumentHandler_ProcessDocument_NoSvc_Cov9(t *testing.T) { h := NewCaptainDocumentHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.ProcessDocument(c) }) } func TestCaptainDocumentHandler_SyncDocument_NoSvc_Cov9(t *testing.T) { h := NewCaptainDocumentHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.SyncDocument(c) }) } // ================================================================= // CaptainPreferenceHandler nil-service handler method tests // ================================================================= func TestCaptainPreferenceHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewCaptainPreferenceHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestCaptainPreferenceHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewCaptainPreferenceHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Get(c) }) } func TestCaptainPreferenceHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewCaptainPreferenceHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.Update(c) }) } func TestCaptainPreferenceHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewCaptainPreferenceHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Delete(c) }) } // ================================================================= // CaptainScenarioHandler nil-service handler method tests // ================================================================= func TestCaptainScenarioHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewCaptainScenarioHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestCaptainScenarioHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewCaptainScenarioHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestCaptainScenarioHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewCaptainScenarioHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestCaptainScenarioHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewCaptainScenarioHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestCaptainScenarioHandler_List_NoSvc_Cov9(t *testing.T) { h := NewCaptainScenarioHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } // ================================================================= // CaptainTaskHandler nil-service handler method tests // ================================================================= func TestCaptainTaskHandler_ReplySuggestion_NoSvc_Cov9(t *testing.T) { h := NewCaptainTaskHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.ReplySuggestion(c) }) } func TestCaptainTaskHandler_Summarize_NoSvc_Cov9(t *testing.T) { h := NewCaptainTaskHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Summarize(c) }) } func TestCaptainTaskHandler_Rewrite_NoSvc_Cov9(t *testing.T) { h := NewCaptainTaskHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Rewrite(c) }) } func TestCaptainTaskHandler_StreamReplySuggestion_NoSvc_Cov9(t *testing.T) { h := NewCaptainTaskHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.StreamReplySuggestion(c) }) } func TestCaptainTaskHandler_StreamSummarize_NoSvc_Cov9(t *testing.T) { h := NewCaptainTaskHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.StreamSummarize(c) }) } func TestCaptainTaskHandler_StreamRewrite_NoSvc_Cov9(t *testing.T) { h := NewCaptainTaskHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.StreamRewrite(c) }) } // ================================================================= // CaptainTaskExtendedHandler nil-service handler method tests // ================================================================= func TestCaptainTaskExtendedHandler_LabelSuggestion_NoSvc_Cov9(t *testing.T) { h := NewCaptainTaskExtendedHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.LabelSuggestion(c) }) } func TestCaptainTaskExtendedHandler_FollowUp_NoSvc_Cov9(t *testing.T) { h := NewCaptainTaskExtendedHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.FollowUp(c) }) } // ================================================================= // CaptainAssistantResponseHandler nil-service handler method tests // ================================================================= func TestCaptainAssistantResponseHandler_ProcessResponse_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantResponseHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.ProcessResponse(c) }) } func TestCaptainAssistantResponseHandler_List_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantResponseHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestCaptainAssistantResponseHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantResponseHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestCaptainAssistantResponseHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantResponseHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestCaptainAssistantResponseHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantResponseHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestCaptainAssistantResponseHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewCaptainAssistantResponseHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } // ================================================================= // CaptainBulkActionHandler nil-service handler method tests // ================================================================= func TestCaptainBulkActionHandler_Execute_NoSvc_Cov9(t *testing.T) { h := NewCaptainBulkActionHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Execute(c) }) } // ================================================================= // CaptainConversationHandler nil-service handler method tests // ================================================================= func TestCaptainConversationHandler_BuildResponse_NoSvc_Cov9(t *testing.T) { h := NewCaptainConversationHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.BuildResponse(c) }) } // ================================================================= // CsatMetricsHandler nil-service handler method tests // ================================================================= func TestCsatMetricsHandler_Metrics_NoSvc_Cov9(t *testing.T) { h := NewCsatMetricsHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Metrics(c) }) } func TestCsatMetricsHandler_Download_NoSvc_Cov9(t *testing.T) { h := NewCsatMetricsHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Download(c) }) } // ================================================================= // CsatSurveyHandler nil-service handler method tests // ================================================================= func TestCsatSurveyHandler_List_NoSvc_Cov9(t *testing.T) { h := NewCsatSurveyHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestCsatSurveyHandler_Metrics_NoSvc_Cov9(t *testing.T) { h := NewCsatSurveyHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Metrics(c) }) } func TestCsatSurveyHandler_UpdateReviewNotes_NoSvc_Cov9(t *testing.T) { h := NewCsatSurveyHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.UpdateReviewNotes(c) }) } func TestCsatSurveyHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewCsatSurveyHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestCsatSurveyHandler_PublicGet_NoSvc_Cov9(t *testing.T) { h := NewCsatSurveyHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.PublicGet(c) }) } func TestCsatSurveyHandler_PublicUpdate_NoSvc_Cov9(t *testing.T) { h := NewCsatSurveyHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.PublicUpdate(c) }) } func TestCsatSurveyHandler_Download_NoSvc_Cov9(t *testing.T) { h := NewCsatSurveyHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Download(c) }) } // ================================================================= // CustomAttributeDefinitionHandler nil-service handler method tests // ================================================================= func TestCustomAttributeDefinitionHandler_List_NoSvc_Cov9(t *testing.T) { h := NewCustomAttributeDefinitionHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestCustomAttributeDefinitionHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewCustomAttributeDefinitionHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestCustomAttributeDefinitionHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewCustomAttributeDefinitionHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestCustomAttributeDefinitionHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewCustomAttributeDefinitionHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestCustomAttributeDefinitionHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewCustomAttributeDefinitionHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } // ================================================================= // CustomAttributeValueHandler nil-service handler method tests // ================================================================= func TestCustomAttributeValueHandler_SetConversationAttribute_NoSvc_Cov9(t *testing.T) { h := NewCustomAttributeValueHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.SetConversationAttribute(c) }) } func TestCustomAttributeValueHandler_RemoveConversationAttribute_NoSvc_Cov9(t *testing.T) { h := NewCustomAttributeValueHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.RemoveConversationAttribute(c) }) } func TestCustomAttributeValueHandler_SetContactAttribute_NoSvc_Cov9(t *testing.T) { h := NewCustomAttributeValueHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.SetContactAttribute(c) }) } func TestCustomAttributeValueHandler_RemoveContactAttribute_NoSvc_Cov9(t *testing.T) { h := NewCustomAttributeValueHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.RemoveContactAttribute(c) }) } // ================================================================= // CustomFilterHandler nil-service handler method tests // ================================================================= func TestCustomFilterHandler_List_NoSvc_Cov9(t *testing.T) { h := NewCustomFilterHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestCustomFilterHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewCustomFilterHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestCustomFilterHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewCustomFilterHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestCustomFilterHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewCustomFilterHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestCustomFilterHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewCustomFilterHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } // ================================================================= // CustomRoleHandler nil-service handler method tests // ================================================================= func TestCustomRoleHandler_List_NoSvc_Cov9(t *testing.T) { h := NewCustomRoleHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestCustomRoleHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewCustomRoleHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestCustomRoleHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewCustomRoleHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestCustomRoleHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewCustomRoleHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestCustomRoleHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewCustomRoleHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } // ================================================================= // DraftMessageHandler nil-service handler method tests // ================================================================= func TestDraftMessageHandler_Show_NoSvc_Cov9(t *testing.T) { h := NewDraftMessageHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Show(c) }) } func TestDraftMessageHandler_UpdateConversationDraft_NoSvc_Cov9(t *testing.T) { h := NewDraftMessageHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.UpdateConversationDraft(c) }) } func TestDraftMessageHandler_DeleteConversationDraft_NoSvc_Cov9(t *testing.T) { h := NewDraftMessageHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.DeleteConversationDraft(c) }) } func TestDraftMessageHandler_List_NoSvc_Cov9(t *testing.T) { h := NewDraftMessageHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestDraftMessageHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewDraftMessageHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestDraftMessageHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewDraftMessageHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestDraftMessageHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewDraftMessageHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestDraftMessageHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewDraftMessageHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestDraftMessageHandler_Search_NoSvc_Cov9(t *testing.T) { h := NewDraftMessageHandler(nil) c, _ := newCtx_Cov9("GET", "/?q=test") safeCall_Cov9(t, func() { h.Search(c) }) } func TestDraftMessageHandler_Count_NoSvc_Cov9(t *testing.T) { h := NewDraftMessageHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Count(c) }) } // ================================================================= // DeliveryStatusHandler nil-service handler method tests // ================================================================= func TestDeliveryStatusHandler_List_NoSvc_Cov9(t *testing.T) { h := NewDeliveryStatusHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } // ================================================================= // DyteIntegrationHandler nil-service handler method tests // ================================================================= func TestDyteIntegrationHandler_CreateMeeting_NoSvc_Cov9(t *testing.T) { h := NewDyteIntegrationHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.CreateMeeting(c) }) } func TestDyteIntegrationHandler_AddParticipant_NoSvc_Cov9(t *testing.T) { h := NewDyteIntegrationHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.AddParticipant(c) }) } // ================================================================= // EmailChannelMigrationHandler nil-service handler method tests // ================================================================= func TestEmailChannelMigrationHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewEmailChannelMigrationHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestEmailChannelMigrationHandler_List_NoSvc_Cov9(t *testing.T) { h := NewEmailChannelMigrationHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } // ================================================================= // EnterpriseAccountHandler nil-service handler method tests // ================================================================= func TestEnterpriseAccountHandler_Limits_NoSvc_Cov9(t *testing.T) { h := NewEnterpriseAccountHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Limits(c) }) } func TestEnterpriseAccountHandler_ToggleDeletion_NoSvc_Cov9(t *testing.T) { h := NewEnterpriseAccountHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.ToggleDeletion(c) }) } func TestEnterpriseAccountHandler_Subscription_NoSvc_Cov9(t *testing.T) { h := NewEnterpriseAccountHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Subscription(c) }) } func TestEnterpriseAccountHandler_Checkout_NoSvc_Cov9(t *testing.T) { h := NewEnterpriseAccountHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Checkout(c) }) } func TestEnterpriseAccountHandler_TopupCheckout_NoSvc_Cov9(t *testing.T) { h := NewEnterpriseAccountHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.TopupCheckout(c) }) } func TestEnterpriseAccountHandler_SelectBillingCurrency_NoSvc_Cov9(t *testing.T) { h := NewEnterpriseAccountHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.SelectBillingCurrency(c) }) } func TestEnterpriseAccountHandler_TopupOptions_NoSvc_Cov9(t *testing.T) { h := NewEnterpriseAccountHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.TopupOptions(c) }) } // ================================================================= // FolderHandler nil-service handler method tests // ================================================================= func TestFolderHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewFolderHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestFolderHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewFolderHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestFolderHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewFolderHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestFolderHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewFolderHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestFolderHandler_List_NoSvc_Cov9(t *testing.T) { h := NewFolderHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } // ================================================================= // InboxCsatTemplateHandler nil-service handler method tests // ================================================================= func TestInboxCsatTemplateHandler_Show_NoSvc_Cov9(t *testing.T) { h := NewInboxCsatTemplateHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Show(c) }) } func TestInboxCsatTemplateHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewInboxCsatTemplateHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestInboxCsatTemplateHandler_Analyze_NoSvc_Cov9(t *testing.T) { h := NewInboxCsatTemplateHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Analyze(c) }) } // ================================================================= // InboxLimitHandler nil-service handler method tests // ================================================================= func TestInboxLimitHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewInboxLimitHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestInboxLimitHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewInboxLimitHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.Update(c) }) } func TestInboxLimitHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewInboxLimitHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Delete(c) }) } // ================================================================= // InboxMemberHandler nil-service handler method tests // ================================================================= func TestInboxMemberHandler_ListMembers_NoSvc_Cov9(t *testing.T) { h := NewInboxMemberHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListMembers(c) }) } func TestInboxMemberHandler_AddMember_NoSvc_Cov9(t *testing.T) { h := NewInboxMemberHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.AddMember(c) }) } func TestInboxMemberHandler_RemoveMember_NoSvc_Cov9(t *testing.T) { h := NewInboxMemberHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.RemoveMember(c) }) } func TestInboxMemberHandler_UpdateMember_NoSvc_Cov9(t *testing.T) { h := NewInboxMemberHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.UpdateMember(c) }) } func TestInboxMemberHandler_UpdateMultiple_NoSvc_Cov9(t *testing.T) { h := NewInboxMemberHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.UpdateMultiple(c) }) } func TestInboxMemberHandler_ShowAccountScoped_NoSvc_Cov9(t *testing.T) { h := NewInboxMemberHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ShowAccountScoped(c) }) } func TestInboxMemberHandler_CreateAccountScoped_NoSvc_Cov9(t *testing.T) { h := NewInboxMemberHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.CreateAccountScoped(c) }) } func TestInboxMemberHandler_UpdateAccountScoped_NoSvc_Cov9(t *testing.T) { h := NewInboxMemberHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.UpdateAccountScoped(c) }) } func TestInboxMemberHandler_DestroyAccountScoped_NoSvc_Cov9(t *testing.T) { h := NewInboxMemberHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.DestroyAccountScoped(c) }) } // ================================================================= // InstallationConfigHandler nil-service handler method tests // ================================================================= func TestInstallationConfigHandler_List_NoSvc_Cov9(t *testing.T) { h := NewInstallationConfigHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestInstallationConfigHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewInstallationConfigHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Get(c) }) } func TestInstallationConfigHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewInstallationConfigHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestInstallationConfigHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewInstallationConfigHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.Update(c) }) } func TestInstallationConfigHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewInstallationConfigHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Delete(c) }) } // ================================================================= // IntegrationHookHandler nil-service handler method tests // ================================================================= func TestIntegrationHookHandler_ListApps_NoSvc_Cov9(t *testing.T) { h := NewIntegrationHookHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListApps(c) }) } func TestIntegrationHookHandler_GetApp_NoSvc_Cov9(t *testing.T) { h := NewIntegrationHookHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetApp(c) }) } func TestIntegrationHookHandler_ListHooks_NoSvc_Cov9(t *testing.T) { h := NewIntegrationHookHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListHooks(c) }) } func TestIntegrationHookHandler_GetHook_NoSvc_Cov9(t *testing.T) { h := NewIntegrationHookHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetHook(c) }) } func TestIntegrationHookHandler_CreateHook_NoSvc_Cov9(t *testing.T) { h := NewIntegrationHookHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.CreateHook(c) }) } func TestIntegrationHookHandler_UpdateHook_NoSvc_Cov9(t *testing.T) { h := NewIntegrationHookHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.UpdateHook(c) }) } func TestIntegrationHookHandler_DeleteHook_NoSvc_Cov9(t *testing.T) { h := NewIntegrationHookHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.DeleteHook(c) }) } func TestIntegrationHookHandler_ProcessHookEvent_NoSvc_Cov9(t *testing.T) { h := NewIntegrationHookHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.ProcessHookEvent(c) }) } // ================================================================= // LabelHandler nil-service handler method tests // ================================================================= func TestLabelHandler_CreateTag_NoSvc_Cov9(t *testing.T) { h := NewLabelHandler(nil, nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.CreateTag(c) }) } func TestLabelHandler_GetTag_NoSvc_Cov9(t *testing.T) { h := NewLabelHandler(nil, nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetTag(c) }) } func TestLabelHandler_ListTags_NoSvc_Cov9(t *testing.T) { h := NewLabelHandler(nil, nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListTags(c) }) } func TestLabelHandler_UpdateTag_NoSvc_Cov9(t *testing.T) { h := NewLabelHandler(nil, nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.UpdateTag(c) }) } func TestLabelHandler_DeleteTag_NoSvc_Cov9(t *testing.T) { h := NewLabelHandler(nil, nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.DeleteTag(c) }) } func TestLabelHandler_AddLabelToConversation_NoSvc_Cov9(t *testing.T) { h := NewLabelHandler(nil, nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.AddLabelToConversation(c) }) } func TestLabelHandler_RemoveLabelFromConversation_NoSvc_Cov9(t *testing.T) { h := NewLabelHandler(nil, nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.RemoveLabelFromConversation(c) }) } func TestLabelHandler_GetConversationLabels_NoSvc_Cov9(t *testing.T) { h := NewLabelHandler(nil, nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetConversationLabels(c) }) } func TestLabelHandler_ReplaceConversationLabels_NoSvc_Cov9(t *testing.T) { h := NewLabelHandler(nil, nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.ReplaceConversationLabels(c) }) } func TestLabelHandler_BatchAddLabel_NoSvc_Cov9(t *testing.T) { h := NewLabelHandler(nil, nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.BatchAddLabel(c) }) } func TestLabelHandler_BatchRemoveLabel_NoSvc_Cov9(t *testing.T) { h := NewLabelHandler(nil, nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.BatchRemoveLabel(c) }) } func TestLabelHandler_GetConversationsByTag_NoSvc_Cov9(t *testing.T) { h := NewLabelHandler(nil, nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetConversationsByTag(c) }) } // ================================================================= // LinearIntegrationHandler nil-service handler method tests // ================================================================= func TestLinearIntegrationHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewLinearIntegrationHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Delete(c) }) } func TestLinearIntegrationHandler_GetTeams_NoSvc_Cov9(t *testing.T) { h := NewLinearIntegrationHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetTeams(c) }) } func TestLinearIntegrationHandler_GetTeamEntities_NoSvc_Cov9(t *testing.T) { h := NewLinearIntegrationHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetTeamEntities(c) }) } func TestLinearIntegrationHandler_CreateIssue_NoSvc_Cov9(t *testing.T) { h := NewLinearIntegrationHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.CreateIssue(c) }) } func TestLinearIntegrationHandler_LinkIssue_NoSvc_Cov9(t *testing.T) { h := NewLinearIntegrationHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.LinkIssue(c) }) } func TestLinearIntegrationHandler_UnlinkIssue_NoSvc_Cov9(t *testing.T) { h := NewLinearIntegrationHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.UnlinkIssue(c) }) } func TestLinearIntegrationHandler_SearchIssue_NoSvc_Cov9(t *testing.T) { h := NewLinearIntegrationHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.SearchIssue(c) }) } func TestLinearIntegrationHandler_GetLinkedIssues_NoSvc_Cov9(t *testing.T) { h := NewLinearIntegrationHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetLinkedIssues(c) }) } // ================================================================= // LiveReportHandler nil-service handler method tests // ================================================================= func TestLiveReportHandler_ConversationMetrics_NoSvc_Cov9(t *testing.T) { h := NewLiveReportHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ConversationMetrics(c) }) } func TestLiveReportHandler_GroupedConversationMetrics_NoSvc_Cov9(t *testing.T) { h := NewLiveReportHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GroupedConversationMetrics(c) }) } // ================================================================= // MacroHandler nil-service handler method tests // ================================================================= func TestMacroHandler_List_NoSvc_Cov9(t *testing.T) { h := NewMacroHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestMacroHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewMacroHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestMacroHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewMacroHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestMacroHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewMacroHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestMacroHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewMacroHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestMacroHandler_Execute_NoSvc_Cov9(t *testing.T) { h := NewMacroHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Execute(c) }) } func TestMacroHandler_Clone_NoSvc_Cov9(t *testing.T) { h := NewMacroHandler(nil) c, _ := newCtx_Cov9("POST", "/") c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Clone(c) }) } func TestMacroHandler_ToggleActive_NoSvc_Cov9(t *testing.T) { h := NewMacroHandler(nil) c, _ := newCtx_Cov9("POST", "/") c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.ToggleActive(c) }) } // ================================================================= // MessageHandler nil-service handler method tests // ================================================================= func TestMessageHandler_List_NoSvc_Cov9(t *testing.T) { h := NewMessageHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestMessageHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewMessageHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestMessageHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewMessageHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Get(c) }) } func TestMessageHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewMessageHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.Update(c) }) } func TestMessageHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewMessageHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Delete(c) }) } func TestMessageHandler_Search_NoSvc_Cov9(t *testing.T) { h := NewMessageHandler(nil) c, _ := newCtx_Cov9("GET", "/?q=test") safeCall_Cov9(t, func() { h.Search(c) }) } func TestMessageHandler_Retry_NoSvc_Cov9(t *testing.T) { h := NewMessageHandler(nil) c, _ := newCtx_Cov9("POST", "/") safeCall_Cov9(t, func() { h.Retry(c) }) } func TestMessageHandler_Translate_NoSvc_Cov9(t *testing.T) { h := NewMessageHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Translate(c) }) } // ================================================================= // NoteHandler nil-service handler method tests // ================================================================= func TestNoteHandler_List_NoSvc_Cov9(t *testing.T) { h := NewNoteHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestNoteHandler_Show_NoSvc_Cov9(t *testing.T) { h := NewNoteHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Show(c) }) } func TestNoteHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewNoteHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestNoteHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewNoteHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.Update(c) }) } func TestNoteHandler_Destroy_NoSvc_Cov9(t *testing.T) { h := NewNoteHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Destroy(c) }) } // ================================================================= // NotificationHandler nil-service handler method tests // ================================================================= func TestNotificationHandler_List_NoSvc_Cov9(t *testing.T) { h := NewNotificationHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestNotificationHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewNotificationHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Get(c) }) } func TestNotificationHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewNotificationHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.Update(c) }) } func TestNotificationHandler_MarkAllRead_NoSvc_Cov9(t *testing.T) { h := NewNotificationHandler(nil) c, _ := newCtx_Cov9("POST", "/") safeCall_Cov9(t, func() { h.MarkAllRead(c) }) } func TestNotificationHandler_UnreadCount_NoSvc_Cov9(t *testing.T) { h := NewNotificationHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.UnreadCount(c) }) } func TestNotificationHandler_Snooze_NoSvc_Cov9(t *testing.T) { h := NewNotificationHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Snooze(c) }) } func TestNotificationHandler_Unread_NoSvc_Cov9(t *testing.T) { h := NewNotificationHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Unread(c) }) } func TestNotificationHandler_Destroy_NoSvc_Cov9(t *testing.T) { h := NewNotificationHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Destroy(c) }) } func TestNotificationHandler_DestroyAll_NoSvc_Cov9(t *testing.T) { h := NewNotificationHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.DestroyAll(c) }) } // ================================================================= // NotificationSettingHandler nil-service handler method tests // ================================================================= func TestNotificationSettingHandler_Show_NoSvc_Cov9(t *testing.T) { h := NewNotificationSettingHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Show(c) }) } func TestNotificationSettingHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewNotificationSettingHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.Update(c) }) } // ================================================================= // NotificationSubscriptionHandler nil-service handler method tests // ================================================================= func TestNotificationSubscriptionHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewNotificationSubscriptionHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestNotificationSubscriptionHandler_Destroy_NoSvc_Cov9(t *testing.T) { h := NewNotificationSubscriptionHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Destroy(c) }) } // ================================================================= // NotionIntegrationHandler nil-service handler method tests // ================================================================= func TestNotionIntegrationHandler_Authorization_NoSvc_Cov9(t *testing.T) { h := NewNotionIntegrationHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Authorization(c) }) } func TestNotionIntegrationHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewNotionIntegrationHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Delete(c) }) } // ================================================================= // PlatformAppHandler nil-service handler method tests // ================================================================= func TestPlatformAppHandler_List_NoSvc_Cov9(t *testing.T) { h := NewPlatformAppHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestPlatformAppHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewPlatformAppHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Get(c) }) } func TestPlatformAppHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewPlatformAppHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestPlatformAppHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewPlatformAppHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.Update(c) }) } func TestPlatformAppHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewPlatformAppHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Delete(c) }) } func TestPlatformAppHandler_RegenerateAccessToken_NoSvc_Cov9(t *testing.T) { h := NewPlatformAppHandler(nil) c, _ := newCtx_Cov9("POST", "/") safeCall_Cov9(t, func() { h.RegenerateAccessToken(c) }) } func TestPlatformAppHandler_ListAccessTokens_NoSvc_Cov9(t *testing.T) { h := NewPlatformAppHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListAccessTokens(c) }) } func TestPlatformAppHandler_AddPermissible_NoSvc_Cov9(t *testing.T) { h := NewPlatformAppHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.AddPermissible(c) }) } func TestPlatformAppHandler_RemovePermissible_NoSvc_Cov9(t *testing.T) { h := NewPlatformAppHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.RemovePermissible(c) }) } func TestPlatformAppHandler_ListPermissibles_NoSvc_Cov9(t *testing.T) { h := NewPlatformAppHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListPermissibles(c) }) } func TestPlatformAppHandler_Search_NoSvc_Cov9(t *testing.T) { h := NewPlatformAppHandler(nil) c, _ := newCtx_Cov9("GET", "/?q=test") safeCall_Cov9(t, func() { h.Search(c) }) } // ================================================================= // PortalHandler nil-service handler method tests // ================================================================= func TestPortalHandler_PublicRedirectDefaultLocale_NoSvc_Cov9(t *testing.T) { h := NewPortalHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.PublicRedirectDefaultLocale(c) }) } func TestPortalHandler_PublicGet_NoSvc_Cov9(t *testing.T) { h := NewPortalHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.PublicGet(c) }) } func TestPortalHandler_PublicSitemap_NoSvc_Cov9(t *testing.T) { h := NewPortalHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.PublicSitemap(c) }) } func TestPortalHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewPortalHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestPortalHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewPortalHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestPortalHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewPortalHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestPortalHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewPortalHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestPortalHandler_List_NoSvc_Cov9(t *testing.T) { h := NewPortalHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestPortalHandler_Archive_NoSvc_Cov9(t *testing.T) { h := NewPortalHandler(nil) c, _ := newCtx_Cov9("POST", "/") c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Archive(c) }) } func TestPortalHandler_RemoveLogo_NoSvc_Cov9(t *testing.T) { h := NewPortalHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.RemoveLogo(c) }) } func TestPortalHandler_SendInstructions_NoSvc_Cov9(t *testing.T) { h := NewPortalHandler(nil) c, _ := newCtx_Cov9("POST", "/") c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.SendInstructions(c) }) } func TestPortalHandler_SSLStatus_NoSvc_Cov9(t *testing.T) { h := NewPortalHandler(nil) c, _ := newCtx_Cov9("GET", "/") c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.SSLStatus(c) }) } // ================================================================= // PortalMemberHandler nil-service handler method tests // ================================================================= func TestPortalMemberHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewPortalMemberHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestPortalMemberHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewPortalMemberHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Get(c) }) } func TestPortalMemberHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewPortalMemberHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.Update(c) }) } func TestPortalMemberHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewPortalMemberHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Delete(c) }) } func TestPortalMemberHandler_List_NoSvc_Cov9(t *testing.T) { h := NewPortalMemberHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } // ================================================================= // ProfileHandler nil-service handler method tests // ================================================================= func TestProfileHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewProfileHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Get(c) }) } func TestProfileHandler_ListSessions_NoSvc_Cov9(t *testing.T) { h := NewProfileHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListSessions(c) }) } func TestProfileHandler_RevokeSession_NoSvc_Cov9(t *testing.T) { h := NewProfileHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.RevokeSession(c) }) } func TestProfileHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewProfileHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.Update(c) }) } func TestProfileHandler_UpdateAvatar_NoSvc_Cov9(t *testing.T) { h := NewProfileHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.UpdateAvatar(c) }) } func TestProfileHandler_SetAvailability_NoSvc_Cov9(t *testing.T) { h := NewProfileHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.SetAvailability(c) }) } func TestProfileHandler_SetAutoOffline_NoSvc_Cov9(t *testing.T) { h := NewProfileHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.SetAutoOffline(c) }) } func TestProfileHandler_SetActiveAccount_NoSvc_Cov9(t *testing.T) { h := NewProfileHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.SetActiveAccount(c) }) } func TestProfileHandler_ResendConfirmation_NoSvc_Cov9(t *testing.T) { h := NewProfileHandler(nil) c, _ := newCtx_Cov9("POST", "/") safeCall_Cov9(t, func() { h.ResendConfirmation(c) }) } func TestProfileHandler_ResetAccessToken_NoSvc_Cov9(t *testing.T) { h := NewProfileHandler(nil) c, _ := newCtx_Cov9("POST", "/") safeCall_Cov9(t, func() { h.ResetAccessToken(c) }) } func TestProfileHandler_DeleteAvatar_NoSvc_Cov9(t *testing.T) { h := NewProfileHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.DeleteAvatar(c) }) } // ================================================================= // PushSubscriptionHandler nil-service handler method tests // ================================================================= func TestPushSubscriptionHandler_List_NoSvc_Cov9(t *testing.T) { h := NewPushSubscriptionHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestPushSubscriptionHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewPushSubscriptionHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestPushSubscriptionHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewPushSubscriptionHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Delete(c) }) } // ================================================================= // RAGHandler nil-service handler method tests // ================================================================= func TestRAGHandler_Query_NoSvc_Cov9(t *testing.T) { h := NewRAGHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Query(c) }) } func TestRAGHandler_IndexResponse_NoSvc_Cov9(t *testing.T) { h := NewRAGHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.IndexResponse(c) }) } // ================================================================= // ReportingEventHandler nil-service handler method tests // ================================================================= func TestReportingEventHandler_List_NoSvc_Cov9(t *testing.T) { h := NewReportingEventHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } // ================================================================= // SearchHandler nil-service handler method tests // ================================================================= func TestSearchHandler_GlobalSearch_NoSvc_Cov9(t *testing.T) { h := NewSearchHandler(nil) c, _ := newCtx_Cov9("GET", "/?q=test") safeCall_Cov9(t, func() { h.GlobalSearch(c) }) } func TestSearchHandler_SearchConversations_NoSvc_Cov9(t *testing.T) { h := NewSearchHandler(nil) c, _ := newCtx_Cov9("GET", "/?q=test") safeCall_Cov9(t, func() { h.SearchConversations(c) }) } func TestSearchHandler_SearchMessages_NoSvc_Cov9(t *testing.T) { h := NewSearchHandler(nil) c, _ := newCtx_Cov9("GET", "/?q=test") safeCall_Cov9(t, func() { h.SearchMessages(c) }) } func TestSearchHandler_SearchContacts_NoSvc_Cov9(t *testing.T) { h := NewSearchHandler(nil) c, _ := newCtx_Cov9("GET", "/?q=test") safeCall_Cov9(t, func() { h.SearchContacts(c) }) } func TestSearchHandler_SearchArticles_NoSvc_Cov9(t *testing.T) { h := NewSearchHandler(nil) c, _ := newCtx_Cov9("GET", "/?q=test") safeCall_Cov9(t, func() { h.SearchArticles(c) }) } // ================================================================= // ShopifyIntegrationHandler nil-service handler method tests // ================================================================= func TestShopifyIntegrationHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewShopifyIntegrationHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Delete(c) }) } func TestShopifyIntegrationHandler_Auth_NoSvc_Cov9(t *testing.T) { h := NewShopifyIntegrationHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Auth(c) }) } func TestShopifyIntegrationHandler_GetOrders_NoSvc_Cov9(t *testing.T) { h := NewShopifyIntegrationHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetOrders(c) }) } // ================================================================= // SlackIntegrationHandler nil-service handler method tests // ================================================================= func TestSlackIntegrationHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewSlackIntegrationHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestSlackIntegrationHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewSlackIntegrationHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.Update(c) }) } func TestSlackIntegrationHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewSlackIntegrationHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Delete(c) }) } func TestSlackIntegrationHandler_ListAllChannels_NoSvc_Cov9(t *testing.T) { h := NewSlackIntegrationHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListAllChannels(c) }) } // ================================================================= // SlaPolicyHandler nil-service handler method tests // ================================================================= func TestSlaPolicyHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewSlaPolicyHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestSlaPolicyHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewSlaPolicyHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestSlaPolicyHandler_List_NoSvc_Cov9(t *testing.T) { h := NewSlaPolicyHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestSlaPolicyHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewSlaPolicyHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestSlaPolicyHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewSlaPolicyHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestSlaPolicyHandler_ListAppliedSlas_NoSvc_Cov9(t *testing.T) { h := NewSlaPolicyHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListAppliedSlas(c) }) } func TestSlaPolicyHandler_GetAppliedSlaMetrics_NoSvc_Cov9(t *testing.T) { h := NewSlaPolicyHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetAppliedSlaMetrics(c) }) } func TestSlaPolicyHandler_GetAppliedSlaDownload_NoSvc_Cov9(t *testing.T) { h := NewSlaPolicyHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetAppliedSlaDownload(c) }) } func TestSlaPolicyHandler_ListInboxes_NoSvc_Cov9(t *testing.T) { h := NewSlaPolicyHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListInboxes(c) }) } func TestSlaPolicyHandler_AddInbox_NoSvc_Cov9(t *testing.T) { h := NewSlaPolicyHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.AddInbox(c) }) } func TestSlaPolicyHandler_RemoveInbox_NoSvc_Cov9(t *testing.T) { h := NewSlaPolicyHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.RemoveInbox(c) }) } // ================================================================= // SSOSessionHandler nil-service handler method tests // ================================================================= func TestSSOSessionHandler_ListByUser_NoSvc_Cov9(t *testing.T) { h := NewSSOSessionHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListByUser(c) }) } func TestSSOSessionHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewSSOSessionHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Get(c) }) } func TestSSOSessionHandler_Terminate_NoSvc_Cov9(t *testing.T) { h := NewSSOSessionHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Terminate(c) }) } func TestSSOSessionHandler_TerminateAllByUser_NoSvc_Cov9(t *testing.T) { h := NewSSOSessionHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.TerminateAllByUser(c) }) } func TestSSOSessionHandler_CountByUser_NoSvc_Cov9(t *testing.T) { h := NewSSOSessionHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.CountByUser(c) }) } // ================================================================= // SummaryReportHandler nil-service handler method tests // ================================================================= func TestSummaryReportHandler_Agent_NoSvc_Cov9(t *testing.T) { h := NewSummaryReportHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Agent(c) }) } func TestSummaryReportHandler_Team_NoSvc_Cov9(t *testing.T) { h := NewSummaryReportHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Team(c) }) } func TestSummaryReportHandler_Inbox_NoSvc_Cov9(t *testing.T) { h := NewSummaryReportHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Inbox(c) }) } func TestSummaryReportHandler_Label_NoSvc_Cov9(t *testing.T) { h := NewSummaryReportHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Label(c) }) } func TestSummaryReportHandler_Channel_NoSvc_Cov9(t *testing.T) { h := NewSummaryReportHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Channel(c) }) } // ================================================================= // TeamHandler nil-service handler method tests // ================================================================= func TestTeamHandler_List_NoSvc_Cov9(t *testing.T) { h := NewTeamHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestTeamHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewTeamHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Get(c) }) } func TestTeamHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewTeamHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestTeamHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewTeamHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.Update(c) }) } func TestTeamHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewTeamHandler(nil) c, _ := newCtxParams_Cov9("DELETE", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.Delete(c) }) } func TestTeamHandler_AddMembers_NoSvc_Cov9(t *testing.T) { h := NewTeamHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.AddMembers(c) }) } func TestTeamHandler_RemoveMembers_NoSvc_Cov9(t *testing.T) { h := NewTeamHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.RemoveMembers(c) }) } func TestTeamHandler_ListMembers_NoSvc_Cov9(t *testing.T) { h := NewTeamHandler(nil) c, _ := newCtxParams_Cov9("GET", "/", map[string]string{"id": "1"}) safeCall_Cov9(t, func() { h.ListMembers(c) }) } func TestTeamHandler_UpdateMembers_NoSvc_Cov9(t *testing.T) { h := NewTeamHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) c.Params = gin.Params{{Key: "id", Value: "1"}} safeCall_Cov9(t, func() { h.UpdateMembers(c) }) } // ================================================================= // UploadHandler nil-service handler method tests // ================================================================= func TestUploadHandler_Upload_NoSvc_Cov9(t *testing.T) { h := NewUploadHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", ``) safeCall_Cov9(t, func() { h.Upload(c) }) } func TestUploadHandler_DirectUpload_NoSvc_Cov9(t *testing.T) { h := NewUploadHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.DirectUpload(c) }) } func TestUploadHandler_CompleteWidgetDirectUpload_NoSvc_Cov9(t *testing.T) { h := NewUploadHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.CompleteWidgetDirectUpload(c) }) } func TestUploadHandler_AccountDirectUpload_NoSvc_Cov9(t *testing.T) { h := NewUploadHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.AccountDirectUpload(c) }) } func TestUploadHandler_ConversationDirectUpload_NoSvc_Cov9(t *testing.T) { h := NewUploadHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.ConversationDirectUpload(c) }) } func TestUploadHandler_CompleteConversationDirectUpload_NoSvc_Cov9(t *testing.T) { h := NewUploadHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.CompleteConversationDirectUpload(c) }) } // ================================================================= // WebhookSubscriptionHandler nil-service handler method tests // ================================================================= func TestWebhookSubscriptionHandler_List_NoSvc_Cov9(t *testing.T) { h := NewWebhookSubscriptionHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestWebhookSubscriptionHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewWebhookSubscriptionHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Get(c) }) } func TestWebhookSubscriptionHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewWebhookSubscriptionHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestWebhookSubscriptionHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewWebhookSubscriptionHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.Update(c) }) } func TestWebhookSubscriptionHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewWebhookSubscriptionHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Delete(c) }) } func TestWebhookSubscriptionHandler_ListDeliveries_NoSvc_Cov9(t *testing.T) { h := NewWebhookSubscriptionHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListDeliveries(c) }) } // ================================================================= // WebWidgetHandler nil-service handler method tests // ================================================================= func TestWebWidgetHandler_CreateWebWidgetInbox_NoSvc_Cov9(t *testing.T) { h := NewWebWidgetHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.CreateWebWidgetInbox(c) }) } func TestWebWidgetHandler_GetWebWidgetConfig_NoSvc_Cov9(t *testing.T) { h := NewWebWidgetHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetWebWidgetConfig(c) }) } func TestWebWidgetHandler_UpdateWebWidgetConfig_NoSvc_Cov9(t *testing.T) { h := NewWebWidgetHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.UpdateWebWidgetConfig(c) }) } func TestWebWidgetHandler_DeleteWebWidgetInbox_NoSvc_Cov9(t *testing.T) { h := NewWebWidgetHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.DeleteWebWidgetInbox(c) }) } // ================================================================= // WebWidgetOfflineHandler nil-service handler method tests // ================================================================= func TestWebWidgetOfflineHandler_ListOfflineMessages_NoSvc_Cov9(t *testing.T) { h := NewWebWidgetOfflineHandler(nil, nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListOfflineMessages(c) }) } func TestWebWidgetOfflineHandler_ListOfflineMessagesByInbox_NoSvc_Cov9(t *testing.T) { h := NewWebWidgetOfflineHandler(nil, nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListOfflineMessagesByInbox(c) }) } func TestWebWidgetOfflineHandler_DismissOfflineMessage_NoSvc_Cov9(t *testing.T) { h := NewWebWidgetOfflineHandler(nil, nil) c, _ := newCtx_Cov9("POST", "/") safeCall_Cov9(t, func() { h.DismissOfflineMessage(c) }) } func TestWebWidgetOfflineHandler_ConvertOfflineMessage_NoSvc_Cov9(t *testing.T) { h := NewWebWidgetOfflineHandler(nil, nil) c, _ := newCtx_Cov9("POST", "/") safeCall_Cov9(t, func() { h.ConvertOfflineMessage(c) }) } // ================================================================= // WebWidgetThemeHandler nil-service handler method tests // ================================================================= func TestWebWidgetThemeHandler_GetThemeConfig_NoSvc_Cov9(t *testing.T) { h := NewWebWidgetThemeHandler(nil, nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetThemeConfig(c) }) } func TestWebWidgetThemeHandler_UpdateThemeConfig_NoSvc_Cov9(t *testing.T) { h := NewWebWidgetThemeHandler(nil, nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.UpdateThemeConfig(c) }) } func TestWebWidgetThemeHandler_DeleteThemeConfig_NoSvc_Cov9(t *testing.T) { h := NewWebWidgetThemeHandler(nil, nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.DeleteThemeConfig(c) }) } // ================================================================= // WebWidgetPreChatHandler nil-service handler method tests // ================================================================= func TestWebWidgetPreChatHandler_GetPreChatForm_NoSvc_Cov9(t *testing.T) { h := NewWebWidgetPreChatHandler(nil, nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetPreChatForm(c) }) } func TestWebWidgetPreChatHandler_UpdatePreChatForm_NoSvc_Cov9(t *testing.T) { h := NewWebWidgetPreChatHandler(nil, nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.UpdatePreChatForm(c) }) } func TestWebWidgetPreChatHandler_DeletePreChatForm_NoSvc_Cov9(t *testing.T) { h := NewWebWidgetPreChatHandler(nil, nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.DeletePreChatForm(c) }) } // ================================================================= // WhatsAppCallHandler nil-service handler method tests // ================================================================= func TestWhatsAppCallHandler_Index_NoSvc_Cov9(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Index(c) }) } func TestWhatsAppCallHandler_Show_NoSvc_Cov9(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Show(c) }) } func TestWhatsAppCallHandler_Initiate_NoSvc_Cov9(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Initiate(c) }) } func TestWhatsAppCallHandler_Accept_NoSvc_Cov9(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Accept(c) }) } func TestWhatsAppCallHandler_Reject_NoSvc_Cov9(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Reject(c) }) } func TestWhatsAppCallHandler_Terminate_NoSvc_Cov9(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Terminate(c) }) } func TestWhatsAppCallHandler_UploadRecording_NoSvc_Cov9(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", ``) safeCall_Cov9(t, func() { h.UploadRecording(c) }) } func TestWhatsAppCallHandler_Get_NoSvc_Cov9(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Get(c) }) } func TestWhatsAppCallHandler_List_NoSvc_Cov9(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestWhatsAppCallHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } func TestWhatsAppCallHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.Update(c) }) } func TestWhatsAppCallHandler_Delete_NoSvc_Cov9(t *testing.T) { h := NewWhatsAppCallHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Delete(c) }) } // ================================================================= // WidgetTestHandler nil-service handler method tests // ================================================================= func TestWidgetTestHandler_Index_NoSvc_Cov9(t *testing.T) { h := NewWidgetTestHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Index(c) }) } func TestWidgetTestHandler_ListByType_NoSvc_Cov9(t *testing.T) { h := NewWidgetTestHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.ListByType(c) }) } // ================================================================= // WorkingHourHandler nil-service handler method tests // ================================================================= func TestWorkingHourHandler_GetWeeklySchedule_NoSvc_Cov9(t *testing.T) { h := NewWorkingHourHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetWeeklySchedule(c) }) } func TestWorkingHourHandler_UpdateWeeklySchedule_NoSvc_Cov9(t *testing.T) { h := NewWorkingHourHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.UpdateWeeklySchedule(c) }) } func TestWorkingHourHandler_IsOutOfOffice_NoSvc_Cov9(t *testing.T) { h := NewWorkingHourHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.IsOutOfOffice(c) }) } // ================================================================= // YearInReviewHandler nil-service handler method tests // ================================================================= func TestYearInReviewHandler_Show_NoSvc_Cov9(t *testing.T) { h := NewYearInReviewHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Show(c) }) } // ================================================================= // ContactMergeHandler nil-service handler method tests // ================================================================= func TestContactMergeHandler_Create_NoSvc_Cov9(t *testing.T) { h := NewContactMergeHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Create(c) }) } // ================================================================= // ConversationInsightHandler nil-service handler method tests // ================================================================= func TestConversationInsightHandler_AnalyzeParticipants_NoSvc_Cov9(t *testing.T) { h := NewConversationInsightHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.AnalyzeParticipants(c) }) } func TestConversationInsightHandler_ExtractActionItems_NoSvc_Cov9(t *testing.T) { h := NewConversationInsightHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.ExtractActionItems(c) }) } func TestConversationInsightHandler_SuggestLabels_NoSvc_Cov9(t *testing.T) { h := NewConversationInsightHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.SuggestLabels(c) }) } // ================================================================= // ConversationParticipantHandler nil-service handler method tests // ================================================================= func TestConversationParticipantHandler_List_NoSvc_Cov9(t *testing.T) { h := NewConversationParticipantHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.List(c) }) } func TestConversationParticipantHandler_Add_NoSvc_Cov9(t *testing.T) { h := NewConversationParticipantHandler(nil) c, _ := newCtxBody_Cov9("POST", "/", `{}`) safeCall_Cov9(t, func() { h.Add(c) }) } func TestConversationParticipantHandler_Update_NoSvc_Cov9(t *testing.T) { h := NewConversationParticipantHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.Update(c) }) } func TestConversationParticipantHandler_Remove_NoSvc_Cov9(t *testing.T) { h := NewConversationParticipantHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Remove(c) }) } func TestConversationParticipantHandler_Destroy_NoSvc_Cov9(t *testing.T) { h := NewConversationParticipantHandler(nil) c, _ := newCtx_Cov9("DELETE", "/") safeCall_Cov9(t, func() { h.Destroy(c) }) } func TestConversationParticipantHandler_BatchUpdate_NoSvc_Cov9(t *testing.T) { h := NewConversationParticipantHandler(nil) c, _ := newCtxBody_Cov9("PUT", "/", `{}`) safeCall_Cov9(t, func() { h.BatchUpdate(c) }) } // ================================================================= // PlatformUserSSOHandler nil-service handler method tests // ================================================================= func TestPlatformUserSSOHandler_GetSSOLink_NoSvc_Cov9(t *testing.T) { h := NewPlatformUserSSOHandler() c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetSSOLink(c) }) } func TestPlatformUserSSOHandler_GetSSOToken_NoSvc_Cov9(t *testing.T) { h := NewPlatformUserSSOHandler() c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.GetSSOToken(c) }) } // ================================================================= // ContactInboxHandler nil-service handler method tests // ================================================================= func TestContactInboxHandler_Filter_NoSvc_Cov9(t *testing.T) { h := NewContactInboxHandler(nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.Filter(c) }) } // ================================================================= // SSEStreamHandler nil-service handler method tests // ================================================================= func TestSSEStreamHandler_StreamCopilotMessage_NoSvc_Cov9(t *testing.T) { h := NewSSEStreamHandler(nil, nil) c, _ := newCtx_Cov9("GET", "/") safeCall_Cov9(t, func() { h.StreamCopilotMessage(c) }) } // Keep imports used var ( _ = automation.MacroService{} _ = canned.CannedResponseService{} _ = gorm.ErrRecordNotFound _ = llm.Provider(nil) _ = model.Account{} _ = search.SearchResult{} _ = service.AccountService{} _ = ws.SSERegistry{} )