mock

package
v0.0.0-...-31c1c1e Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DummyEcho

func DummyEcho() *echo.Echo

func DummyRestreamer

func DummyRestreamer() restream.Restreamer

func Read

func Read(t *testing.T, path string) io.Reader

func Validate

func Validate(t *testing.T, datatype, data interface{}) bool

Types

type Response

type Response struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    interface{}
}

func CheckResponse

func CheckResponse(t *testing.T, res *http.Response) *Response

func Request

func Request(t *testing.T, httpstatus int, router *echo.Echo, method, path string, data io.Reader) *Response

Jump to

Keyboard shortcuts

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