test

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 9 Imported by: ? 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 ListTest

func ListTest(t *testing.T, args []string, expected string)

func SetEnvironmentVariables

func SetEnvironmentVariables()

Types

type LoginTest

type LoginTest struct {
	APIurl      string
	UserID      string
	Password    string
	OTP         string
	HttpHeaders string
	ReqErr      bool //if an error is expected as output
}

func (*LoginTest) Login

func (test *LoginTest) Login(t *testing.T)

type Test

type Test struct {
	InputJson  string //the inputted json
	OutputJson string //the outputted json

	Expected string //the output that is expected
	Contains bool   //if the output contains (expected) or qeuals it

	NotExpected string //the output that is notexpected
	NotContains bool   //if the output contains (notexpected) or qeuals it

	ReqErr      bool   //if an error is expected as output
	ErrContains string //the string the error should contain

	Return bool //if the output should be read and returned for more advanced prcessing

	Args []string //cli arguments
}

func (*Test) StandardTest

func (test *Test) StandardTest(t *testing.T) (out []byte)

Directories

Path Synopsis
Storage

Jump to

Keyboard shortcuts

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