Documentation ¶
Index ¶
- Variables
- func ReadWrite(ctx context.Context, tests []ReadWriteTests, factory Factory)
- func ReadWriteCount(ctx context.Context, values []uint32, raw []byte, factory Factory)
- func ReadWriteData(ctx context.Context, tests []ReadWriteTests, factory Factory)
- func ReadWriteErrors(ctx context.Context, tests []ReadWriteTests, factory Factory)
- func ReadWriteIOErrors(ctx context.Context, tests []ReadWriteTests, factory Factory)
- func ReadWriteSimple(ctx context.Context, values []Simple, raw []byte, factory Factory)
- func VerifyData(ctx context.Context, entry Entry, got *bytes.Buffer)
- type Anonymous
- type Array
- type ArrayInMap
- type ArrayOfArrays
- type BadType
- type Bytes
- type Complex
- type Contains
- type Contains_SortKeys
- type Containsː3_Contains
- type Containsː3_SliceContains
- type ContainsːContains
- type ContainsːSlice3_Contains
- type ContainsːSliceContains
- type Entry
- type Error
- type Factory
- type Leaf
- type Leaf_SortKeys
- type LeafːLeaf
- type Leafːuint32
- type LimitedWriter
- type MapInArray
- type MapInSlice
- type MapKey
- type MapKeyValue
- type MapOfMaps
- type MapValue
- type ReadWriteTests
- type Simple
- type Slice
- type SliceInMap
- type SliceOfSlices
- type TypeA
- type TypeB
- type TypeC
- type Uint32_SortKeys
- type Uint32ː3_Leaf
- type Uint32ːLeaf
- type Uint32ːLeafːLeaf
- type Uint32ːSliceLeaf
- type Uint32ːuint32
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ReadError = Error("ReadError") WriteError = Error("WriteError") SecondError = Error("SecondError") )
View Source
var ( ObjectA = &TypeA{Data: "ObjectA"} EntityA = []byte{ 0x04, 't', 'e', 's', 't', 0x05, 'T', 'y', 'p', 'e', 'A', 0x00, 0x01, 0xb0, } EntityAFull = []byte{ 0x04, 't', 'e', 's', 't', 0x05, 'T', 'y', 'p', 'e', 'A', 0x00, 0x00, 0x01, 0xb0, 0x06, 's', 't', 'r', 'i', 'n', 'g', 0x04, 'D', 'a', 't', 'a', 0x00, } ObjectB = &TypeB{Data: "ObjectB"} EntityB = []byte{ 0x04, 't', 'e', 's', 't', 0x05, 'T', 'y', 'p', 'e', 'B', 0x00, 0x01, 0xb0, } ObjectC = &TypeC{Data: Simple(3)} EntityC = []byte{ 0x04, 't', 'e', 's', 't', 0x05, 'T', 'y', 'p', 'e', 'C', 0x00, 0x01, 0x10, } BadObject = &BadType{Data: "BadObject"} )
Functions ¶
func ReadWriteCount ¶
func ReadWriteData ¶
func ReadWriteData(ctx context.Context, tests []ReadWriteTests, factory Factory)
func ReadWriteErrors ¶
func ReadWriteErrors(ctx context.Context, tests []ReadWriteTests, factory Factory)
func ReadWriteIOErrors ¶
func ReadWriteIOErrors(ctx context.Context, tests []ReadWriteTests, factory Factory)
func ReadWriteSimple ¶
Types ¶
type ArrayInMap ¶
type ArrayInMap struct {
M Uint32ː3_Leaf
}
type ArrayOfArrays ¶
type ArrayOfArrays struct {
Array [2][3]Leaf
}
type Complex ¶
type Complex struct { SliceMapArray []Containsː3_Contains SliceArrayMap [][3]ContainsːContains ArraySliceMap [3][]ContainsːContains ArrayMapSlice [3]ContainsːSliceContains MapArraySlice Containsː3_SliceContains MapSliceArray ContainsːSlice3_Contains }
type Contains_SortKeys ¶
type Contains_SortKeys []Contains
func (Contains_SortKeys) Len ¶
func (s Contains_SortKeys) Len() int
func (Contains_SortKeys) Less ¶
func (s Contains_SortKeys) Less(i, j int) bool
func (Contains_SortKeys) Swap ¶
func (s Contains_SortKeys) Swap(i, j int)
type Containsː3_Contains ¶
func (Containsː3_Contains) KeysSorted ¶
func (m Containsː3_Contains) KeysSorted() []Contains
type Containsː3_SliceContains ¶
func (Containsː3_SliceContains) KeysSorted ¶
func (m Containsː3_SliceContains) KeysSorted() []Contains
type ContainsːContains ¶
func (ContainsːContains) KeysSorted ¶
func (m ContainsːContains) KeysSorted() []Contains
type ContainsːSlice3_Contains ¶
func (ContainsːSlice3_Contains) KeysSorted ¶
func (m ContainsːSlice3_Contains) KeysSorted() []Contains
type ContainsːSliceContains ¶
func (ContainsːSliceContains) KeysSorted ¶
func (m ContainsːSliceContains) KeysSorted() []Contains
type Leaf_SortKeys ¶
type Leaf_SortKeys []Leaf
func (Leaf_SortKeys) Len ¶
func (s Leaf_SortKeys) Len() int
func (Leaf_SortKeys) Less ¶
func (s Leaf_SortKeys) Less(i, j int) bool
func (Leaf_SortKeys) Swap ¶
func (s Leaf_SortKeys) Swap(i, j int)
type LeafːLeaf ¶
func (LeafːLeaf) KeysSorted ¶
type Leafːuint32 ¶
func (Leafːuint32) KeysSorted ¶
func (m Leafːuint32) KeysSorted() []Leaf
type LimitedWriter ¶
type LimitedWriter struct{ Limit int }
type MapInArray ¶
type MapInArray struct {
Array [2]Uint32ːuint32
}
type MapInSlice ¶
type MapInSlice struct {
Slice []Uint32ːuint32
}
type MapKey ¶
type MapKey struct {
M Leafːuint32
}
type MapKeyValue ¶
type MapKeyValue struct {
M LeafːLeaf
}
type MapOfMaps ¶
type MapOfMaps struct {
M Uint32ːLeafːLeaf
}
type MapValue ¶
type MapValue struct {
M Uint32ːLeaf
}
type ReadWriteTests ¶
type SliceInMap ¶
type SliceInMap struct {
M Uint32ːSliceLeaf
}
type SliceOfSlices ¶
type SliceOfSlices struct {
Slice [][]Leaf
}
type Uint32_SortKeys ¶
type Uint32_SortKeys []uint32
func (Uint32_SortKeys) Len ¶
func (s Uint32_SortKeys) Len() int
func (Uint32_SortKeys) Less ¶
func (s Uint32_SortKeys) Less(i, j int) bool
func (Uint32_SortKeys) Swap ¶
func (s Uint32_SortKeys) Swap(i, j int)
type Uint32ː3_Leaf ¶
func (Uint32ː3_Leaf) KeysSorted ¶
func (m Uint32ː3_Leaf) KeysSorted() []uint32
type Uint32ːLeaf ¶
func (Uint32ːLeaf) KeysSorted ¶
func (m Uint32ːLeaf) KeysSorted() []uint32
type Uint32ːLeafːLeaf ¶
func (Uint32ːLeafːLeaf) KeysSorted ¶
func (m Uint32ːLeafːLeaf) KeysSorted() []uint32
type Uint32ːSliceLeaf ¶
func (Uint32ːSliceLeaf) KeysSorted ¶
func (m Uint32ːSliceLeaf) KeysSorted() []uint32
type Uint32ːuint32 ¶
func (Uint32ːuint32) KeysSorted ¶
func (m Uint32ːuint32) KeysSorted() []uint32
Click to show internal directories.
Click to hide internal directories.