godog/steps_test.go
gedi 620b8ef3f1 build basic test runner from package source and test files
* c2f6784 AST
* 9e4d962 Use x/tools/imports to insert import statement
* bb7649f move builder to godog package
* 2892dd1 add build func documentation
2015-06-12 14:23:15 +03:00

14 строки
203 Б
Go

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