metacontracts

package
v0.243.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetaAccessor

func MetaAccessor[V any](subject meta.MetaAccessor, opts ...Option[V]) contract.Contract

MetaAccessor V is the value T type that can be set and looked up with frameless.MetaAccessor.

Types

type Config

type Config[V any] struct {
	MakeV       func(tb testing.TB) V
	MakeContext func() context.Context
}

func (Config[V]) Configure

func (c Config[V]) Configure(t *Config[V])

func (*Config[V]) Init

func (c *Config[V]) Init()

type Option

type Option[V any] interface {
	option.Option[Config[V]]
}

Jump to

Keyboard shortcuts

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