test

package
v0.0.0-...-197a5f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2015 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Overview

Package test contains support code for varous mangos tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTlsConfig

func GetTlsConfig(server bool) (*tls.Config, error)

GetTlsConfig is like NewTlsConfig, but it caches to avoid regenerating key material pointlessly.

func NewTlsConfig

func NewTlsConfig(server bool) (*tls.Config, error)

NewTlsConfig creates a suitable TLS configuration, using either a server or client. A self-signed CA Cert is included.

Types

type TranTest

type TranTest struct {
	// contains filtered or unexported fields
}

func NewTranTest

func NewTranTest(tran mangos.Transport, addr string) *TranTest

func (*TranTest) TranTestConnRefused

func (tt *TranTest) TranTestConnRefused(t *testing.T)

func (*TranTest) TranTestDuplicateListen

func (tt *TranTest) TranTestDuplicateListen(t *testing.T)

func (*TranTest) TranTestListenAndAccept

func (tt *TranTest) TranTestListenAndAccept(t *testing.T)

func (*TranTest) TranTestSendRecv

func (tt *TranTest) TranTestSendRecv(t *testing.T)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL