godog/gherkin/example/ls_test.go
2015-06-12 17:35:00 +03:00

16 строки
260 Б
Go

package main
import (
"log"
"regexp"
"github.com/DATA-DOG/godog"
)
func SomeContext(g godog.Suite) {
f := godog.StepHandlerFunc(func(args ...interface{}) error {
log.Println("step triggered")
return nil
})
g.Step(regexp.MustCompile("hello"), f)
}