internaltesting

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncFnImpl

type SyncFnImpl[T any] struct {
	// contains filtered or unexported fields
}

SyncFnImpl is a test implementation of the sync* functions in the controller package.

func NewSyncFnImpl

func NewSyncFnImpl[T any]() *SyncFnImpl[T]

NewSyncFnImpl creates a new SyncFnImpl.

func (*SyncFnImpl[T]) GetItems

func (s *SyncFnImpl[T]) GetItems() []*T

GetItems returns a copy of the items.

func (*SyncFnImpl[T]) Reset

func (s *SyncFnImpl[T]) Reset()

Reset resets the items.

func (*SyncFnImpl[T]) Sync

func (s *SyncFnImpl[T]) Sync(_ context.Context, item *T) error

Sync is the actual implementation of the sync function.

Jump to

Keyboard shortcuts

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