Documentation
¶
Index ¶
- func CallerfunctionName() string
- func CheckExecutionSequence(executionsequenceList []string, executingFunction string, index *int, ...)
- func CheckIfFunctionHasError(functionWithError string, executingFunction string, ...) error
- func GetFunctionName(i interface{}) string
- func VerifyExecutionSequenceCompleted(executionSequenceList []string, executionIndex int, t *testing.T)
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
Types ¶
This section is empty.