testutils

package
v0.0.0-...-dbf448c Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSavedMeasuringNode

func GetSavedMeasuringNode(t *testing.T) (models.MeasuringNode, models.User)

func GetSavedUser

func GetSavedUser(t *testing.T) models.User

func HandlerTest

func HandlerTest(t *testing.T, handler http.Handler, request *http.Request, url string, testCase HandlerTestCase, positiveResponseTest func(t *testing.T, body []byte))

Types

type HandlerTestCase

type HandlerTestCase struct {
	ErrorMessage string
	Status       int
}

Jump to

Keyboard shortcuts

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