api_test

package
v0.0.0-...-7edcfce Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseUrl = "http://localhost/api/1.0.0"

Functions

This section is empty.

Types

type TestContext

type TestContext struct {
	ClientApp         app_context.Context
	ServerApp         app_context.Context
	RestApiClient     *rest_api_client.Client
	ClientOp          op_context.Context
	AdminOp           op_context.Context
	Server            bare_bones_server.Server
	LocalAdminManager *admin.Manager
}

func InitTest

func InitTest(t *testing.T, packageName string, testDir string, dbModels []interface{}, newDb ...bool) *TestContext

func (*TestContext) Close

func (t *TestContext) Close()

func (*TestContext) Reset

func (t *TestContext) Reset()

Jump to

Keyboard shortcuts

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