stubclient

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Metadata *db.DB
	// contains filtered or unexported fields
}

Client is for http testing.

func (*Client) Do

func (c *Client) Do(req *http.Request) (resp *http.Response, err error)

func (*Client) GivenError added in v1.1.0

func (c *Client) GivenError(url string, expected error)

func (*Client) GivenResponse

func (c *Client) GivenResponse(statusCode int, url, contentType, body string, etags ...header.ETag)

Jump to

Keyboard shortcuts

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