test

package
v0.0.0-...-b197d6e Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustParseURL

func MustParseURL(t TestingT, rawurl string) *url.URL

func RandStringRunes

func RandStringRunes(n int) string

Types

type ServerAssertion

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

func NewServerWithAssertion

func NewServerWithAssertion(handler http.HandlerFunc) (*httptest.Server, *ServerAssertion)

func NewTSLServerWithAssertion

func NewTSLServerWithAssertion(handler http.HandlerFunc) (*httptest.Server, *ServerAssertion)

func (*ServerAssertion) At

func (s *ServerAssertion) At(index int, fn func(r http.Request))

func (*ServerAssertion) Len

func (s *ServerAssertion) Len() int

func (*ServerAssertion) Range

func (s *ServerAssertion) Range(fn func(index int, r http.Request))

type TestingT

type TestingT interface {
	Fatalf(format string, args ...interface{})
}

type ThreadSafeBuffer

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

func NewLogger

func NewLogger() (*logrus.Logger, *ThreadSafeBuffer)

func (*ThreadSafeBuffer) String

func (t *ThreadSafeBuffer) String() string

func (*ThreadSafeBuffer) Write

func (t *ThreadSafeBuffer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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