Versions in this module Expand all Collapse all v0 v0.3.0 Oct 21, 2026 v0.2.0 Oct 19, 2026 v0.1.0 Oct 19, 2026 Changes in this version + func MatchPath(got, pattern string) (map[string]any, bool) + func Register(name string, fn func([]any) (any, error)) error + func Unregister(name string) + type Call struct + Body []byte + Cookies [][2]string + Follow bool + Header map[string][]string + Jar http.CookieJar + Method string + Transport TransportSettings + URL string + type Embed struct + Data []byte + Mime string + Name string + type Exchange struct + Duration time.Duration + Endpoint string + Error string + Method string + RequestBody string + RequestHeaders map[string]string + ResponseBody string + ResponseHeaders map[string]string + Started time.Time + Status int + URL string + type FileResult struct + Duration time.Duration + Name string + Path string + Scenarios []ScenarioResult + Started time.Time + func RunFile(ctx context.Context, f *feature.File, opt Options) (FileResult, error) + func RunFiles(ctx context.Context, files []*feature.File, opt Options, done func(FileResult)) ([]FileResult, error) + func (f FileResult) Passed() bool + type Link struct + Call func(context.Context, string, any) (any, error) + Close func() error + Open func(context.Context, string) (Stream, error) + Receive func(context.Context) (any, error) + Send func(context.Context, any) error + type MockRuntime struct + func NewMockRuntime(ctx context.Context, f *feature.File, prepare func(*script.VM)) (*MockRuntime, error) + func (m *MockRuntime) Run(ctx context.Context, vars map[string]any) ScenarioResult + type Options struct + BeforeRequest func(context.Context) error + Depth int + Dial func(context.Context, string, map[string]any) (Link, error) + Env string + HTTP Sender + Iter int + Jobs int + LoadMode bool + Mock bool + NewPage func(context.Context) (Page, error) + OnRequest func(Exchange) + Prepare func(*script.VM) + SkipHooks bool + Stack []string + Stdout io.Writer + Suite *suite.Suite + Tag string + Timeout time.Duration + VU int + Vars map[string]any + type Page interface + Click func(ctx context.Context, selector string) error + Close func() error + Fill func(ctx context.Context, selector, text string) error + Open func(ctx context.Context, url string) error + Text func(ctx context.Context, selector string) (string, error) + type Reply struct + Body []byte + Duration time.Duration + Header map[string][]string + Status int + URL string + type ScenarioResult struct + Canceled bool + Defined map[string]bool + Duration time.Duration + Error string + Line int + Miss bool + Name string + Passed bool + ReportDisabled bool + Skipped bool + Started time.Time + Steps []StepResult + Tags []string + Vars map[string]any + func RunScenario(ctx context.Context, f *feature.File, sc feature.Scenario, opt Options) ScenarioResult + type Sender interface + Send func(ctx context.Context, call Call) (Reply, error) + type StepResult struct + Calls []StepResult + Canceled bool + Diff string + Duration time.Duration + Embeds []Embed + Error string + HTTP *Exchange + Keyword string + Label string + Line int + Output string + Passed bool + Started time.Time + Text string + type Stream struct + Close func() error + CloseSend func() error + Receive func(context.Context) (any, error) + Send func(context.Context, any) error + type TransportSettings struct + CACert string + Cert string + ConnectTimeout time.Duration + Key string + NonProxyHosts string + Proxy string + ProxySet bool + TLSConfigured bool + TLSVersion uint16 + TrustAll bool