當前位置: 首頁>>代碼示例>>Golang>>正文


Golang gauge_messages.ProtoExecutionResult類代碼示例

本文整理匯總了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)
}
開發者ID:krwhitney,項目名稱:gauge,代碼行數:7,代碼來源:specExecutor.go

示例2: printError

func printError(execResult *gauge_messages.ProtoExecutionResult) {
	if execResult.GetFailed() {
		console := getCurrentLogger()
		console.PrintError(execResult.GetErrorMessage() + "\n")
		console.PrintError(execResult.GetStackTrace() + "\n")
	}
}
開發者ID:Jayasagar,項目名稱:gauge,代碼行數:7,代碼來源:gauge.go

示例3: addPostHook

func addPostHook(result result, executionResult *gauge_messages.ProtoExecutionResult) {
	if executionResult.GetFailed() {
		*(result.getPostHook()) = getProtoHookFailure(executionResult)
		result.setFailure()
	}
}
開發者ID:Jayasagar,項目名稱:gauge,代碼行數:6,代碼來源:specResult.go

示例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())
}
開發者ID:andrewmkrug,項目名稱:gauge,代碼行數:4,代碼來源:specExecutor.go

示例5: printStatus

func printStatus(executionResult *gauge_messages.ProtoExecutionResult, writer execLogger.ExecutionLogger) {
	writer.PrintError(executionResult.GetErrorMessage())
	writer.PrintError(executionResult.GetStackTrace())
}
開發者ID:ranjeet-floyd,項目名稱:gauge,代碼行數:4,代碼來源:specExecutor.go

示例6: AddPreHook

func AddPreHook(result Result, executionResult *gauge_messages.ProtoExecutionResult) {
	if executionResult.GetFailed() {
		*(result.getPreHook()) = GetProtoHookFailure(executionResult)
		result.SetFailure()
	}
}
開發者ID:0-T-0,項目名稱:gauge,代碼行數:6,代碼來源:specResult.go

示例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)
}
開發者ID:jasonchaffee,項目名稱:gauge,代碼行數:5,代碼來源:specExecutor.go


注:本文中的github.com/getgauge/gauge/gauge_messages.ProtoExecutionResult類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。