14 строки
219 Б
Go
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)
|
|
}
|