juez

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

README

juez

lib to help on HTTP services unit testing using gin

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BodyToReceive

func BodyToReceive[T any](b []byte) T

func NewMultiPartRequestResponse added in v0.0.6

func NewMultiPartRequestResponse[T any, R any](e *gin.Engine) *multipartRequestResponse[T, R]

func NewRequest

func NewRequest[T any](e HttpServer) *requestResponse[T, T]

func NewRequestWithResponse

func NewRequestWithResponse[T any, R any](e HttpServer) *requestResponse[T, R]

func RunIntegrationTest

func RunIntegrationTest(tx db, f func())

Types

type HttpServer added in v0.0.2

type HttpServer interface {
	ServeHTTP(http.ResponseWriter, *http.Request)
}

Jump to

Keyboard shortcuts

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