Documentation ¶
Index ¶
- Constants
- func ExpectMessage(tb testing.TB, conn net.Conn, reader *bufio.Reader, expectMessage string) bool
- func ExpectVersionAndReleaseHold(tb testing.TB, conn net.Conn, reader *bufio.Reader) bool
- func ReadLine(tb testing.TB, conn net.Conn, reader *bufio.Reader) string
- func SendAndExpectMessage(tb testing.TB, conn net.Conn, reader *bufio.Reader, sendMessage string, ...) bool
- func SendMessage(tb testing.TB, conn net.Conn, sendMessage string, args ...any) bool
- func SetupResourceServer(tb testing.TB, clientListener net.Listener) (*httptest.Server, *url.URL, config.OAuth2Client, error)
- func WaitUntilListening(tb testing.TB, listener net.Listener) error
- type Buffer
- type Logger
- type MockRoundTripper
- type RoundTripperFunc
Constants ¶
View Source
const Secret = "0123456789101112"
Variables ¶
This section is empty.
Functions ¶
func ExpectMessage ¶
func SendAndExpectMessage ¶
func SendMessage ¶
func SetupResourceServer ¶
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
type Logger ¶
func NewTestLogger ¶
func NewTestLogger() *Logger
type MockRoundTripper ¶
type MockRoundTripper struct {
// contains filtered or unexported fields
}
func NewMockRoundTripper ¶
func NewMockRoundTripper(rt http.RoundTripper) *MockRoundTripper
type RoundTripperFunc ¶
type RoundTripperFunc struct {
// contains filtered or unexported fields
}
func NewRoundTripperFunc ¶
Click to show internal directories.
Click to hide internal directories.