mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	mock.Mock
	Reader io.Reader
}

Body is a mock type for the ReadCloser type

func NewBody

func NewBody(content string) *Body

func (*Body) Close

func (_m *Body) Close() error

Close provides a mock function with given fields:

func (*Body) Read

func (_m *Body) Read(p []byte) (int, error)

Read wraps the inner io.Reader

type ClientOption

type ClientOption struct {
	mock.Mock
}

ClientOption is an autogenerated mock type for the ClientOption type

func (*ClientOption) Execute

func (_m *ClientOption) Execute(_a0 *gql.Client)

Execute provides a mock function with given fields: _a0

type HTTPClient

type HTTPClient struct {
	mock.Mock
}

HTTPClient is an autogenerated mock type for the HTTPClient type

func (*HTTPClient) Do

func (_m *HTTPClient) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

type RequestBuilder

type RequestBuilder struct {
	mock.Mock
}

RequestBuilder is an autogenerated mock type for the RequestBuilder type

func (*RequestBuilder) Execute

func (_m *RequestBuilder) Execute(endpoint string, req *gql.Request) (*http.Request, error)

Execute provides a mock function with given fields: endpoint, req

Jump to

Keyboard shortcuts

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