echotestkit

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package echotestkit provides echo test helpers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Request

Request return echo.Context and httptest.ResponseRecorder.

func RequestDELETE

func RequestDELETE(url string) (ctx echo.Context, rec *httptest.ResponseRecorder)

RequestDELETE return echo.Context and httptest.ResponseRecorder for DELETE Request.

func RequestDELETEWithParam

func RequestDELETEWithParam(url string, urlParams map[string]string) (echo.Context, *httptest.ResponseRecorder)

RequestDELETEWithParam return echo.Context and httptest.ResponseRecorder for DELETE Request with URL Param.

func RequestGET

func RequestGET(url string) (echo.Context, *httptest.ResponseRecorder)

RequestGET return echo.Context and httptest.ResponseRecorder for GET Request.

func RequestGETWithParam

func RequestGETWithParam(url string, urlParams map[string]string) (echo.Context, *httptest.ResponseRecorder)

RequestGETWithParam return echo.Context and httptest.ResponseRecorder for GET Request with URL Param.

func RequestPOST

func RequestPOST(url string, json string) (echo.Context, *httptest.ResponseRecorder)

RequestPOST return echo.Context and httptest.ResponseRecorder for POST Request.

func RequestPUT

func RequestPUT(url string, json string) (ctx echo.Context, rec *httptest.ResponseRecorder)

RequestPUT return echo.Context and httptest.ResponseRecorder for POST Request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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