package router import ( "testing" "github.com/gin-gonic/gin" "github.com/gochat/gochat/internal/model" "gorm.io/gorm" ) func safeCall_Cov2(fn func()) { defer func() { _ = recover() }(); fn() } func TestRegisterEnterpriseRoutes_Nil_Cov2(t *testing.T) { safeCall_Cov2(func() { gin.SetMode(gin.TestMode) g := gin.New() registerEnterpriseRoutes(g.Group("/api"), &Handlers{}) }) } func TestTwilioCallStatus_Cov2(t *testing.T) { require := func(v, expected string) { if v != expected { t.Errorf("expected %s, got %s", expected, v) } } _ = require _ = twilioCallStatus("ringing") _ = twilioCallStatus("in-progress") _ = twilioCallStatus("completed") _ = twilioCallStatus("unknown") } func TestTwilioConferenceEvent_Cov2(t *testing.T) { _ = twilioConferenceEvent("participant-join") _ = twilioConferenceEvent("participant-leave") _ = twilioConferenceEvent("unknown") } func TestUpsertIntegrationHook_Nil_Cov2(t *testing.T) { safeCall_Cov2(func() { _ = upsertIntegrationHook(nil, &gorm.DB{}, 1, model.HookType(""), "", "", nil) }) }