Documentation ¶
Overview ¶
Package storagetest contains high level API tests and test utils for other modules.
Index ¶
- func AddRandBlob(ctx context.Context, objectStorage storage.ObjectStorage, jetID core.RecordID, ...) (*core.RecordID, error)
- func AddRandDrop(ctx context.Context, dropStorage storage.DropStorage, jetID core.RecordID, ...) (*jet.JetDrop, error)
- func AddRandIndex(ctx context.Context, objectStorage storage.ObjectStorage, jetID core.RecordID, ...) (*core.RecordID, error)
- func AddRandRecord(ctx context.Context, objectStorage storage.ObjectStorage, jetID core.RecordID, ...) (*core.RecordID, error)
- func TmpDB(ctx context.Context, t testing.TB, options ...Option) (storage.DBContext, func())
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRandBlob ¶ added in v0.8.0
func AddRandBlob( ctx context.Context, objectStorage storage.ObjectStorage, jetID core.RecordID, pulsenum core.PulseNumber, ) (*core.RecordID, error)
AddRandBlob adds random blob.
func AddRandDrop ¶ added in v0.8.0
func AddRandDrop( ctx context.Context, dropStorage storage.DropStorage, jetID core.RecordID, pulsenum core.PulseNumber, ) (*jet.JetDrop, error)
AddRandDrop adds random drop.
func AddRandIndex ¶ added in v0.8.0
func AddRandIndex( ctx context.Context, objectStorage storage.ObjectStorage, jetID core.RecordID, pulsenum core.PulseNumber, ) (*core.RecordID, error)
AddRandIndex adds random index.
func AddRandRecord ¶ added in v0.8.0
func AddRandRecord( ctx context.Context, objectStorage storage.ObjectStorage, jetID core.RecordID, pulsenum core.PulseNumber, ) (*core.RecordID, error)
AddRandRecord adds random record.
Types ¶
type Option ¶ added in v0.6.3
type Option func(*tmpDBOptions)
Option provides functional option for TmpDB.
func DisableBootstrap ¶ added in v0.6.3
func DisableBootstrap() Option
DisableBootstrap skip bootstrap records creation.
Click to show internal directories.
Click to hide internal directories.