Documentation ¶
Index ¶
- func CtxT(ctx context.Context) testing.TB
- func LimitString(size int) func(string) bool
- func OneOff[T any](gen gopter.Gen) T
- func Positive(id radio.UserID) bool
- func PutT(ctx context.Context, t testing.TB) context.Context
- func RunTests(t *testing.T, s TestSetup)
- type Suite
- func (suite *Suite) BeforeTest(testName string) error
- func (suite *Suite) Storage(t *testing.T) radio.StorageService
- func (suite *Suite) TestGenSessionStorage(t *testing.T)
- func (suite *Suite) TestNewsSimpleCreateAndGet(t *testing.T)
- func (suite *Suite) TestNewsStorageDeleteExist(t *testing.T)
- func (suite *Suite) TestNewsStorageDeleteNoExist(t *testing.T)
- func (suite *Suite) TestNewsWithUser(t *testing.T)
- func (suite *Suite) TestScheduleUpdate(t *testing.T)
- func (suite *Suite) TestSongCreateAndRetrieve(t *testing.T)
- func (suite *Suite) TestSongLastPlayed(t *testing.T)
- func (suite *Suite) TestStatusStore(t *testing.T)
- func (suite *Suite) TestTrackUpdateMetadata(t *testing.T)
- func (suite *Suite) TestTransactionCommit(t *testing.T)
- func (suite *Suite) TestTransactionRollback(t *testing.T)
- type TestSetup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LimitString ¶
Types ¶
type Suite ¶
type Suite struct { ToBeTested TestSetup // contains filtered or unexported fields }
func (*Suite) BeforeTest ¶
func (*Suite) TestGenSessionStorage ¶
TestGenSessionStorage runs through all methods of the SessionStorage interface with a randomly generated session.
func (*Suite) TestNewsSimpleCreateAndGet ¶
func (*Suite) TestNewsStorageDeleteExist ¶
func (*Suite) TestNewsStorageDeleteNoExist ¶
func (*Suite) TestNewsWithUser ¶
func (*Suite) TestScheduleUpdate ¶
func (*Suite) TestSongCreateAndRetrieve ¶
func (*Suite) TestSongLastPlayed ¶
func (*Suite) TestStatusStore ¶
func (*Suite) TestTrackUpdateMetadata ¶
func (*Suite) TestTransactionCommit ¶
func (*Suite) TestTransactionRollback ¶
Click to show internal directories.
Click to hide internal directories.