testing

package
v0.0.0-...-6fab683 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServerWithAssertions

func ServerWithAssertions(c *qt.C, mockResponse interface{}, assertRequestFunc func(*qt.C, *http.Request)) *httptest.Server

Types

type MockServer

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

func NewMockServer

func NewMockServer(c *qt.C) *MockServer

func (MockServer) Client

func (m MockServer) Client() *lago.Client

func (*MockServer) Close

func (m *MockServer) Close()

func (*MockServer) MatchBody

func (m *MockServer) MatchBody(body string) *MockServer

func (*MockServer) MatchJSONBody

func (m *MockServer) MatchJSONBody(body interface{}) *MockServer

func (*MockServer) MatchMethod

func (m *MockServer) MatchMethod(method string) *MockServer

func (*MockServer) MatchPath

func (m *MockServer) MatchPath(path string) *MockServer

func (*MockServer) MatchQuery

func (m *MockServer) MatchQuery(queryParams interface{}) *MockServer

func (*MockServer) MockResponse

func (m *MockServer) MockResponse(mockResponse interface{}) *MockServer

Jump to

Keyboard shortcuts

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