本文整理匯總了Golang中github.com/getgauge/gauge/gauge_messages.ProtoExecutionResult類的典型用法代碼示例。如果您正苦於以下問題:Golang ProtoExecutionResult類的具體用法?Golang ProtoExecutionResult怎麽用?Golang ProtoExecutionResult使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了ProtoExecutionResult類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: printStatus
func printStatus(executionResult *gauge_messages.ProtoExecutionResult, logger *logger.GaugeLogger) {
logger.Error("Error Message: %s", executionResult.GetErrorMessage())
stacktrace := executionResult.GetStackTrace()
stacktrace = strings.Replace(stacktrace, "\n", "\n\t", -1)
logger.Error("Stacktrace: %s", stacktrace)
}
示例2: printError
func printError(execResult *gauge_messages.ProtoExecutionResult) {
if execResult.GetFailed() {
console := getCurrentLogger()
console.PrintError(execResult.GetErrorMessage() + "\n")
console.PrintError(execResult.GetStackTrace() + "\n")
}
}
示例3: addPostHook
func addPostHook(result result, executionResult *gauge_messages.ProtoExecutionResult) {
if executionResult.GetFailed() {
*(result.getPostHook()) = getProtoHookFailure(executionResult)
result.setFailure()
}
}
示例4: printStatus
func printStatus(executionResult *gauge_messages.ProtoExecutionResult, reporter reporter.Reporter) {
reporter.Error("Error Message: %s", executionResult.GetErrorMessage())
reporter.Error("Stacktrace: \n%s", executionResult.GetStackTrace())
}
示例5: printStatus
func printStatus(executionResult *gauge_messages.ProtoExecutionResult, writer execLogger.ExecutionLogger) {
writer.PrintError(executionResult.GetErrorMessage())
writer.PrintError(executionResult.GetStackTrace())
}
示例6: AddPreHook
func AddPreHook(result Result, executionResult *gauge_messages.ProtoExecutionResult) {
if executionResult.GetFailed() {
*(result.getPreHook()) = GetProtoHookFailure(executionResult)
result.SetFailure()
}
}
示例7: printStatus
func printStatus(executionResult *gauge_messages.ProtoExecutionResult, logger logger.GaugeLogger) {
logger.Error("Error Message: %s", executionResult.GetErrorMessage())
stacktrace := executionResult.GetStackTrace()
logger.Error("Stacktrace: %s", stacktrace)
}