mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 03:27:23 -05:00 
			
		
		
		
	Merge pull request #1275 from mholt/fup-1273
Increase code coverage (caddy.go)
This commit is contained in:
		
						commit
						e2917784d0
					
				@ -85,10 +85,12 @@ func TestListenerAddrEqual(t *testing.T) {
 | 
				
			|||||||
	}{
 | 
						}{
 | 
				
			||||||
		{ln1, ":1234", false},
 | 
							{ln1, ":1234", false},
 | 
				
			||||||
		{ln1, "0.0.0.0:1234", false},
 | 
							{ln1, "0.0.0.0:1234", false},
 | 
				
			||||||
 | 
							{ln1, "0.0.0.0", false},
 | 
				
			||||||
		{ln1, ":" + ln1port + "", true},
 | 
							{ln1, ":" + ln1port + "", true},
 | 
				
			||||||
		{ln1, "0.0.0.0:" + ln1port + "", true},
 | 
							{ln1, "0.0.0.0:" + ln1port + "", true},
 | 
				
			||||||
		{ln2, "127.0.0.1:1234", false},
 | 
					 | 
				
			||||||
		{ln2, ":" + ln2port + "", false},
 | 
							{ln2, ":" + ln2port + "", false},
 | 
				
			||||||
 | 
							{ln2, "127.0.0.1:1234", false},
 | 
				
			||||||
 | 
							{ln2, "127.0.0.1", false},
 | 
				
			||||||
		{ln2, "127.0.0.1:" + ln2port + "", true},
 | 
							{ln2, "127.0.0.1:" + ln2port + "", true},
 | 
				
			||||||
	} {
 | 
						} {
 | 
				
			||||||
		if got, want := listenerAddrEqual(test.ln, test.addr), test.expect; got != want {
 | 
							if got, want := listenerAddrEqual(test.ln, test.addr), test.expect; got != want {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user