func parseAction(items []interface{}, test t) *execution.Action { var index = 1 if test != nil { index = 2 } if action, parsed := items[index].(func()); parsed { return execution.NewAction(action) } if items[index] == nil { return execution.NewSkippedAction(skipReport) } panic(parseError) }
// SkipConvey is analagous to Convey except that the scope is not executed // (which means that child scopes defined within this scope are not run either). // The reporter will be notified that this step was skipped. func SkipConvey(items ...interface{}) { entry := discover(items) entry.Action = execution.NewSkippedAction(skipReport) register(entry) }