Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HttpSuccess = http.Response{ Status: http.StatusText(http.StatusOK), StatusCode: http.StatusOK, } )
Functions ¶
func NewFakeClient ¶
func NewFakeClient() api.ClientWithResponsesInterface
NewFakeClient creates a new fake client for testing.
Types ¶
type ClientBuilder ¶
type ClientBuilder struct {
// contains filtered or unexported fields
}
ClientBuilder builds a fake client.
func NewFakeClientBuilder ¶
func NewFakeClientBuilder() *ClientBuilder
NewFakeClientBuilder returns a new builder to create a fake client.
func (*ClientBuilder) Build ¶
func (c *ClientBuilder) Build() api.ClientWithResponsesInterface
Build returns a fake client.
func (*ClientBuilder) WithInterceptorFuncs ¶
func (c *ClientBuilder) WithInterceptorFuncs(interceptorFuncs interceptor.Funcs) *ClientBuilder
WithInterceptorFuncs configures the client methods to be intercepted using the provided interceptor.Funcs.
Click to show internal directories.
Click to hide internal directories.