Documentation
¶
Index ¶
- Constants
- Variables
- func BenchmarkSet(t testing.TB, bookCount, stepCount int, body string) (*httptest.Server, string)
- func CreateHTTPBinContainer(t *testing.T) string
- func CreateMySQLContainer(t *testing.T) (*sql.DB, string)
- func CreateSSHdContainer(t *testing.T) (*ssh.Client, string, string, string, int)
- func GRPCServer(t *testing.T, useTLS bool, disableReflection bool) *grpcstub.Server
- func HTTPSServer(t testing.TB) *httptest.Server
- func HTTPSServerAndRouter(t testing.TB) (*httptest.Server, *httpstub.Router)
- func HTTPServer(t testing.TB) *httptest.Server
- func HTTPServerAndRouter(t testing.TB) (*httptest.Server, *httpstub.Router)
- func NewNullSSHClient() *ssh.Client
- func NewPort(t testing.TB) int
- func Root() string
- func SQLite(t *testing.T) (*sql.DB, string)
- func SSHServer(t testing.TB) string
- func SkipCDPTest(t *testing.T) bool
- func Testdata() string
- type NullChannel
- func (*NullChannel) Close() error
- func (*NullChannel) CloseWrite() error
- func (*NullChannel) Read(data []byte) (int, error)
- func (*NullChannel) SendRequest(name string, wantReply bool, payload []byte) (bool, error)
- func (*NullChannel) Stderr() io.ReadWriter
- func (*NullChannel) Write(data []byte) (int, error)
- type NullConn
- func (*NullConn) ClientVersion() []byte
- func (*NullConn) Close() error
- func (*NullConn) LocalAddr() net.Addr
- func (*NullConn) OpenChannel(name string, data []byte) (ssh.Channel, <-chan *ssh.Request, error)
- func (*NullConn) RemoteAddr() net.Addr
- func (*NullConn) SendRequest(name string, wantReply bool, payload []byte) (bool, []byte, error)
- func (*NullConn) ServerVersion() []byte
- func (*NullConn) SessionID() []byte
- func (*NullConn) User() string
- func (*NullConn) Wait() error
- type NullReadWriter
Constants ¶
View Source
const ( HTTPBinHostname = "myhttpbin" MySQLHostname = "mydb" SSHdHostname = "mysshd" )
View Source
const MultipartBoundary = "123456789012345678901234567890abcdefghijklmnopqrstuvwxyz"
Variables ¶
View Source
var Cacert = func() []byte { b, err := os.ReadFile(filepath.Join(Testdata(), "cacert.pem")) if err != nil { panic(err) } return b }()
Functions ¶
func BenchmarkSet ¶
BenchmarkSet returns a server and a path pattern for benchmarking.
func CreateHTTPBinContainer ¶
func CreateSSHdContainer ¶
func GRPCServer ¶
func HTTPSServerAndRouter ¶
func HTTPServerAndRouter ¶
func NewNullSSHClient ¶
func SkipCDPTest ¶
Types ¶
type NullChannel ¶
type NullChannel struct{}
func (*NullChannel) Close ¶
func (*NullChannel) Close() error
func (*NullChannel) CloseWrite ¶
func (*NullChannel) CloseWrite() error
func (*NullChannel) SendRequest ¶
func (*NullChannel) Stderr ¶
func (*NullChannel) Stderr() io.ReadWriter
type NullConn ¶
type NullConn struct{}
func (*NullConn) ClientVersion ¶
func (*NullConn) OpenChannel ¶
func (*NullConn) RemoteAddr ¶
func (*NullConn) SendRequest ¶
func (*NullConn) ServerVersion ¶
type NullReadWriter ¶
type NullReadWriter struct{}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.