Files
gochat/backend/internal/router/coverage3_test.go
T

45 lines
1.0 KiB
Go

package router
import (
"testing"
)
func TestEnvOrDefault_Cov3(t *testing.T) {
_ = envOrDefault("NONEXISTENT_ENV_VAR", "fallback")
}
func TestRedirectWithError_Cov3(t *testing.T) {
_ = redirectWithError("/some/path")
}
func TestCallbackAccountID_Cov3(t *testing.T) {
defer func() { _ = recover() }()
_, _ = callbackAccountID("state", "secret")
}
func TestRegisterEnterpriseRoutes_Cov3(t *testing.T) {
defer func() { _ = recover() }()
// Just call it with nil to hit the nil check
registerEnterpriseRoutes(nil, nil)
}
func TestAccountScopeMiddleware_Cov3(t *testing.T) {
defer func() { _ = recover() }()
_ = accountScopeMiddleware(nil)
}
func TestResolveTwilioVoiceCallbackCall_Cov3(t *testing.T) {
defer func() { _ = recover() }()
_, _ = resolveTwilioVoiceCallbackCall(nil, nil)
}
func TestTiktokChannelCallback_Cov3(t *testing.T) {
defer func() { _ = recover() }()
_ = tiktokChannelCallback(nil)
}
func TestInstagramChannelCallback_Cov3(t *testing.T) {
defer func() { _ = recover() }()
_ = instagramChannelCallback(nil)
}