test

package
v0.0.0-...-886b66b Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adder

type Adder struct {
	Int int
}

type ArrayOfBuiltInTypes

type ArrayOfBuiltInTypes struct {
	Bool       [1]bool
	Byte       [2]byte
	Complex128 [3]complex128
	Complex64  [4]complex64
	Float64    [5]float64
	Float32    [6]float32
	Int        [7]int
	Int16      [8]int16
	Int32      [9]int32
	Int64      [10]int64
	Int8       [11]int8
	Rune       [12]rune
	String     [13]string
	Uint       [14]uint
	Uint16     [15]uint16
	Uint32     [16]uint32
	Uint64     [17]uint64
	Uint8      [18]uint8
	UintPtr    [19]uintptr

	AnotherBoolOfDifferentSize [10]bool
}

func (*ArrayOfBuiltInTypes) Compare

func (this *ArrayOfBuiltInTypes) Compare(that *ArrayOfBuiltInTypes) int

func (*ArrayOfBuiltInTypes) DeepCopy

func (this *ArrayOfBuiltInTypes) DeepCopy(that *ArrayOfBuiltInTypes)

func (*ArrayOfBuiltInTypes) Equal

func (this *ArrayOfBuiltInTypes) Equal(that *ArrayOfBuiltInTypes) bool

func (*ArrayOfBuiltInTypes) GoString

func (this *ArrayOfBuiltInTypes) GoString() string

func (*ArrayOfBuiltInTypes) Hash

func (this *ArrayOfBuiltInTypes) Hash() uint64

type ArrayOfPtrToBuiltInTypes

type ArrayOfPtrToBuiltInTypes struct {
	Bool       [1]*bool
	Byte       [2]*byte
	Complex128 [3]*complex128
	Complex64  [4]*complex64
	Float64    [5]*float64
	Float32    [6]*float32
	Int        [7]*int
	Int16      [8]*int16
	Int32      [9]*int32
	Int64      [10]*int64
	Int8       [11]*int8
	Rune       [12]*rune
	String     [13]*string
	Uint       [14]*uint
	Uint16     [15]*uint16
	Uint32     [16]*uint32
	Uint64     [17]*uint64
	Uint8      [18]*uint8
	UintPtr    [19]*uintptr

	AnotherBoolOfDifferentSize [10]*bool
}

func (*ArrayOfPtrToBuiltInTypes) Compare

func (*ArrayOfPtrToBuiltInTypes) DeepCopy

func (this *ArrayOfPtrToBuiltInTypes) DeepCopy(that *ArrayOfPtrToBuiltInTypes)

func (*ArrayOfPtrToBuiltInTypes) Equal

func (*ArrayOfPtrToBuiltInTypes) GoString

func (this *ArrayOfPtrToBuiltInTypes) GoString() string

func (*ArrayOfPtrToBuiltInTypes) Hash

func (this *ArrayOfPtrToBuiltInTypes) Hash() uint64

type BuiltInTypes

type BuiltInTypes struct {
	Bool       bool
	Byte       byte
	Complex128 complex128
	Complex64  complex64
	Float64    float64
	Float32    float32
	Int        int
	Int16      int16
	Int32      int32
	Int64      int64
	Int8       int8
	Rune       rune
	String     string
	Uint       uint
	Uint16     uint16
	Uint32     uint32
	Uint64     uint64
	Uint8      uint8
	UintPtr    uintptr
}

func (*BuiltInTypes) Clone

func (this *BuiltInTypes) Clone() *BuiltInTypes

func (*BuiltInTypes) Compare

func (this *BuiltInTypes) Compare(that *BuiltInTypes) int

func (*BuiltInTypes) DeepCopy

func (this *BuiltInTypes) DeepCopy(that *BuiltInTypes)

func (*BuiltInTypes) Equal

func (this *BuiltInTypes) Equal(that *BuiltInTypes) bool

func (*BuiltInTypes) GoString

func (this *BuiltInTypes) GoString() string

func (*BuiltInTypes) Hash

func (this *BuiltInTypes) Hash() uint64

type DeriveTheDerived

type DeriveTheDerived struct {
	Field int
}

type Duration

type Duration struct {
	D   time.Duration
	P   *time.Duration
	Ds  []time.Duration
	DPs []*time.Duration
	MD  map[int]time.Duration
}

func (*Duration) Compare

func (this *Duration) Compare(that *Duration) int

func (*Duration) DeepCopy

func (this *Duration) DeepCopy(that *Duration)

func (*Duration) Equal

func (this *Duration) Equal(that *Duration) bool

func (*Duration) GoString

func (this *Duration) GoString() string

func (*Duration) Hash

func (this *Duration) Hash() uint64

type EmbeddedStruct1

type EmbeddedStruct1 struct {
	Name
	*Structs
}

func (*EmbeddedStruct1) Compare

func (this *EmbeddedStruct1) Compare(that *EmbeddedStruct1) int

func (*EmbeddedStruct1) DeepCopy

func (this *EmbeddedStruct1) DeepCopy(that *EmbeddedStruct1)

func (*EmbeddedStruct1) Equal

func (this *EmbeddedStruct1) Equal(that *EmbeddedStruct1) bool

func (*EmbeddedStruct1) GoString

func (this *EmbeddedStruct1) GoString() string

func (*EmbeddedStruct1) Hash

func (this *EmbeddedStruct1) Hash() uint64

type EmbeddedStruct2

type EmbeddedStruct2 struct {
	Structs
	*Name
}

func (*EmbeddedStruct2) Compare

func (this *EmbeddedStruct2) Compare(that *EmbeddedStruct2) int

func (*EmbeddedStruct2) DeepCopy

func (this *EmbeddedStruct2) DeepCopy(that *EmbeddedStruct2)

func (*EmbeddedStruct2) Equal

func (this *EmbeddedStruct2) Equal(that *EmbeddedStruct2) bool

func (*EmbeddedStruct2) GoString

func (this *EmbeddedStruct2) GoString() string

func (*EmbeddedStruct2) Hash

func (this *EmbeddedStruct2) Hash() uint64

type Empty

type Empty struct{}

func (*Empty) Clone

func (this *Empty) Clone() *Empty

func (*Empty) Compare

func (this *Empty) Compare(that *Empty) int

func (*Empty) DeepCopy

func (this *Empty) DeepCopy(that *Empty)

func (*Empty) Equal

func (this *Empty) Equal(that *Empty) bool

func (*Empty) GoString

func (this *Empty) GoString() string

func (*Empty) Hash

func (this *Empty) Hash() uint64

type Enums

type Enums struct {
	Enum             MyEnum
	PtrToEnum        *MyEnum
	SliceToEnum      []MyEnum
	SliceToPtrToEnum []*MyEnum
	MapToEnum        map[int32]MyEnum
	EnumToMap        map[MyEnum]int32
	ArrayEnum        [2]MyEnum
}

func (*Enums) Compare

func (this *Enums) Compare(that *Enums) int

func (*Enums) DeepCopy

func (this *Enums) DeepCopy(that *Enums)

func (*Enums) Equal

func (this *Enums) Equal(that *Enums) bool

func (*Enums) GoString

func (this *Enums) GoString() string

func (*Enums) Hash

func (this *Enums) Hash() uint64

type FieldWithStructWithPrivateFields

type FieldWithStructWithPrivateFields struct {
	A *extra.PrivateFieldAndNoEqualMethod
}

func (*FieldWithStructWithPrivateFields) Compare

func (*FieldWithStructWithPrivateFields) DeepCopy

func (*FieldWithStructWithPrivateFields) Equal

type KeyValue

type KeyValue map[string]interface{}

func (KeyValue) Equal

func (kv KeyValue) Equal(that KeyValue) bool

type LocalType

type LocalType struct{}

type MapWithStructs

type MapWithStructs struct {
	NameToString             map[Name]string
	StringToName             map[string]Name
	StringToPtrToName        map[string]*Name
	StringToSliceOfName      map[string][]Name
	StringToSliceOfPtrToName map[string][]*Name
}

func (*MapWithStructs) Compare

func (this *MapWithStructs) Compare(that *MapWithStructs) int

func (*MapWithStructs) DeepCopy

func (this *MapWithStructs) DeepCopy(that *MapWithStructs)

func (*MapWithStructs) Equal

func (this *MapWithStructs) Equal(that *MapWithStructs) bool

func (*MapWithStructs) GoString

func (this *MapWithStructs) GoString() string

func (*MapWithStructs) Hash

func (this *MapWithStructs) Hash() uint64

type MapsOfBuiltInTypes

type MapsOfBuiltInTypes struct {
	BoolToString          map[bool]string
	StringToBool          map[string]bool
	Complex128ToComplex64 map[complex128]complex64
	Float64ToUint32       map[float64]uint32
	Uint16ToUint8         map[uint16]uint8
}

func (*MapsOfBuiltInTypes) Compare

func (this *MapsOfBuiltInTypes) Compare(that *MapsOfBuiltInTypes) int

func (*MapsOfBuiltInTypes) DeepCopy

func (this *MapsOfBuiltInTypes) DeepCopy(that *MapsOfBuiltInTypes)

func (*MapsOfBuiltInTypes) Equal

func (this *MapsOfBuiltInTypes) Equal(that *MapsOfBuiltInTypes) bool

func (*MapsOfBuiltInTypes) GoString

func (this *MapsOfBuiltInTypes) GoString() string

func (*MapsOfBuiltInTypes) Hash

func (this *MapsOfBuiltInTypes) Hash() uint64

type MapsOfSimplerBuiltInTypes

type MapsOfSimplerBuiltInTypes struct {
	StringToUint32 map[string]uint32
	Uint64ToInt64  map[uint8]int64
}

func (*MapsOfSimplerBuiltInTypes) Compare

func (*MapsOfSimplerBuiltInTypes) DeepCopy

func (*MapsOfSimplerBuiltInTypes) Equal

func (*MapsOfSimplerBuiltInTypes) GoString

func (this *MapsOfSimplerBuiltInTypes) GoString() string

func (*MapsOfSimplerBuiltInTypes) Hash

func (this *MapsOfSimplerBuiltInTypes) Hash() uint64

type MyEnum

type MyEnum int32

type MySlice

type MySlice []int64

type Name

type Name struct {
	Name string
}

func (*Name) Compare

func (this *Name) Compare(that *Name) int

func (*Name) DeepCopy

func (this *Name) DeepCopy(that *Name)

func (*Name) Equal

func (this *Name) Equal(that *Name) bool

func (*Name) GoString

func (this *Name) GoString() string

func (*Name) Hash

func (this *Name) Hash() uint64

type NamedTypes

type NamedTypes struct {
	Slice        MySlice
	PtrToSlice   *MySlice
	SliceToSlice []MySlice
}

func (*NamedTypes) Compare

func (this *NamedTypes) Compare(that *NamedTypes) int

func (*NamedTypes) DeepCopy

func (this *NamedTypes) DeepCopy(that *NamedTypes)

func (*NamedTypes) Equal

func (this *NamedTypes) Equal(that *NamedTypes) bool

func (*NamedTypes) GoString

func (this *NamedTypes) GoString() string

func (*NamedTypes) Hash

func (this *NamedTypes) Hash() uint64

type Nickname

type Nickname struct {
	Alias map[string][]*pickle.Rick
}

func (*Nickname) Compare

func (this *Nickname) Compare(that *Nickname) int

func (*Nickname) DeepCopy

func (this *Nickname) DeepCopy(that *Nickname)

func (*Nickname) Equal

func (this *Nickname) Equal(that *Nickname) bool

func (*Nickname) GoString

func (this *Nickname) GoString() string

func (*Nickname) Hash

func (this *Nickname) Hash() uint64

type PrivateBuiltInTypes

type PrivateBuiltInTypes struct {
	// contains filtered or unexported fields
}

func (*PrivateBuiltInTypes) Compare

func (this *PrivateBuiltInTypes) Compare(that *PrivateBuiltInTypes) int

func (*PrivateBuiltInTypes) DeepCopy

func (this *PrivateBuiltInTypes) DeepCopy(that *PrivateBuiltInTypes)

func (*PrivateBuiltInTypes) Equal

func (this *PrivateBuiltInTypes) Equal(that *PrivateBuiltInTypes) bool

func (*PrivateBuiltInTypes) Hash

func (this *PrivateBuiltInTypes) Hash() uint64

type PrivateEmbedded

type PrivateEmbedded struct {
	// contains filtered or unexported fields
}

func (*PrivateEmbedded) Compare

func (this *PrivateEmbedded) Compare(that *PrivateEmbedded) int

func (*PrivateEmbedded) DeepCopy

func (this *PrivateEmbedded) DeepCopy(that *PrivateEmbedded)

func (*PrivateEmbedded) Equal

func (this *PrivateEmbedded) Equal(that *PrivateEmbedded) bool

func (*PrivateEmbedded) Generate

func (this *PrivateEmbedded) Generate(rand *rand.Rand, size int) reflect.Value

func (*PrivateEmbedded) GoString

func (this *PrivateEmbedded) GoString() string

func (*PrivateEmbedded) Hash

func (this *PrivateEmbedded) Hash() uint64

type PtrTo

type PtrTo struct {
	Basic *int
	Slice *[]int
	Array *[4]int
	Map   *map[int]int
}

func (*PtrTo) Compare

func (this *PtrTo) Compare(that *PtrTo) int

func (*PtrTo) DeepCopy

func (this *PtrTo) DeepCopy(that *PtrTo)

func (*PtrTo) Equal

func (this *PtrTo) Equal(that *PtrTo) bool

func (*PtrTo) GoString

func (this *PtrTo) GoString() string

func (*PtrTo) Hash

func (this *PtrTo) Hash() uint64

type PtrToBuiltInTypes

type PtrToBuiltInTypes struct {
	Bool       *bool
	Byte       *byte
	Complex128 *complex128
	Complex64  *complex64
	Float64    *float64
	Float32    *float32
	Int        *int
	Int16      *int16
	Int32      *int32
	Int64      *int64
	Int8       *int8
	Rune       *rune
	String     *string
	Uint       *uint
	Uint16     *uint16
	Uint32     *uint32
	Uint64     *uint64
	Uint8      *uint8
	UintPtr    *uintptr
}

func (*PtrToBuiltInTypes) Clone

func (this *PtrToBuiltInTypes) Clone() *PtrToBuiltInTypes

func (*PtrToBuiltInTypes) Compare

func (this *PtrToBuiltInTypes) Compare(that *PtrToBuiltInTypes) int

func (*PtrToBuiltInTypes) DeepCopy

func (this *PtrToBuiltInTypes) DeepCopy(that *PtrToBuiltInTypes)

func (*PtrToBuiltInTypes) Equal

func (this *PtrToBuiltInTypes) Equal(that *PtrToBuiltInTypes) bool

func (*PtrToBuiltInTypes) GoString

func (this *PtrToBuiltInTypes) GoString() string

func (*PtrToBuiltInTypes) Hash

func (this *PtrToBuiltInTypes) Hash() uint64

type RecursiveType

type RecursiveType struct {
	Bytes []byte
	N     map[int]RecursiveType
}

func (*RecursiveType) Compare

func (this *RecursiveType) Compare(that *RecursiveType) int

func (*RecursiveType) DeepCopy

func (this *RecursiveType) DeepCopy(that *RecursiveType)

func (*RecursiveType) Equal

func (this *RecursiveType) Equal(that *RecursiveType) bool

func (*RecursiveType) GoString

func (this *RecursiveType) GoString() string

func (*RecursiveType) Hash

func (this *RecursiveType) Hash() uint64

type SliceOfBuiltInTypes

type SliceOfBuiltInTypes struct {
	Bool       []bool
	Byte       []byte
	Complex128 []complex128
	Complex64  []complex64
	Float64    []float64
	Float32    []float32
	Int        []int
	Int16      []int16
	Int32      []int32
	Int64      []int64
	Int8       []int8
	Rune       []rune
	String     []string
	Uint       []uint
	Uint16     []uint16
	Uint32     []uint32
	Uint64     []uint64
	Uint8      []uint8
	UintPtr    []uintptr
}

func (*SliceOfBuiltInTypes) Compare

func (this *SliceOfBuiltInTypes) Compare(that *SliceOfBuiltInTypes) int

func (*SliceOfBuiltInTypes) DeepCopy

func (this *SliceOfBuiltInTypes) DeepCopy(that *SliceOfBuiltInTypes)

func (*SliceOfBuiltInTypes) Equal

func (this *SliceOfBuiltInTypes) Equal(that *SliceOfBuiltInTypes) bool

func (*SliceOfBuiltInTypes) GoString

func (this *SliceOfBuiltInTypes) GoString() string

func (*SliceOfBuiltInTypes) Hash

func (this *SliceOfBuiltInTypes) Hash() uint64

type SliceOfPtrToBuiltInTypes

type SliceOfPtrToBuiltInTypes struct {
	Bool       []*bool
	Byte       []*byte
	Complex128 []*complex128
	Complex64  []*complex64
	Float64    []*float64
	Float32    []*float32
	Int        []*int
	Int16      []*int16
	Int32      []*int32
	Int64      []*int64
	Int8       []*int8
	Rune       []*rune
	String     []*string
	Uint       []*uint
	Uint16     []*uint16
	Uint32     []*uint32
	Uint64     []*uint64
	Uint8      []*uint8
	UintPtr    []*uintptr
}

func (*SliceOfPtrToBuiltInTypes) Compare

func (*SliceOfPtrToBuiltInTypes) DeepCopy

func (this *SliceOfPtrToBuiltInTypes) DeepCopy(that *SliceOfPtrToBuiltInTypes)

func (*SliceOfPtrToBuiltInTypes) Equal

func (*SliceOfPtrToBuiltInTypes) GoString

func (this *SliceOfPtrToBuiltInTypes) GoString() string

func (*SliceOfPtrToBuiltInTypes) Hash

func (this *SliceOfPtrToBuiltInTypes) Hash() uint64

type SliceToSlice

type SliceToSlice struct {
	Ints    [][]int
	Strings [][]string
	IntPtrs [][]*int
}

func (*SliceToSlice) Compare

func (this *SliceToSlice) Compare(that *SliceToSlice) int

func (*SliceToSlice) DeepCopy

func (this *SliceToSlice) DeepCopy(that *SliceToSlice)

func (*SliceToSlice) Equal

func (this *SliceToSlice) Equal(that *SliceToSlice) bool

func (*SliceToSlice) GoString

func (this *SliceToSlice) GoString() string

func (*SliceToSlice) Hash

func (this *SliceToSlice) Hash() uint64

type SomeJson

type SomeJson struct {
	Name  string
	Other KeyValue
}

type StructOfStructs

type StructOfStructs struct {
	S1, S2 Structs
}

func (*StructOfStructs) DeepCopy

func (this *StructOfStructs) DeepCopy(that *StructOfStructs)

type StructWithStructFieldWithoutEqualMethod

type StructWithStructFieldWithoutEqualMethod struct {
	A *StructWithoutEqualMethod
	B StructWithoutEqualMethod
}

func (*StructWithStructFieldWithoutEqualMethod) Compare

func (*StructWithStructFieldWithoutEqualMethod) DeepCopy

func (*StructWithStructFieldWithoutEqualMethod) Equal

func (*StructWithStructFieldWithoutEqualMethod) GoString

func (*StructWithStructFieldWithoutEqualMethod) Hash

type StructWithStructWithFromAnotherPackage

type StructWithStructWithFromAnotherPackage struct {
	A *extra.StructWithoutEqualMethod
	B extra.StructWithoutEqualMethod
}

func (*StructWithStructWithFromAnotherPackage) Compare

func (*StructWithStructWithFromAnotherPackage) DeepCopy

func (*StructWithStructWithFromAnotherPackage) Equal

func (*StructWithStructWithFromAnotherPackage) GoString

func (*StructWithStructWithFromAnotherPackage) Hash

type StructWithoutEqualMethod

type StructWithoutEqualMethod struct {
	Num int64
}

type Structs

type Structs struct {
	Struct             Name
	PtrToStruct        *Name
	SliceOfStructs     []Name
	SliceToPtrOfStruct []*Name
}

func (*Structs) Compare

func (this *Structs) Compare(that *Structs) int

func (*Structs) DeepCopy

func (this *Structs) DeepCopy(that *Structs)

func (*Structs) Equal

func (this *Structs) Equal(that *Structs) bool

func (*Structs) GoString

func (this *Structs) GoString() string

func (*Structs) Hash

func (this *Structs) Hash() uint64

type Time

type Time struct {
	T time.Time
	P *time.Time
}

func (*Time) Equal

func (this *Time) Equal(that *Time) bool

func (*Time) Generate

func (this *Time) Generate(rand *rand.Rand, size int) reflect.Value

type UnnamedStruct

type UnnamedStruct struct {
	Unnamed struct {
		String string
	}
}

func (*UnnamedStruct) DeepCopy

func (this *UnnamedStruct) DeepCopy(that *UnnamedStruct)

func (*UnnamedStruct) Equal

func (this *UnnamedStruct) Equal(that *UnnamedStruct) bool

type UseVendor

type UseVendor struct {
	Vendors []*vendortest.AVendoredObject
}

type Visitor

type Visitor struct {
	UserName   *string
	RemoteAddr string
}

Jump to

Keyboard shortcuts

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