test

package
v0.0.0-...-0d2cee3 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTestData

func GenerateTestData(out io.Writer) error

GenerateTestData will output a cbor encoded test data to the provided io.Writer

Types

type LcborTestData

type LcborTestData struct {
	IsBool     bool                `cbor:"b1"`
	IsString   string              `cbor:"nam"`
	IsInt32Sm  int32               `cbor:"v1"`
	IsFloat32  float32             `cbor:"f1"`
	IsInt32Lg  int32               `cbor:"v2"`
	IsFloat64  float64             `cbor:"f2"`
	IsInt64    int64               `cbor:"v3"`
	IsIntArray []int               `cbor:"a1"`
	IsObject   LcborTestDataObject `cbor:"o1"`
}

type LcborTestDataObject

type LcborTestDataObject struct {
	AString string `cbor:"aString"`
	AInt    int    `cbor:"aInt"`
}

Jump to

Keyboard shortcuts

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