tests

package
v0.0.0-...-3045d9c Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertHTTPErrorCode

func AssertHTTPErrorCode(t *testing.T, err error, code int)

AssertHTTPErrorCode asserts an HTTP status code on a given Echo HTTP error

func CreateUser

func CreateUser(orm *ent.Client) (*ent.User, error)

CreateUser creates a random user entity

func ExecuteHandler

func ExecuteHandler(ctx echo.Context, handler echo.HandlerFunc, mw ...echo.MiddlewareFunc) error

ExecuteHandler executes a handler with an optional stack of middleware

func ExecuteMiddleware

func ExecuteMiddleware(ctx echo.Context, mw echo.MiddlewareFunc) error

ExecuteMiddleware executes a middleware function on a given Echo context

func InitSession

func InitSession(ctx echo.Context)

InitSession initializes a session for a given Echo context

func NewContext

func NewContext(e *echo.Echo, url string) (echo.Context, *httptest.ResponseRecorder)

NewContext creates a new Echo context for tests using an HTTP test request and response recorder

Types

This section is empty.

Jump to

Keyboard shortcuts

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