go/src/net/error_test.go

func (e *OpError) isValid() error {}

// parseDialError parses nestedErr and reports whether it is a valid
// error value from Dial, Listen functions.
// It returns nil when nestedErr is valid.
func parseDialError(nestedErr error) error {}

var dialErrorTests

func TestDialError(t *testing.T) {}

func TestProtocolDialError(t *testing.T) {}

func TestDialAddrError(t *testing.T) {}

var listenErrorTests

func TestListenError(t *testing.T) {}

var listenPacketErrorTests

func TestListenPacketError(t *testing.T) {}

func TestProtocolListenError(t *testing.T) {}

// parseReadError parses nestedErr and reports whether it is a valid
// error value from Read functions.
// It returns nil when nestedErr is valid.
func parseReadError(nestedErr error) error {}

// parseWriteError parses nestedErr and reports whether it is a valid
// error value from Write functions.
// It returns nil when nestedErr is valid.
func parseWriteError(nestedErr error) error {}

// parseCloseError parses nestedErr and reports whether it is a valid
// error value from Close functions.
// It returns nil when nestedErr is valid.
func parseCloseError(nestedErr error, isShutdown bool) error {}

func TestCloseError(t *testing.T) {}

// parseAcceptError parses nestedErr and reports whether it is a valid
// error value from Accept functions.
// It returns nil when nestedErr is valid.
func parseAcceptError(nestedErr error) error {}

func TestAcceptError(t *testing.T) {}

// parseCommonError parses nestedErr and reports whether it is a valid
// error value from miscellaneous functions.
// It returns nil when nestedErr is valid.
func parseCommonError(nestedErr error) error {}

func TestFileError(t *testing.T) {}

func parseLookupPortError(nestedErr error) error {}

func TestContextError(t *testing.T) {}