Help us shape the future of Go! Take the 2026 Go Developer Survey

test

package
v1.3.244 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment added in v0.0.6

type Environment struct {
	Hitrix           *hitrix.Hitrix
	GinEngine        *gin.Engine
	Cxt              *gin.Context
	ResponseRecorder *httptest.ResponseRecorder
	// contains filtered or unexported fields
}

func CreateAPIContext added in v0.2.9

func CreateAPIContext(
	t *testing.T,
	projectName string,
	ginInitHandler hitrix.GinInitHandler,
	defaultGlobalServices []*service.DefinitionGlobal,
	defaultRequestServices []*service.DefinitionRequest,
	mockGlobalServices []*service.DefinitionGlobal,
	mockRequestServices []*service.DefinitionRequest,
	redisPools *app.RedisPools,
) *Environment

func CreateContext

func CreateContext(
	t *testing.T,
	projectName string,
	defaultServices []*service.DefinitionGlobal,
	mockGlobalServices []*service.DefinitionGlobal,
	redisPools *app.RedisPools,
) *Environment

Jump to

Keyboard shortcuts

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