tests

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestBuildingRecursives

func TestBuildingRecursives(t *testing.T, nb ipld.NodeBuilder)

func TestBuildingScalars

func TestBuildingScalars(t *testing.T, nb ipld.NodeBuilder)

func TestRecursiveMarshal

func TestRecursiveMarshal(t *testing.T, nb ipld.NodeBuilder)

func TestRecursiveUnmarshal

func TestRecursiveUnmarshal(t *testing.T, nb ipld.NodeBuilder)

func TestScalarMarshal

func TestScalarMarshal(t *testing.T, nb ipld.NodeBuilder)

func TestScalarUnmarshal

func TestScalarUnmarshal(t *testing.T, nb ipld.NodeBuilder)

Types

type TokenBucket

type TokenBucket []tok.Token

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. -.-

func (*TokenBucket) Step

func (tb *TokenBucket) Step(consume *tok.Token) (done bool, err error)

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.

func (*TokenSourceBucket) Step

func (tb *TokenSourceBucket) Step(yield *tok.Token) (done bool, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL