helpers

package
v0.0.0-...-39fcf47 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHeadersMiddleware

func DefaultHeadersMiddleware() echo.MiddlewareFunc

ServerHeader middleware adds a `Server` header to the response.

func ObjectToByte

func ObjectToByte(t *testing.T, obj interface{}) *bytes.Reader

ObjectToByte ...

func RequestObjectWithBody

func RequestObjectWithBody(t *testing.T, method, path string, data interface{}, e *echo.Echo) (*httptest.ResponseRecorder, echo.Context)

RequestObjectWithBody ...

func RequestTest

func RequestTest(method, path string, e *echo.Echo) (int, string)

RequestTest ...

func RequestWithBody

func RequestWithBody(method, path string, body io.Reader, e *echo.Echo) (*httptest.ResponseRecorder, echo.Context)

RequestWithBody ...

func UUIDFromString

func UUIDFromString(t *testing.T, uStr string) uuid.UUID

UUIDFromString ...

func UUIDFromStringPointer

func UUIDFromStringPointer(t *testing.T, uStr string) *uuid.UUID

UUIDFromStringPointer ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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