testutils

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatJson

func FormatJson(unformatted string, indent string) (string, error)

func MarshalJson

func MarshalJson(v map[string]interface{}) (string, error)

func UmarshalJson

func UmarshalJson(data []byte) (map[string]interface{}, error)

Types

type AuraTestHelper

type AuraTestHelper struct {
	Server *httptest.Server
	// contains filtered or unexported fields
}

func NewAuraTestHelper

func NewAuraTestHelper(t *testing.T) AuraTestHelper

func (*AuraTestHelper) AssertConfig

func (helper *AuraTestHelper) AssertConfig(expected string)

func (*AuraTestHelper) AssertConfigValue

func (helper *AuraTestHelper) AssertConfigValue(key string, expected string)

func (*AuraTestHelper) AssertCredentialsValue

func (helper *AuraTestHelper) AssertCredentialsValue(key string, expected string)

func (*AuraTestHelper) AssertErr

func (helper *AuraTestHelper) AssertErr(expected string)

func (*AuraTestHelper) AssertOut

func (helper *AuraTestHelper) AssertOut(expected string)

func (*AuraTestHelper) AssertOutJson

func (helper *AuraTestHelper) AssertOutJson(expected string)

func (*AuraTestHelper) AsssertOk

func (helper *AuraTestHelper) AsssertOk()

Assets no errors were returned

func (*AuraTestHelper) Close

func (helper *AuraTestHelper) Close()

func (*AuraTestHelper) ExecuteCommand

func (helper *AuraTestHelper) ExecuteCommand(command string)

func (*AuraTestHelper) NewRequestHandlerMock

func (helper *AuraTestHelper) NewRequestHandlerMock(path string, status int, body string) *requestHandlerMock

func (*AuraTestHelper) OverwriteConfig

func (helper *AuraTestHelper) OverwriteConfig(cfg string)

func (*AuraTestHelper) PrintErr

func (helper *AuraTestHelper) PrintErr() string

func (*AuraTestHelper) PrintOut

func (helper *AuraTestHelper) PrintOut() string

func (*AuraTestHelper) SetConfig

func (helper *AuraTestHelper) SetConfig(cfg string)

func (*AuraTestHelper) SetConfigValue

func (helper *AuraTestHelper) SetConfigValue(key string, value interface{})

func (*AuraTestHelper) SetCredentialsValue

func (helper *AuraTestHelper) SetCredentialsValue(key string, value interface{})

func (*AuraTestHelper) SetDefaultProjectInConfig added in v1.6.0

func (helper *AuraTestHelper) SetDefaultProjectInConfig(organizationId, projectId string)

Jump to

Keyboard shortcuts

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