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 ¶ added in v1.16.0
func ExpectVersionAndReleaseHold ¶ added in v1.16.0
func SendAndExpectMessage ¶ added in v1.16.0
func SendMessage ¶ added in v1.16.0
func SetupResourceServer ¶
Types ¶
type Buffer ¶ added in v1.15.0
type Buffer struct {
// contains filtered or unexported fields
}
type Logger ¶
func NewTestLogger ¶
func NewTestLogger() *Logger
type MockRoundTripper ¶ added in v1.18.0
type MockRoundTripper struct {
// contains filtered or unexported fields
}
func NewMockRoundTripper ¶ added in v1.18.0
func NewMockRoundTripper(rt http.RoundTripper) *MockRoundTripper
type RoundTripperFunc ¶ added in v1.18.0
type RoundTripperFunc struct {
// contains filtered or unexported fields
}
func NewRoundTripperFunc ¶ added in v1.18.0
Click to show internal directories.
Click to hide internal directories.