godog/gherkin.go
gedi e9c3d69e2d be compatible with gherkin library changes
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
2016-03-04 12:59:56 +02:00

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
}