test

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ctx

func Ctx() context.Context

Types

type TestEnvironment

type TestEnvironment struct {
	T          *testing.T
	Assert     *require.Assertions
	StaticTime stime.StaticTimeService
	AccountID  string

	service.Environment
}

func NewEnvironment

func NewEnvironment(t *testing.T, router *mux.Router) *TestEnvironment

func (TestEnvironment) MakeCall

func (s TestEnvironment) MakeCall(req *http.Request, body interface{}) *http.Response

func (TestEnvironment) MakeRequest

func (s TestEnvironment) MakeRequest(method string, target string, body interface{}) *http.Request

Jump to

Keyboard shortcuts

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