tests

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(t *testing.T) (client *tuyacloud.Client)

NewClient return client.

func NewMockClient

func NewMockClient(t *testing.T, ctrl *gomock.Controller) (client *tuyacloud.Client, httpClient *helpers.MockHTTPClient)

NewMockClient returns mock client

Types

type Mocked

type Mocked struct {
	ResponseBody string
	MockedError  error
}

func (Mocked) Response

func (m Mocked) Response() (*http.Response, error)

Directories

Path Synopsis
Package helpers is a generated GoMock package.
Package helpers is a generated GoMock package.

Jump to

Keyboard shortcuts

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