예제 #1
0
파일: gauge.go 프로젝트: Jayasagar/gauge
func printError(execResult *gauge_messages.ProtoExecutionResult) {
	if execResult.GetFailed() {
		console := getCurrentLogger()
		console.PrintError(execResult.GetErrorMessage() + "\n")
		console.PrintError(execResult.GetStackTrace() + "\n")
	}
}
예제 #2
0
func addPostHook(result result, executionResult *gauge_messages.ProtoExecutionResult) {
	if executionResult.GetFailed() {
		*(result.getPostHook()) = getProtoHookFailure(executionResult)
		result.setFailure()
	}
}
예제 #3
0
파일: specResult.go 프로젝트: 0-T-0/gauge
func AddPreHook(result Result, executionResult *gauge_messages.ProtoExecutionResult) {
	if executionResult.GetFailed() {
		*(result.getPreHook()) = GetProtoHookFailure(executionResult)
		result.SetFailure()
	}
}