testutils

package
v0.0.0-...-35a8602 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfCurrentDBIsLocal

func CheckIfCurrentDBIsLocal() bool

CheckIfCurrentDBIsLocal checks whether the database used to run the test is a test/local database. If not, the setup exits

func StartTestServer

func StartTestServer(ctx context.Context, prepareServer PrepareServer, allowedOrigins []string) (*http.Server, string, error)

StartTestServer starts up test server

Types

type PrepareServer

type PrepareServer func(ctx context.Context, port int, allowedOrigins []string) *http.Server

PrepareServer is the signature of a function that Knows how to prepare & initialise the server

Jump to

Keyboard shortcuts

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