tests

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 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 BaseGin

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

func (*BaseGin) Delete

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

func (*BaseGin) Get

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

func (*BaseGin) PostFile

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

func (*BaseGin) PostForm

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

func (*BaseGin) PostJson

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

func (*BaseGin) PutForm

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

func (*BaseGin) PutJson

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

type BaseGins

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

func (*BaseGins) Delete

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

func (*BaseGins) Get

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

func (*BaseGins) PostFile

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

func (*BaseGins) PostForm

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

func (*BaseGins) PostJson

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

func (*BaseGins) PutForm

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

func (*BaseGins) PutJson

func (b *BaseGins) 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