Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockServer ¶
type MockServer struct {
// contains filtered or unexported fields
}
func NewMock ¶
func NewMock(t *test.Test) *MockServer
func (*MockServer) BaseURL ¶
func (m *MockServer) BaseURL() string
func (*MockServer) Client ¶
func (m *MockServer) Client() *http.Client
func (*MockServer) GET ¶
func (m *MockServer) GET(path string, handler any) *MockServer
func (*MockServer) Mock ¶
func (m *MockServer) Mock(method string, path string, handler any) *MockServer
func (*MockServer) POST ¶
func (m *MockServer) POST(path string, handler any) *MockServer
Click to show internal directories.
Click to hide internal directories.