godog/steps_test.go
2015-06-12 16:56:55 +03:00

14 строки
219 Б
Go

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