test

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Subtests = []func(t *testing.T, mer marsha.Marsha){
	SubTestBasic,
	SubTestEncoderDecoder,
}

Functions

func SubTestAll added in v0.0.2

func SubTestAll(t *testing.T, mer marsha.Marsha)

func SubTestBasic added in v0.0.2

func SubTestBasic(t *testing.T, mrsh marsha.Marsha)

func SubTestEncoderDecoder added in v0.0.2

func SubTestEncoderDecoder(t *testing.T, m marsha.Marsha)

Types

type TestStruct

type TestStruct struct {
	Data string
}

func (*TestStruct) InitNilEmbeddedStruct

func (t *TestStruct) InitNilEmbeddedStruct()

func (*TestStruct) MarshalCBOR

func (t *TestStruct) MarshalCBOR(w io.Writer) (n int, err error)

func (TestStruct) Ptr

func (s TestStruct) Ptr() marsha.StructPtr

func (*TestStruct) UnmarshalCBOR

func (t *TestStruct) UnmarshalCBOR(r io.Reader) (int, error)

func (*TestStruct) Val

func (s *TestStruct) Val() marsha.Struct

type TestStruct2

type TestStruct2 struct {
	Data2 int64
}

func (*TestStruct2) InitNilEmbeddedStruct

func (t *TestStruct2) InitNilEmbeddedStruct()

func (*TestStruct2) MarshalCBOR

func (t *TestStruct2) MarshalCBOR(w io.Writer) (n int, err error)

func (TestStruct2) Ptr

func (s TestStruct2) Ptr() marsha.StructPtr

func (*TestStruct2) UnmarshalCBOR

func (t *TestStruct2) UnmarshalCBOR(r io.Reader) (int, error)

func (*TestStruct2) Val

func (s *TestStruct2) Val() marsha.Struct

type TestStructs

type TestStructs []TestStruct

func (*TestStructs) Append

func (s *TestStructs) Append(m cborgen.StructPtr)

func (*TestStructs) NewStructPtr added in v0.0.2

func (*TestStructs) NewStructPtr() marsha.StructPtr

func (*TestStructs) Val

func (s *TestStructs) Val() []marsha.StructPtr

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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