test_rest_request

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 8 Imported by: 0

README

test-rest-request

This is a simple package to allow you to test rest requests from entirely within the go application context. No external http routing is utilized. Ideal for testing route handlers from within an IDE of Gihub hosted runner.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Handler http.Handler

Functions

func DeleteEndpoint

func DeleteEndpoint(path string, headers map[string]string, body interface{}, responseStruct interface{}) error

func GetEndpoint

func GetEndpoint(path string, headers map[string]string, responseStruct interface{}) error

func PostEndpoint

func PostEndpoint(path string, headers map[string]string, body interface{}, responseStruct interface{}) error

func PutEndpoint

func PutEndpoint(path string, headers map[string]string, body interface{}, responseStruct interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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