Documentation ¶
Index ¶
- Constants
- Variables
- func Base(e interface{}) interface{}
- func Cleanup(tb testing.TB, ctx context.Context, t crud.AllDeleter)
- func Contains[Ent any](tb testing.TB, slice []Ent, contains Ent, msgAndArgs ...interface{})
- func CreateSubscriptionFilter[Ent any](event interface{}) bool
- func DeleteSubscriptionFilter[ID any](event interface{}) bool
- func GenEntities[T any](t *testcase.T, MakeEnt func(testing.TB) T) []*T
- func LetSubscriber[Ent, ID any](s *testcase.Spec, filter func(interface{}) bool) testcase.Var[*eventSubscriber[Ent, ID]]
- func LetSubscription[Ent, ID any](s *testcase.Spec) testcase.Var[pubsub.Subscription]
- func NewEventSubscriber[Ent, ID any](tb testing.TB, filter func(interface{}) bool) *eventSubscriber[Ent, ID]
- func NewT(T interface{}) interface{}
- func NewTFunc(T interface{}) func() interface{}
- func RequireContainsList(tb testing.TB, list interface{}, listOfContainedElements interface{}, ...)
- func RequireNotContainsList(tb testing.TB, list interface{}, listOfNotContainedElements interface{}, ...)
- func ToPtr[T any](v T) *T
- func TryCleanup(tb testing.TB, ctx context.Context, resource any) bool
- func TypeAssertTo[ToType any](in []any) (out []ToType)
- func UpdateSubscriptionFilter[Ent any](event interface{}) bool
- type CRD
Constants ¶
View Source
const ErrIDRequired errutils.Error = `` /* 174-byte string literal not displayed */
Variables ¶
Functions ¶
func CreateSubscriptionFilter ¶ added in v0.71.0
func DeleteSubscriptionFilter ¶ added in v0.71.0
func GenEntities ¶ added in v0.71.0
func LetSubscriber ¶ added in v0.71.0
func LetSubscription ¶ added in v0.71.0
func NewEventSubscriber ¶ added in v0.71.0
func RequireContainsList ¶ added in v0.71.0
func RequireNotContainsList ¶ added in v0.71.0
func TryCleanup ¶ added in v0.80.0
func TypeAssertTo ¶ added in v0.71.0
func UpdateSubscriptionFilter ¶ added in v0.71.0
Types ¶
type CRD ¶ added in v0.71.0
type CRD[Ent, ID any] interface { crud.Creator[Ent] crud.ByIDFinder[Ent, ID] crud.ByIDDeleter[ID] }
CRD is the minimum requirements to write easily behavioral specification for a resource.
Click to show internal directories.
Click to hide internal directories.