Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type CacheSubject ¶
type CacheSubject[Entity, ID any] struct { Cache cacheCache[Entity, ID] Source cacheSource[Entity, ID] Repository cache.Repository[Entity, ID] }
type EntityRepository ¶
type EntityRepository[Entity, ID any] struct { MakeSubject func(testing.TB) (cache.EntityRepository[Entity, ID], comproto.OnePhaseCommitProtocol) MakeContext func(testing.TB) context.Context MakeEntity func(testing.TB) Entity }
func (EntityRepository[Entity, ID]) Benchmark ¶
func (c EntityRepository[Entity, ID]) Benchmark(b *testing.B)
func (EntityRepository[Entity, ID]) Spec ¶
func (c EntityRepository[Entity, ID]) Spec(s *testcase.Spec)
func (EntityRepository[Entity, ID]) Test ¶
func (c EntityRepository[Entity, ID]) Test(t *testing.T)
type Repository ¶
type Repository[Entity, ID any] struct { MakeSubject func(testing.TB) cache.Repository[Entity, ID] MakeContext func(testing.TB) context.Context MakeEntity func(testing.TB) Entity }
func (Repository[Entity, ID]) Benchmark ¶
func (c Repository[Entity, ID]) Benchmark(b *testing.B)
func (Repository[Entity, ID]) Spec ¶
func (c Repository[Entity, ID]) Spec(s *testcase.Spec)
func (Repository[Entity, ID]) Test ¶
func (c Repository[Entity, ID]) Test(t *testing.T)
Click to show internal directories.
Click to hide internal directories.