
the downside is that if outline examples are empty it won't be pretty printed as node. But that does not make much difference anyway
10 строки
258 Б
Go
10 строки
258 Б
Go
package godog
|
|
|
|
import "gopkg.in/cucumber/gherkin-go.v3"
|
|
|
|
// examples is a helper func to cast gherkin.Examples
|
|
// or gherkin.BaseExamples if its empty
|
|
func examples(ex interface{}) (*gherkin.Examples, bool) {
|
|
t, ok := ex.(*gherkin.Examples)
|
|
return t, ok
|
|
}
|