Documentation ¶
Index ¶
- func NewRequest(method, host, rawPath string, body io.Reader) *http.Request
- func NewResponse(status int) *http.Response
- func NextAvailPort() uint16
- func SpecConfig(statusPort uint16, natsPorts ...uint16) *config.Config
- type FakeFile
- type HttpConn
- func (x *HttpConn) CheckLine(expected string)
- func (x *HttpConn) CheckLines(expected []string)
- func (x *HttpConn) ReadRequest() (*http.Request, string)
- func (x *HttpConn) ReadResponse() (*http.Response, string)
- func (x *HttpConn) WriteLine(line string)
- func (x *HttpConn) WriteLines(lines []string)
- func (x *HttpConn) WriteRequest(req *http.Request)
- func (x *HttpConn) WriteResponse(resp *http.Response)
- type NATSRunner
- type Nats
- type TestZapLogger
- type TestZapSink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResponse ¶
func NextAvailPort ¶
func NextAvailPort() uint16
Types ¶
type HttpConn ¶
func NewHttpConn ¶
func (*HttpConn) CheckLines ¶
func (*HttpConn) WriteLines ¶
func (*HttpConn) WriteRequest ¶
func (*HttpConn) WriteResponse ¶
type NATSRunner ¶
func NewNATSRunner ¶
func NewNATSRunner(port int) *NATSRunner
func (*NATSRunner) KillWithFire ¶
func (runner *NATSRunner) KillWithFire()
func (*NATSRunner) Start ¶
func (runner *NATSRunner) Start()
func (*NATSRunner) Stop ¶
func (runner *NATSRunner) Stop()
type Nats ¶
type Nats struct {
// contains filtered or unexported fields
}
func NewNatsOnRandomPort ¶
func NewNatsOnRandomPort() *Nats
type TestZapLogger ¶
type TestZapLogger struct { logger.Logger *TestZapSink }
TestZapLogger implements a zap logger that can be used with Ginkgo tests
func NewTestZapLogger ¶
func NewTestZapLogger(component string) *TestZapLogger
NewTestZapLogger returns a new test logger using zap
func (*TestZapLogger) Buffer ¶
func (z *TestZapLogger) Buffer() *gbytes.Buffer
Buffer returns the gbytes buffer that was used as the sink
type TestZapSink ¶
Taken from github.com/uber-go/zap
func (*TestZapSink) Lines ¶
func (s *TestZapSink) Lines() []string
func (*TestZapSink) Sync ¶
func (s *TestZapSink) Sync() error
Click to show internal directories.
Click to hide internal directories.