mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			617 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			617 B
		
	
	
	
		
			Go
		
	
	
	
	
	
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())
 | 
						|
}
 |