Initial commit (code only without large binaries)

This commit is contained in:
robin
2026-02-15 18:58:44 +08:00
commit 35df75498f
9442 changed files with 1495866 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package serverconfigs
import (
"github.com/iwind/TeaGo/assert"
"testing"
)
func TestProtocol_IsHTTPFamily(t *testing.T) {
a := assert.NewAssertion(t)
t.Log(ProtocolHTTP.String(), ProtocolHTTPS.String(), ProtocolTCP)
a.IsTrue(ProtocolHTTP.IsHTTPFamily())
a.IsTrue(ProtocolHTTP4.IsHTTPFamily())
a.IsTrue(ProtocolHTTP6.IsHTTPFamily())
a.IsTrue(ProtocolHTTPS.IsHTTPSFamily())
a.IsTrue(ProtocolHTTPS4.IsHTTPSFamily())
a.IsTrue(ProtocolHTTPS6.IsHTTPSFamily())
a.IsTrue(ProtocolTCP.IsTCPFamily())
a.IsTrue(ProtocolTCP.IsTCPFamily())
a.IsTrue(ProtocolTCP6.IsTCPFamily())
a.IsTrue(ProtocolUDP.IsUDPFamily())
}