tests

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Case

func Case(name string, t *testing.T, fn func(items ...interface{}))

func MapToStr

func MapToStr(mp map[string]string) string

Types

type BaseGinEngine added in v0.2.1

type BaseGinEngine struct {
	Token  string
	Router *gin.Engine
}

func (*BaseGinEngine) Delete added in v0.2.1

func (b *BaseGinEngine) Delete(uri string, param map[string]string) *httptest.ResponseRecorder

func (*BaseGinEngine) Get added in v0.2.1

func (b *BaseGinEngine) Get(uri string, param map[string]string) *httptest.ResponseRecorder

func (*BaseGinEngine) PostFile added in v0.2.1

func (b *BaseGinEngine) PostFile(uri string, param map[string]interface{}, files map[string]string) *httptest.ResponseRecorder

func (*BaseGinEngine) PostForm added in v0.2.1

func (b *BaseGinEngine) PostForm(uri string, param map[string]string) *httptest.ResponseRecorder

func (*BaseGinEngine) PostJson added in v0.2.1

func (b *BaseGinEngine) PostJson(uri string, param map[string]interface{}) *httptest.ResponseRecorder

func (*BaseGinEngine) PutForm added in v0.2.1

func (b *BaseGinEngine) PutForm(uri string, param map[string]string) *httptest.ResponseRecorder

func (*BaseGinEngine) PutJson added in v0.2.1

func (b *BaseGinEngine) PutJson(uri string, param map[string]interface{}) *httptest.ResponseRecorder

type BaseGinServer added in v0.2.1

type BaseGinServer struct {
	Token  string
	Router *gins.Server
}

func (*BaseGinServer) Delete added in v0.2.1

func (b *BaseGinServer) Delete(uri string, param map[string]string) *httptest.ResponseRecorder

func (*BaseGinServer) Get added in v0.2.1

func (b *BaseGinServer) Get(uri string, param map[string]string) *httptest.ResponseRecorder

func (*BaseGinServer) PostFile added in v0.2.1

func (b *BaseGinServer) PostFile(uri string, param map[string]interface{}, files map[string]string) *httptest.ResponseRecorder

func (*BaseGinServer) PostForm added in v0.2.1

func (b *BaseGinServer) PostForm(uri string, param map[string]string) *httptest.ResponseRecorder

func (*BaseGinServer) PostJson added in v0.2.1

func (b *BaseGinServer) PostJson(uri string, param map[string]interface{}) *httptest.ResponseRecorder

func (*BaseGinServer) PutForm added in v0.2.1

func (b *BaseGinServer) PutForm(uri string, param map[string]string) *httptest.ResponseRecorder

func (*BaseGinServer) PutJson added in v0.2.1

func (b *BaseGinServer) PutJson(uri string, param map[string]interface{}) *httptest.ResponseRecorder

Jump to

Keyboard shortcuts

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