Documentation ¶
Index ¶
- func TestBuildingRecursives(t *testing.T, nb ipld.NodeBuilder)
- func TestBuildingScalars(t *testing.T, nb ipld.NodeBuilder)
- func TestRecursiveMarshal(t *testing.T, nb ipld.NodeBuilder)
- func TestRecursiveUnmarshal(t *testing.T, nb ipld.NodeBuilder)
- func TestScalarMarshal(t *testing.T, nb ipld.NodeBuilder)
- func TestScalarUnmarshal(t *testing.T, nb ipld.NodeBuilder)
- type TokenBucket
- type TokenSourceBucket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestBuildingRecursives ¶
func TestBuildingScalars ¶
func TestRecursiveMarshal ¶
func TestRecursiveUnmarshal ¶
func TestRecursiveUnmarshal(t *testing.T, nb ipld.NodeBuilder)
func TestScalarMarshal ¶
func TestScalarUnmarshal ¶
func TestScalarUnmarshal(t *testing.T, nb ipld.NodeBuilder)
Types ¶
type TokenBucket ¶
TokenBucket acts as a TokenSink; you can dump data into it and then do test assertions on it with go-wish.
func (TokenBucket) Minimalize ¶
func (tb TokenBucket) Minimalize() TokenBucket
This should really be a utility func in refmt tok. -.-
type TokenSourceBucket ¶
type TokenSourceBucket struct {
// contains filtered or unexported fields
}
TokenSourceBucket acts like a TokenSource by yielding tokens from a pre-made slice; and also keeps track of how far it's been read.
Click to show internal directories.
Click to hide internal directories.