mirror of
				https://github.com/tailscale/tailscale.git
				synced 2025-11-04 02:01:14 +01:00 
			
		
		
		
	This is just #cleanup to resolve a TODO Also add a package doc. Signed-off-by: Maisem Ali <maisem@tailscale.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			377 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			377 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// Copyright (c) Tailscale Inc & AUTHORS
 | 
						|
// SPDX-License-Identifier: BSD-3-Clause
 | 
						|
 | 
						|
package memnet
 | 
						|
 | 
						|
import (
 | 
						|
	"net"
 | 
						|
	"testing"
 | 
						|
 | 
						|
	"golang.org/x/net/nettest"
 | 
						|
)
 | 
						|
 | 
						|
func TestConn(t *testing.T) {
 | 
						|
	nettest.TestConn(t, func() (c1 net.Conn, c2 net.Conn, stop func(), err error) {
 | 
						|
		c1, c2 = NewConn("test", bufferSize)
 | 
						|
		return c1, c2, func() {
 | 
						|
			c1.Close()
 | 
						|
			c2.Close()
 | 
						|
		}, nil
 | 
						|
	})
 | 
						|
}
 |