Documentation
¶
Index ¶
- func KeyValueStore[K comparable, V any](make func(tb testing.TB) datastruct.KeyValueStore[K, V], ...) contract.Contract
- func List[T any](make func(tb testing.TB) datastruct.List[T], opts ...ListOption[T]) contract.Contract
- func OrderedList[T any](make func(tb testing.TB) datastruct.List[T], opts ...ListOption[T]) contract.Contract
- func Sequence[T any](make contract.Make[datastruct.Sequence[T]], opts ...SequenceOption[T]) contract.Contract
- type KVSConfig
- type KVSOption
- type ListConfig
- type ListOption
- type SequenceConfig
- type SequenceOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyValueStore ¶
func KeyValueStore[K comparable, V any](make func(tb testing.TB) datastruct.KeyValueStore[K, V], opts ...KVSOption[K, V]) contract.Contract
func List ¶
func List[T any](make func(tb testing.TB) datastruct.List[T], opts ...ListOption[T]) contract.Contract
func OrderedList ¶
func OrderedList[T any](make func(tb testing.TB) datastruct.List[T], opts ...ListOption[T]) contract.Contract
func Sequence ¶
func Sequence[T any](make contract.Make[datastruct.Sequence[T]], opts ...SequenceOption[T]) contract.Contract
Types ¶
type ListConfig ¶
func (ListConfig[T]) Configure ¶
func (c ListConfig[T]) Configure(o *ListConfig[T])
type ListOption ¶
type ListOption[T any] interface { option.Option[ListConfig[T]] }
type SequenceConfig ¶
func (SequenceConfig[T]) Configure ¶
func (sc SequenceConfig[T]) Configure(t *SequenceConfig[T])
func (SequenceConfig[T]) ToListConfig ¶
func (sc SequenceConfig[T]) ToListConfig() ListConfig[T]
type SequenceOption ¶
type SequenceOption[T any] option.Option[SequenceConfig[T]]
Click to show internal directories.
Click to hide internal directories.