Documentation ¶
Index ¶
- type Blockstore
- type Suite
- func (s *Suite) RunTests(t *testing.T, prefix string)
- func (s *Suite) TestAllKeysRespectsContext(t *testing.T)
- func (s *Suite) TestAllKeysSimple(t *testing.T)
- func (s *Suite) TestCidv0v1(t *testing.T)
- func (s *Suite) TestDelete(t *testing.T)
- func (s *Suite) TestDoubleClose(t *testing.T)
- func (s *Suite) TestGetAndViewWhenKeyIsNil(t *testing.T)
- func (s *Suite) TestGetAndViewWhenKeyNotPresent(t *testing.T)
- func (s *Suite) TestHas(t *testing.T)
- func (s *Suite) TestInsertExistingBlock(t *testing.T)
- func (s *Suite) TestPutMany(t *testing.T)
- func (s *Suite) TestPutThenGetAndViewBlock(t *testing.T)
- func (s *Suite) TestPutThenGetSizeBlock(t *testing.T)
- func (s *Suite) TestReopenPutGet(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blockstore ¶
type Blockstore interface { blockstore.Blockstore blockstore.Viewer }
type Suite ¶
type Suite struct { NewBlockstore func(tb testing.TB) (bs Blockstore, path string) OpenBlockstore func(tb testing.TB, path string) (bs Blockstore, err error) }
Suite represents a suite of tests. To run the tests, provide the NewBlockstore and OpenBlockstore functions for the blockstore under test. Then call RunTests().
func (*Suite) TestAllKeysRespectsContext ¶
func (*Suite) TestAllKeysSimple ¶
func (*Suite) TestCidv0v1 ¶
func (*Suite) TestDelete ¶
func (*Suite) TestDoubleClose ¶
func (*Suite) TestGetAndViewWhenKeyIsNil ¶
func (*Suite) TestGetAndViewWhenKeyNotPresent ¶
func (*Suite) TestInsertExistingBlock ¶
func (*Suite) TestPutMany ¶
func (*Suite) TestPutThenGetAndViewBlock ¶
func (*Suite) TestPutThenGetSizeBlock ¶
func (*Suite) TestReopenPutGet ¶
Click to show internal directories.
Click to hide internal directories.