tests

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefTypes = []interface{}{
	(*IntDef)(nil),
	(*IntAr)(nil),
	(*IntSl)(nil),
	(*ByteAr)(nil),
	(*ByteSl)(nil),
	(*PrimitivesStructSl)(nil),
	(*PrimitivesStructDef)(nil),
}

Functions

This section is empty.

Types

type ArraysStruct

type ArraysStruct struct {
	Int8Ar    [4]int8
	Int16Ar   [4]int16
	Int32Ar   [4]int32
	Int64Ar   [4]int64
	VarintAr  [4]int64 `binary:"varint"`
	IntAr     [4]int
	ByteAr    [4]byte
	Uint8Ar   [4]uint8
	Uint16Ar  [4]uint16
	Uint32Ar  [4]uint32
	Uint64Ar  [4]uint64
	UvarintAr [4]uint64 `binary:"varint"`
	UintAr    [4]uint
	StringAr  [4]string
	BytesAr   [4][]byte
	TimeAr    [4]time.Time
	EmptyAr   [4]EmptyStruct
}

type ByteAr

type ByteAr [4]byte

type ByteSl

type ByteSl []byte

type ComplexSt

type ComplexSt struct {
	PrField PrimitivesStruct
	ArField ArraysStruct
	SlField SlicesStruct
	PtField PointersStruct
}

type Concrete1

type Concrete1 struct{}

func (Concrete1) AssertInterface1

func (_ Concrete1) AssertInterface1()

func (Concrete1) AssertInterface2

func (_ Concrete1) AssertInterface2()

type Concrete2

type Concrete2 struct{}

func (Concrete2) AssertInterface1

func (_ Concrete2) AssertInterface1()

func (Concrete2) AssertInterface2

func (_ Concrete2) AssertInterface2()

type Concrete3

type Concrete3 [4]byte

func (Concrete3) AssertInterface1

func (_ Concrete3) AssertInterface1()

type EmbeddedSt1

type EmbeddedSt1 struct {
	PrimitivesStruct
}

type EmbeddedSt4

type EmbeddedSt4 struct {
	Foo1 int
	PrimitivesStruct
	Foo2              string
	ArraysStructField ArraysStruct
	Foo3              []byte
	SlicesStruct
	Foo4                bool
	PointersStructField PointersStruct
	Foo5                uint
}

type EmbeddedSt5

type EmbeddedSt5 struct {
	Foo1 int
	*PrimitivesStruct
	Foo2              string
	ArraysStructField *ArraysStruct
	Foo3              []byte
	*SlicesStruct
	Foo4                bool
	PointersStructField *PointersStruct
	Foo5                uint
}

type EmptyStruct added in v0.12.0

type EmptyStruct struct {
}

type IntAr

type IntAr [4]int

type IntDef

type IntDef int

type IntSl

type IntSl []int

type Interface1

type Interface1 interface {
	AssertInterface1()
}

type Interface2

type Interface2 interface {
	AssertInterface2()
}

type InterfaceFieldsStruct

type InterfaceFieldsStruct struct {
	F1 Interface1
	F2 Interface1
}

func (*InterfaceFieldsStruct) AssertInterface1

func (_ *InterfaceFieldsStruct) AssertInterface1()

type NestedPointersStruct

type NestedPointersStruct struct {
	Ptr1 *byte
	Ptr2 **byte
	Ptr3 ***byte
}

NOTE: See registered fuzz funcs for *byte, **byte, and ***byte.

type PointerSlicesStruct

type PointerSlicesStruct struct {
	Int8PtSl    []*int8
	Int16PtSl   []*int16
	Int32PtSl   []*int32
	Int64PtSl   []*int64
	VarintPtSl  []*int64 `binary:"varint"`
	IntPtSl     []*int
	BytePtSl    []*byte
	Uint8PtSl   []*uint8
	Uint16PtSl  []*uint16
	Uint32PtSl  []*uint32
	Uint64PtSl  []*uint64
	UvarintPtSl []*uint64 `binary:"varint"`
	UintPtSl    []*uint
	StringPtSl  []*string
	BytesPtSl   []*[]byte
	TimePtSl    []*time.Time
	EmptyPtSl   []*EmptyStruct
}

type PointersStruct

type PointersStruct struct {
	Int8Pt    *int8
	Int16Pt   *int16
	Int32Pt   *int32
	Int64Pt   *int64
	VarintPt  *int64 `binary:"varint"`
	IntPt     *int
	BytePt    *byte
	Uint8Pt   *uint8
	Uint16Pt  *uint16
	Uint32Pt  *uint32
	Uint64Pt  *uint64
	UvarintPt *uint64 `binary:"varint"`
	UintPt    *uint
	StringPt  *string
	BytesPt   *[]byte
	TimePt    *time.Time
	EmptyPt   *EmptyStruct
}

type PrimitivesStruct

type PrimitivesStruct struct {
	Int8    int8
	Int16   int16
	Int32   int32
	Int64   int64
	Varint  int64 `binary:"varint"`
	Int     int
	Byte    byte
	Uint8   uint8
	Uint16  uint16
	Uint32  uint32
	Uint64  uint64
	Uvarint uint64 `binary:"varint"`
	Uint    uint
	String  string
	Bytes   []byte
	Time    time.Time
	Empty   EmptyStruct
}

type PrimitivesStructDef

type PrimitivesStructDef PrimitivesStruct

type PrimitivesStructSl

type PrimitivesStructSl []PrimitivesStruct

type ShortArraysStruct

type ShortArraysStruct struct {
	TimeAr [0]time.Time
}

type SliceSlicesStruct

type SliceSlicesStruct struct {
	Int8SlSl    [][]int8
	Int16SlSl   [][]int16
	Int32SlSl   [][]int32
	Int64SlSl   [][]int64
	VarintSlSl  [][]int64 `binary:"varint"`
	IntSlSl     [][]int
	ByteSlSl    [][]byte
	Uint8SlSl   [][]uint8
	Uint16SlSl  [][]uint16
	Uint32SlSl  [][]uint32
	Uint64SlSl  [][]uint64
	UvarintSlSl [][]uint64 `binary:"varint"`
	UintSlSl    [][]uint
	StringSlSl  [][]string
	BytesSlSl   [][][]byte
	TimeSlSl    [][]time.Time
	EmptySlSl   [][]EmptyStruct
}

type SlicesStruct

type SlicesStruct struct {
	Int8Sl    []int8
	Int16Sl   []int16
	Int32Sl   []int32
	Int64Sl   []int64
	VarintSl  []int64 `binary:"varint"`
	IntSl     []int
	ByteSl    []byte
	Uint8Sl   []uint8
	Uint16Sl  []uint16
	Uint32Sl  []uint32
	Uint64Sl  []uint64
	UvarintSl []uint64 `binary:"varint"`
	UintSl    []uint
	StringSl  []string
	BytesSl   [][]byte
	TimeSl    []time.Time
	EmptySl   []EmptyStruct
}

Directories

Path Synopsis
fuzz
proto3

Jump to

Keyboard shortcuts

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