Documentation ¶
Index ¶
- Variables
- func ApplyDiff(t *testing.T, diff shard.Diff, bs Blockstore)
- func RandomBytes(t *testing.T, size int) []byte
- func RandomLink(t *testing.T) datamodel.Link
- func RandomMultihash(t *testing.T) mh.Multihash
- type Blockstore
- type MapBlockstore
- func (bs *MapBlockstore) Del(ctx context.Context, link ipld.Link) error
- func (bs *MapBlockstore) Get(ctx context.Context, link ipld.Link) (block.Block, error)
- func (bs *MapBlockstore) Put(ctx context.Context, b block.Block) error
- func (bs *MapBlockstore) PutAll(ctx context.Context, blocks ...block.Block) error
- type StringBinder
- type TestEvent
- type TestEventBinder
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
Types ¶
type Blockstore ¶
type MapBlockstore ¶
type MapBlockstore struct { GetCount int // contains filtered or unexported fields }
func NewBlockstore ¶
func NewBlockstore() *MapBlockstore
type StringBinder ¶
type StringBinder struct {
// contains filtered or unexported fields
}
func NewStringBinder ¶
func NewStringBinder(t *testing.T) StringBinder
func (StringBinder) Bind ¶
func (sb StringBinder) Bind(n ipld.Node) (string, error)
func (StringBinder) Unbind ¶
func (sb StringBinder) Unbind(s string) (ipld.Node, error)
type TestEvent ¶
func RandomEventData ¶
type TestEventBinder ¶
type TestEventBinder struct {
// contains filtered or unexported fields
}
func NewTestEventBinder ¶
func NewTestEventBinder(t *testing.T) TestEventBinder
func (TestEventBinder) Bind ¶
func (teb TestEventBinder) Bind(n ipld.Node) (TestEvent, error)
func (TestEventBinder) Unbind ¶
func (teb TestEventBinder) Unbind(e TestEvent) (ipld.Node, error)
Click to show internal directories.
Click to hide internal directories.