Documentation ¶
Index ¶
- func AddPostHook(result Result, executionResult *gauge_messages.ProtoExecutionResult)
- func AddPreHook(result Result, executionResult *gauge_messages.ProtoExecutionResult)
- func GetProtoHookFailure(executionResult *gauge_messages.ProtoExecutionResult) *(gauge_messages.ProtoHookFailure)
- type ExecTimeTracker
- type Result
- type ScenarioResult
- func (scenarioResult *ScenarioResult) AddContexts(contextProtoItems []*gauge_messages.ProtoItem)
- func (scenarioResult *ScenarioResult) AddExecTime(execTime int64)
- func (scenarioResult *ScenarioResult) AddItems(protoItems []*gauge_messages.ProtoItem)
- func (scenarioResult *ScenarioResult) GetFailure() bool
- func (scenarioResult *ScenarioResult) SetFailure()
- func (scenarioResult *ScenarioResult) UpdateExecutionTime()
- type SpecResult
- func (specResult *SpecResult) AddExecTime(execTime int64)
- func (specResult *SpecResult) AddScenarioResults(scenarioResults []*ScenarioResult)
- func (specResult *SpecResult) AddSpecItems(resolvedItems []*gauge_messages.ProtoItem)
- func (specResult *SpecResult) AddTableDrivenScenarioResult(scenarioResults [][](*ScenarioResult))
- func (specResult *SpecResult) SetFailure()
- type SuiteResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPostHook ¶
func AddPostHook(result Result, executionResult *gauge_messages.ProtoExecutionResult)
func AddPreHook ¶
func AddPreHook(result Result, executionResult *gauge_messages.ProtoExecutionResult)
func GetProtoHookFailure ¶
func GetProtoHookFailure(executionResult *gauge_messages.ProtoExecutionResult) *(gauge_messages.ProtoHookFailure)
Types ¶
type ExecTimeTracker ¶
type ExecTimeTracker interface {
AddExecTime(int64)
}
type ScenarioResult ¶
type ScenarioResult struct {
ProtoScenario *gauge_messages.ProtoScenario
}
func (*ScenarioResult) AddContexts ¶
func (scenarioResult *ScenarioResult) AddContexts(contextProtoItems []*gauge_messages.ProtoItem)
func (*ScenarioResult) AddExecTime ¶
func (scenarioResult *ScenarioResult) AddExecTime(execTime int64)
func (*ScenarioResult) AddItems ¶
func (scenarioResult *ScenarioResult) AddItems(protoItems []*gauge_messages.ProtoItem)
func (*ScenarioResult) GetFailure ¶
func (scenarioResult *ScenarioResult) GetFailure() bool
func (*ScenarioResult) SetFailure ¶
func (scenarioResult *ScenarioResult) SetFailure()
func (*ScenarioResult) UpdateExecutionTime ¶
func (scenarioResult *ScenarioResult) UpdateExecutionTime()
type SpecResult ¶
type SpecResult struct { ProtoSpec *gauge_messages.ProtoSpec ScenarioFailedCount int ScenarioCount int IsFailed bool FailedDataTableRows []int32 ExecutionTime int64 Skipped bool ScenarioSkippedCount int }
func (*SpecResult) AddExecTime ¶
func (specResult *SpecResult) AddExecTime(execTime int64)
func (*SpecResult) AddScenarioResults ¶
func (specResult *SpecResult) AddScenarioResults(scenarioResults []*ScenarioResult)
func (*SpecResult) AddSpecItems ¶
func (specResult *SpecResult) AddSpecItems(resolvedItems []*gauge_messages.ProtoItem)
func (*SpecResult) AddTableDrivenScenarioResult ¶
func (specResult *SpecResult) AddTableDrivenScenarioResult(scenarioResults [][](*ScenarioResult))
func (*SpecResult) SetFailure ¶
func (specResult *SpecResult) SetFailure()
type SuiteResult ¶
type SuiteResult struct { SpecResults []*SpecResult PreSuite *(gauge_messages.ProtoHookFailure) PostSuite *(gauge_messages.ProtoHookFailure) IsFailed bool SpecsFailedCount int ExecutionTime int64 //in milliseconds UnhandledErrors []error Environment string Tags string ProjectName string Timestamp string SpecsSkippedCount int }
func NewSuiteResult ¶
func NewSuiteResult() *SuiteResult
func (*SuiteResult) AddSpecResult ¶
func (suiteResult *SuiteResult) AddSpecResult(specResult *SpecResult)
func (*SuiteResult) SetFailure ¶
func (suiteResult *SuiteResult) SetFailure()
Click to show internal directories.
Click to hide internal directories.