fakes

package
Version: v0.0.0-...-9a89ba0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeHTTPClient

type FakeHTTPClient struct {
	PostInputs []postInput

	GetInputs []getInput
	// contains filtered or unexported fields
}

func NewFakeHTTPClient

func NewFakeHTTPClient() *FakeHTTPClient

func (*FakeHTTPClient) Get

func (c *FakeHTTPClient) Get(endpoint string) (*http.Response, error)

func (*FakeHTTPClient) Post

func (c *FakeHTTPClient) Post(endpoint string, payload []byte) (*http.Response, error)

func (*FakeHTTPClient) SetGetBehavior

func (c *FakeHTTPClient) SetGetBehavior(body string, statusCode int, err error)

func (*FakeHTTPClient) SetPostBehavior

func (c *FakeHTTPClient) SetPostBehavior(body string, statusCode int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL