tests

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkSpec_Marshal_Map3StrInt added in v0.0.2

func BenchmarkSpec_Marshal_Map3StrInt(b *testing.B, nb ipld.NodeBuilder)

func BenchmarkSpec_Marshal_MapNStrMap3StrInt added in v0.0.2

func BenchmarkSpec_Marshal_MapNStrMap3StrInt(b *testing.B, nb ipld.NodeBuilder)

func BenchmarkSpec_Unmarshal_Map3StrInt added in v0.0.2

func BenchmarkSpec_Unmarshal_Map3StrInt(b *testing.B, nb ipld.NodeBuilder)

func BenchmarkSpec_Unmarshal_MapNStrMap3StrInt added in v0.0.2

func BenchmarkSpec_Unmarshal_MapNStrMap3StrInt(b *testing.B, nb ipld.NodeBuilder)

func BenchmarkSpec_Walk_Map3StrInt added in v0.0.2

func BenchmarkSpec_Walk_Map3StrInt(b *testing.B, nb ipld.NodeBuilder)

func BenchmarkSpec_Walk_MapNStrMap3StrInt added in v0.0.2

func BenchmarkSpec_Walk_MapNStrMap3StrInt(b *testing.B, nb ipld.NodeBuilder)

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)

Directories

Path Synopsis
The corpus package exports some values useful for building tests and benchmarks.
The corpus package exports some values useful for building tests and benchmarks.

Jump to

Keyboard shortcuts

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