test

package
v1.2412.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestConfigurationFile = "configuration.json"

TestConfigurationFile with configuration

View Source
var TestEnvPrefix = "TEST"

TestEnvPrefix for environment variables

View Source
var TestFolder = fmt.Sprintf("BarcodeTests/%s", uuid.New())

TestFolder Aspose.Storage folder for test files noinspection GoNameStartsWithPackageName

Functions

func NewAuthContextForTests

func NewAuthContextForTests() (context.Context, error)

NewAuthContextForTests context for testing

func NewClientForTests

func NewClientForTests() (*barcode.APIClient, error)

NewClientForTests creates new Client with TestConfig

Types

type Config

type Config struct {
	JwtConfig jwt.Config        `json:"jwt"`
	APIConfig api.Configuration `json:"api"`
}

Config is Configuration

func NewTestConfig added in v0.2008.0

func NewTestConfig(fileName string, envPrefix string) (*Config, error)

NewTestConfig creates new Config from JSON-file if exists or from ENV

Jump to

Keyboard shortcuts

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