test

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy()

func Init

func Init()

Types

type ToolKit

type ToolKit struct {
	// contains filtered or unexported fields
}

func NewToolKit

func NewToolKit(t *testing.T) *ToolKit

func (*ToolKit) AssertBodyEqual

func (toolKit *ToolKit) AssertBodyEqual(body string) *ToolKit

func (*ToolKit) AssertEqual

func (toolKit *ToolKit) AssertEqual(expected interface{}, actual interface{}, msgAndArgs ...interface{}) *ToolKit

func (*ToolKit) AssertGreaterOrEqual

func (toolKit *ToolKit) AssertGreaterOrEqual(e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) *ToolKit

func (*ToolKit) AssertNotEmpty

func (toolKit *ToolKit) AssertNotEmpty(object interface{}, msgAndArgs ...interface{}) *ToolKit

func (*ToolKit) AssertNotEqual

func (toolKit *ToolKit) AssertNotEqual(expected interface{}, actual interface{}, msgAndArgs ...interface{}) *ToolKit

func (*ToolKit) AssertStatusCode

func (toolKit *ToolKit) AssertStatusCode(code int) *ToolKit

func (*ToolKit) AssertZero

func (toolKit *ToolKit) AssertZero(e1 interface{}, msgAndArgs ...interface{}) *ToolKit

func (*ToolKit) Request

func (toolKit *ToolKit) Request(url string, method string) *ToolKit

func (*ToolKit) SetBody

func (toolKit *ToolKit) SetBody(body *bytes.Buffer) *ToolKit

func (*ToolKit) SetHeader

func (toolKit *ToolKit) SetHeader(key string, value string) *ToolKit

func (*ToolKit) SetJsonBody

func (toolKit *ToolKit) SetJsonBody(body interface{}) *ToolKit

func (*ToolKit) SetJsonResponse

func (toolKit *ToolKit) SetJsonResponse(response interface{}) *ToolKit

func (*ToolKit) SetQueryParams

func (toolKit *ToolKit) SetQueryParams(key string, value string) *ToolKit

func (*ToolKit) SetToken

func (toolKit *ToolKit) SetToken(token string) *ToolKit

Jump to

Keyboard shortcuts

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