Files
gochat/backend/internal/automation/coverage11_test.go
T

54 lines
1.5 KiB
Go

package automation
import (
"context"
"testing"
"github.com/stretchr/testify/assert"
)
func TestAutomationRuleService_GetByIDForAccount_Nil_Cov11(t *testing.T) {
s := &AutomationRuleService{}
defer func() { _ = recover() }()
_, _ = s.GetByIDForAccount(context.Background(), 1, 1)
}
func TestAutomationRuleService_UpdateForAccount_Nil_Cov11(t *testing.T) {
s := &AutomationRuleService{}
defer func() { _ = recover() }()
_ = s.UpdateForAccount(context.Background(), 1, nil)
}
func TestAutomationRuleService_DeleteForAccount_Nil_Cov11(t *testing.T) {
s := &AutomationRuleService{}
defer func() { _ = recover() }()
_ = s.DeleteForAccount(context.Background(), 1, 1)
}
func TestAutomationRuleService_CloneForAccount_Nil_Cov11(t *testing.T) {
s := &AutomationRuleService{}
defer func() { _ = recover() }()
_, _ = s.CloneForAccount(context.Background(), 1, 1)
}
func TestAutomationRuleService_ToggleActiveForAccount_Nil_Cov11(t *testing.T) {
s := &AutomationRuleService{}
defer func() { _ = recover() }()
_ = s.ToggleActiveForAccount(context.Background(), 1, 1, true)
}
func TestMacroService_DeleteForAccount_Nil_Cov11(t *testing.T) {
s := &MacroService{}
defer func() { _ = recover() }()
_ = s.DeleteForAccount(context.Background(), 1, 1)
}
func TestRegisterAutomationRuleListener_Nil_Cov11(t *testing.T) {
defer func() { _ = recover() }()
RegisterAutomationRuleListenerWithWorkerAndSearchIndexer(nil, nil, nil, nil)
}
func TestAutomationCoverage_Placeholder_Cov11(t *testing.T) {
assert.True(t, true)
}