tahoe-great-black-swamp-testing-0.5.0.0: An HSpec for Great Black Swamp storage backends
Safe HaskellNone
LanguageHaskell2010

Tahoe.Storage.Testing.Spec

Synopsis

Documentation

newtype ShareNumbers Source #

Constructors

ShareNumbers 

Fields

Instances

Instances details
Eq ShareNumbers Source # 
Instance details

Defined in Tahoe.Storage.Testing.Spec

Ord ShareNumbers Source # 
Instance details

Defined in Tahoe.Storage.Testing.Spec

Show ShareNumbers Source # 
Instance details

Defined in Tahoe.Storage.Testing.Spec

Arbitrary ShareNumbers Source #

An Arbitrary instance that guarantees ShareNumbers are unique and non-empty (without invoking discard).

Instance details

Defined in Tahoe.Storage.Testing.Spec

newtype SomeShareData Source #

Constructors

SomeShareData 

Instances

Instances details
Show SomeShareData Source # 
Instance details

Defined in Tahoe.Storage.Testing.Spec

Arbitrary SomeShareData Source #

Generate some fairly short and some fairly long byte strings.

Instance details

Defined in Tahoe.Storage.Testing.Spec

makeStorageSpec Source #

Arguments

:: Backend b 
=> IO b

An action that produces a new, empty backend.

-> (b -> IO ())

A function that produces an action to clean up any state that may have been created in the given backend.

-> Spec

A test specification for the backend.

Instantiate property tests for the storage backend specification for a particular backend.

genStorageIndex :: Gen StorageIndex Source #

Orphan instances

Arbitrary ReadTestWriteVectors Source # 
Instance details

Methods

arbitrary :: Gen ReadTestWriteVectors #

shrink :: ReadTestWriteVectors -> [ReadTestWriteVectors] #

Arbitrary ReadVector Source # 
Instance details

Methods

arbitrary :: Gen ReadVector #

shrink :: ReadVector -> [ReadVector] #

Arbitrary ShareNumber Source # 
Instance details

Methods

arbitrary :: Gen ShareNumber #

shrink :: ShareNumber -> [ShareNumber] #

Arbitrary TestVector Source # 
Instance details

Methods

arbitrary :: Gen TestVector #

shrink :: TestVector -> [TestVector] #

Arbitrary TestWriteVectors Source # 
Instance details

Methods

arbitrary :: Gen TestWriteVectors #

shrink :: TestWriteVectors -> [TestWriteVectors] #

Arbitrary WriteVector Source # 
Instance details

Methods

arbitrary :: Gen WriteVector #

shrink :: WriteVector -> [WriteVector] #