testdriver

package
v6.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package testdriver scopes database-free backend selection to one test run.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContext

func WithContext(ctx context.Context, binding Binding) context.Context

Types

type Binding

type Binding struct {
	Kind     string
	Recorder *record.Recorder
}

Binding selects a repository-provided test backend, not an arbitrary driver.

func FromContext

func FromContext(ctx context.Context) Binding

Jump to

Keyboard shortcuts

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