ss_test

package
v0.0.0-...-ce94876 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2019 License: MIT, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Subtests = map[string]func(t *testing.T, at, bt connsec.Transport, ap, bp peer.ID){
	"RW":                      SubtestRW,
	"Keys":                    SubtestKeys,
	"WrongPeer":               SubtestWrongPeer,
	"Stream":                  SubtestStream,
	"CancelHandshakeInbound":  SubtestCancelHandshakeInbound,
	"CancelHandshakeOutbound": SubtestCancelHandshakeOutbound,
}
View Source
var TestMessage = []byte("hello world!")
View Source
var TestSeed int64 = 1812
View Source
var TestStreamLen int64 = 1024 * 1024

Functions

func SubtestAll

func SubtestAll(t *testing.T, at, bt connsec.Transport, ap, bp peer.ID)

func SubtestCancelHandshakeInbound

func SubtestCancelHandshakeInbound(t *testing.T, at, bt connsec.Transport, ap, bp peer.ID)

func SubtestCancelHandshakeOutbound

func SubtestCancelHandshakeOutbound(t *testing.T, at, bt connsec.Transport, ap, bp peer.ID)

func SubtestKeys

func SubtestKeys(t *testing.T, at, bt connsec.Transport, ap, bp peer.ID)

func SubtestRW

func SubtestRW(t *testing.T, at, bt connsec.Transport, ap, bp peer.ID)

func SubtestStream

func SubtestStream(t *testing.T, at, bt connsec.Transport, ap, bp peer.ID)

func SubtestWrongPeer

func SubtestWrongPeer(t *testing.T, at, bt connsec.Transport, ap, bp peer.ID)

Types

This section is empty.

Jump to

Keyboard shortcuts

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