sm_test

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2015 License: MIT, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFunctionName

func GetFunctionName(i interface{}) string

func GoServe

func GoServe(t *testing.T, tr smux.Transport, l net.Listener) (done func())

func SubtestAll

func SubtestAll(t *testing.T, tr smux.Transport)

func SubtestSimpleWrite

func SubtestSimpleWrite(t *testing.T, tr smux.Transport)

func SubtestStress

func SubtestStress(t *testing.T, opt Options)

func SubtestStress1Conn1000Stream10Msg

func SubtestStress1Conn1000Stream10Msg(t *testing.T, tr smux.Transport)

func SubtestStress1Conn100Stream100Msg

func SubtestStress1Conn100Stream100Msg(t *testing.T, tr smux.Transport)

func SubtestStress1Conn100Stream100Msg10MB

func SubtestStress1Conn100Stream100Msg10MB(t *testing.T, tr smux.Transport)

func SubtestStress1Conn1Stream100Msg

func SubtestStress1Conn1Stream100Msg(t *testing.T, tr smux.Transport)

func SubtestStress1Conn1Stream1Msg

func SubtestStress1Conn1Stream1Msg(t *testing.T, tr smux.Transport)

func SubtestStress50Conn10Stream50Msg

func SubtestStress50Conn10Stream50Msg(t *testing.T, tr smux.Transport)

func TestNoOp

func TestNoOp(t *testing.T)

Types

type LogWriter

type LogWriter struct {
	W io.Writer
}

func (*LogWriter) Write

func (lw *LogWriter) Write(buf []byte) (int, error)

type Options

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

type TransportTest

type TransportTest func(t *testing.T, tr smux.Transport)

Jump to

Keyboard shortcuts

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