Documentation
¶
Overview ¶
package blobcachetests provides a test suite for blobcache.Service.
Index ¶
- func Abort(t testing.TB, s blobcache.Service, txh blobcache.Handle)
- func BasicNS(t *testing.T, mk func(t testing.TB) blobcache.Service)
- func BeginTx(t testing.TB, s blobcache.Service, volh blobcache.Handle, ...) blobcache.Handle
- func Commit(t testing.TB, s blobcache.Service, txh blobcache.Handle)
- func CreateVolume(t testing.TB, s blobcache.Service, host *blobcache.Endpoint, ...) blobcache.Handle
- func Delete(t testing.TB, s blobcache.Service, txh blobcache.Handle, cid blobcache.CID)
- func Endpoint(t testing.TB, s blobcache.Service) blobcache.Endpoint
- func Exists(t testing.TB, s blobcache.Service, txh blobcache.Handle, cid blobcache.CID) bool
- func Get(t testing.TB, s blobcache.Service, txh blobcache.Handle, cid blobcache.CID, ...) int
- func GetBytes(t testing.TB, s blobcache.Service, txh blobcache.Handle, cid blobcache.CID, ...) []byte
- func IsVisited(t testing.TB, s blobcache.Service, txh blobcache.Handle, cids []blobcache.CID) []bool
- func Load(t testing.TB, s blobcache.Service, txh blobcache.Handle) []byte
- func Modify(t testing.TB, s blobcache.Service, volh blobcache.Handle, ...)
- func Post(t testing.TB, s blobcache.Service, txh blobcache.Handle, data []byte, ...) blobcache.CID
- func Save(t testing.TB, s blobcache.Service, txh blobcache.Handle, data []byte)
- func SaveCommit(t testing.TB, s blobcache.Service, txh blobcache.Handle, data []byte)
- func ServiceAPI(t *testing.T, mk func(t testing.TB) blobcache.Service)
- func TestManyBlobs(t *testing.T, singleTx bool, mk func(t testing.TB) blobcache.Service)
- func TestMultiNode(t *testing.T, mk func(t testing.TB, n int) []blobcache.Service)
- func TxAPI(t *testing.T, mk func(t testing.TB) (blobcache.Service, blobcache.Handle))
- func Visit(t testing.TB, s blobcache.Service, txh blobcache.Handle, cids []blobcache.CID)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateVolume ¶
func SaveCommit ¶
SaveCommit is a convenience function that saves the given data and then commits the transaction.
func ServiceAPI ¶
ServiceAPI tests an implementation of blobcache.Service.
func TestManyBlobs ¶
func TestMultiNode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.