godog/fmt_test.go

20 строки
398 Б
Go

package godog
import "gopkg.in/cucumber/gherkin-go.v3"
type testFormatter struct {
basefmt
scenarios []interface{}
}
func (f *testFormatter) Node(node interface{}) {
f.basefmt.Node(node)
switch t := node.(type) {
case *gherkin.Scenario:
f.scenarios = append(f.scenarios, t)
case *gherkin.ScenarioOutline:
f.scenarios = append(f.scenarios, t)
}
}
func (f *testFormatter) Summary() {}