metacontracts

package
v0.113.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaAccessor

type MetaAccessor[Entity, ID, V any] struct {
	MakeSubject func(testing.TB) MetaAccessorSubject[Entity, ID, V]
	MakeContext func(testing.TB) context.Context
	MakeEntity  func(testing.TB) Entity
	MakeV       func(testing.TB) V
}

func (MetaAccessor[Entity, ID, V]) Benchmark

func (c MetaAccessor[Entity, ID, V]) Benchmark(b *testing.B)

func (MetaAccessor[Entity, ID, V]) Spec

func (c MetaAccessor[Entity, ID, V]) Spec(s *testcase.Spec)

func (MetaAccessor[Entity, ID, V]) Test

func (c MetaAccessor[Entity, ID, V]) Test(t *testing.T)

type MetaAccessorBasic

type MetaAccessorBasic[V any] struct {
	MakeSubject func(testing.TB) meta.MetaAccessor
	MakeV       func(testing.TB) V
}

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

func (MetaAccessorBasic[V]) Benchmark

func (c MetaAccessorBasic[V]) Benchmark(b *testing.B)

func (MetaAccessorBasic[V]) Spec

func (c MetaAccessorBasic[V]) Spec(s *testcase.Spec)

func (MetaAccessorBasic[V]) Test

func (c MetaAccessorBasic[V]) Test(t *testing.T)

type MetaAccessorPublisher

type MetaAccessorPublisher[Entity any, ID any, V any] struct {
	MakeSubject func(testing.TB) MetaAccessorSubject[Entity, ID, V]
	MakeContext func(testing.TB) context.Context
	MakeEntity  func(testing.TB) Entity
	MakeV       func(testing.TB) V
}

func (MetaAccessorPublisher[Entity, ID, V]) Benchmark

func (c MetaAccessorPublisher[Entity, ID, V]) Benchmark(b *testing.B)

func (MetaAccessorPublisher[Entity, ID, V]) Spec

func (c MetaAccessorPublisher[Entity, ID, V]) Spec(s *testcase.Spec)

func (MetaAccessorPublisher[Entity, ID, V]) Test

func (c MetaAccessorPublisher[Entity, ID, V]) Test(t *testing.T)

type MetaAccessorSubject

type MetaAccessorSubject[Entity any, ID any, V any] struct {
	meta.MetaAccessor
	Resource  spechelper.CRD[Entity, ID]
	Publisher interface {
		pubsub.CreatorPublisher[Entity]
		pubsub.UpdaterPublisher[Entity]
		pubsub.DeleterPublisher[ID]
	}
}

Jump to

Keyboard shortcuts

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