test

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallerfunctionName

func CallerfunctionName() string

This will return the string name of the method that called this function

func CheckExecutionSequence

func CheckExecutionSequence(executionsequenceList []string, executingFunction string, index *int, t *testing.T)

This will test if the function currently executing is in the right sequence in a list of execution order. executionsequenceList - Array of function names that will represent the execution order executingFunction - The m

func CheckIfFunctionHasError

func CheckIfFunctionHasError(functionWithError string, executingFunction string, functionWithErrorNumber int, functionWithErrorCount *int, t *testing.T) error

This will trigger error return for the toolSet functions to test error condition. Parameters are: functionWithError - The function that you want error to happen executingFunction - This is the function currently running. This will be supplied by using callerfunctionName() functionWithErrorNumber - For functions that are called multiple times, this is the instance # of the function that

the error will be triggered. For example if you specify 2, then the 2nd call to the function is the one that
will be processed

functionWithErrorCount - This is just a counter of how many times the target function has been called. This will be

used by functionWithErrorNumber to identify if it has hit that # of execution of the function to trigger the
return of the error.

func GetFunctionName

func GetFunctionName(i interface{}) string

This will return the string name of the method

func VerifyExecutionSequenceCompleted

func VerifyExecutionSequenceCompleted(executionSequenceList []string, executionIndex int, t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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