utils

package
v0.0.0-...-a7b3c09 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApp

func GetApp() *gin.Engine

Helper function to create a router during testing

func OpenBrowser

func OpenBrowser(url string)

func TestHTTPResponse

func TestHTTPResponse(t *testing.T, r *gin.Engine, req *http.Request, f func(w *httptest.ResponseRecorder) bool)

Helper function to process a request and test its response

func TestMain

func TestMain(m *testing.M)

This function is used for setup before executing the test functions

Types

This section is empty.

Jump to

Keyboard shortcuts

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