Documentation ¶
Index ¶
- func RunTest(t *testing.T, fnc Func, opts *Options)
- func RunTestLocal(t *testing.T, open kv.OpenPathFunc, opts *Options)
- type Func
- type Options
- type Test
- func (t Test) Del(key kv.Key)
- func (t Test) Expect(k kv.Key, exp kv.Value)
- func (t Test) ExpectIt(it kv.Iterator, exp []kv.Pair)
- func (t Test) Get(key kv.Key) (kv.Value, error)
- func (t Test) NotExists(k kv.Key)
- func (t Test) Put(key kv.Key, val kv.Value)
- func (t Test) Scan(exp []kv.Pair, opts ...kv.IteratorOption)
- func (t Test) ScanReset(exp []kv.Pair, opts ...kv.IteratorOption)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTestLocal ¶
func RunTestLocal(t *testing.T, open kv.OpenPathFunc, opts *Options)
RunTestLocal is a wrapper for RunTest that automatically creates a temporary directory and opens a database.
Types ¶
type Func ¶
Func is a constructor for database implementations. It returns an empty database and a function to destroy it.
Click to show internal directories.
Click to hide internal directories.