Documentation ¶
Index ¶
- func TestAll(t *testing.T, cons Constructor)
- func TestCloseAfterOpen(t *testing.T, cons Constructor)
- func TestCloseTwice(t *testing.T, cons Constructor)
- func TestModeTransition(t *testing.T, cons Constructor, from, to mode.Mode)
- func TestSetMode(t *testing.T, cons Constructor, m mode.Mode)
- type Component
- type Constructor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestAll ¶
func TestAll(t *testing.T, cons Constructor)
TestAll checks that storage component doesn't panic under any circumstances during shard operation.
func TestCloseAfterOpen ¶
func TestCloseAfterOpen(t *testing.T, cons Constructor)
TestCloseAfterOpen checks that `Close` can be done right after `Open`. Use-case: open shard, encounter error, close before the initialization.
func TestCloseTwice ¶
func TestCloseTwice(t *testing.T, cons Constructor)
TestCloseTwice checks that `Close` can be done twice.
func TestModeTransition ¶
func TestModeTransition(t *testing.T, cons Constructor, from, to mode.Mode)
func TestSetMode ¶
func TestSetMode(t *testing.T, cons Constructor, m mode.Mode)
TestSetMode checks that any mode transition can be done safely.
Types ¶
type Constructor ¶
Constructor constructs storage component. Each call must create a component using different file-system path.
Click to show internal directories.
Click to hide internal directories.