Versions in this module Expand all Collapse all v0 v0.0.2 Dec 5, 2017 v0.0.1 Jul 17, 2017 Changes in this version + var Samples = concatSamples(SamplesPrimitives, SamplesArr, SamplesObj, SamplesCombinations) + var SamplesArr = []Recording + var SamplesCombinations = []Recording + var SamplesObj = []Recording + var SamplesPrimitives = []Recording + func TestEncodeParseConsistent(t *testing.T, samples []Recording, ...) + type ArrayFinishRec struct + func (r ArrayFinishRec) Replay(vs structform.ExtVisitor) error + type ArrayStartRec struct + Len int + T structform.BaseType + func (r ArrayStartRec) Replay(vs structform.ExtVisitor) error + type BoolRec struct + Value bool + func (r BoolRec) Replay(vs structform.ExtVisitor) error + type ByteRec struct + Value byte + func (r ByteRec) Replay(vs structform.ExtVisitor) error + type Float32Rec struct + Value float32 + func (r Float32Rec) Replay(vs structform.ExtVisitor) error + type Float64Rec struct + Value float64 + func (r Float64Rec) Replay(vs structform.ExtVisitor) error + type Int16Rec struct + Value int16 + func (r Int16Rec) Replay(vs structform.ExtVisitor) error + type Int32Rec struct + Value int32 + func (r Int32Rec) Replay(vs structform.ExtVisitor) error + type Int64Rec struct + Value int64 + func (r Int64Rec) Replay(vs structform.ExtVisitor) error + type Int8ArrRec struct + Value []int8 + func (r Int8ArrRec) Replay(vs structform.ExtVisitor) error + type Int8Rec struct + Value int8 + func (r Int8Rec) Replay(vs structform.ExtVisitor) error + type IntRec struct + Value int + func (r IntRec) Replay(vs structform.ExtVisitor) error + type NilRec struct + func (NilRec) Replay(vs structform.ExtVisitor) error + type ObjectFinishRec struct + func (r ObjectFinishRec) Replay(vs structform.ExtVisitor) error + type ObjectKeyRec struct + Value string + func (r ObjectKeyRec) Replay(vs structform.ExtVisitor) error + type ObjectStartRec struct + Len int + T structform.BaseType + func (r ObjectStartRec) Replay(vs structform.ExtVisitor) error + type Record interface + Replay func(v structform.ExtVisitor) error + func Arr(l int, t structform.BaseType, elems ...interface{}) []Record + func Obj(l int, t structform.BaseType, kv ...interface{}) []Record + type Recording []Record + func (r *Recording) OnArrayFinished() error + func (r *Recording) OnArrayStart(len int, baseType structform.BaseType) error + func (r *Recording) OnBool(b bool) error + func (r *Recording) OnByte(i byte) error + func (r *Recording) OnFloat32(i float32) error + func (r *Recording) OnFloat64(i float64) error + func (r *Recording) OnInt(i int) error + func (r *Recording) OnInt16(i int16) error + func (r *Recording) OnInt32(i int32) error + func (r *Recording) OnInt64(i int64) error + func (r *Recording) OnInt8(i int8) error + func (r *Recording) OnKey(s string) error + func (r *Recording) OnNil() error + func (r *Recording) OnObjectFinished() error + func (r *Recording) OnObjectStart(len int, baseType structform.BaseType) error + func (r *Recording) OnString(s string) error + func (r *Recording) OnUint(i uint) error + func (r *Recording) OnUint16(i uint16) error + func (r *Recording) OnUint32(i uint32) error + func (r *Recording) OnUint64(i uint64) error + func (r *Recording) OnUint8(i uint8) error + func (r Recording) Assert(t *testing.T, expected Recording) + func (r Recording) ToJSON() (string, error) + func (rec *Recording) Replay(vs structform.Visitor) error + type StringArrRec struct + Value []string + func (r StringArrRec) Replay(vs structform.ExtVisitor) error + type StringObjRec struct + Value map[string]string + func (r StringObjRec) Replay(vs structform.ExtVisitor) error + type StringRec struct + Value string + func (r StringRec) Replay(vs structform.ExtVisitor) error + type Uint16Rec struct + Value uint16 + func (r Uint16Rec) Replay(vs structform.ExtVisitor) error + type Uint32Rec struct + Value uint32 + func (r Uint32Rec) Replay(vs structform.ExtVisitor) error + type Uint64Rec struct + Value uint64 + func (r Uint64Rec) Replay(vs structform.ExtVisitor) error + type Uint8Rec struct + Value uint8 + func (r Uint8Rec) Replay(vs structform.ExtVisitor) error + type UintObjRec struct + Value map[string]uint + func (r UintObjRec) Replay(vs structform.ExtVisitor) error + type UintRec struct + Value uint + func (r UintRec) Replay(vs structform.ExtVisitor) error