clientdriver

package
v2.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package clientdriver is the reference Driver: it does what a person does, through a client.Client alone, walking the contract's flow. Run over the in-process client it proves the scenarios describe behaviour the engine guarantees; run over a transport it proves the transport carries that behaviour unchanged. When an interface's own driver fails a scenario this one passes, the interface is wrong, not the scenario.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	C client.Client
	// contains filtered or unexported fields
}

Driver holds one open flow.

func New

func New(c client.Client) *Driver

New returns a driver over c.

func (*Driver) Act

func (d *Driver) Act(ctx context.Context, action uiconformance.Action, reason string) error

func (*Driver) Close

func (d *Driver) Close(context.Context) error

func (*Driver) Open

func (d *Driver) Open(ctx context.Context, kind, id string) (string, error)

func (*Driver) Problems

func (d *Driver) Problems(context.Context) ([]uiconformance.Problem, error)

func (*Driver) Set

func (d *Driver) Set(_ context.Context, field uiconformance.Field, value any) error

func (*Driver) Step

func (d *Driver) Step(_ context.Context, key string) error

func (*Driver) Where

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL