wholepkg

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

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

This is a test package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManualSlice

type ManualSlice []string

Manual DeepCopy method

func (*ManualSlice) DeepEqual

func (in *ManualSlice) DeepEqual(other *ManualSlice) bool

type ManualStruct

type ManualStruct struct {
	StringField string
}

Manual DeepEqual method

func (*ManualStruct) DeepEqual

func (in *ManualStruct) DeepEqual(other *ManualStruct) bool

type ManualStructAlias

type ManualStructAlias ManualStruct

func (*ManualStructAlias) DeepEqual

func (in *ManualStructAlias) DeepEqual(other *ManualStructAlias) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructB

type StructB struct {
	OtherWithPrimitivesOnly otherpkg.OtherStructWithPrimitivesOnly
	OtherWithPointers       otherpkg.OtherStructWithPointers
}

Another type in another file.

func (*StructB) DeepEqual

func (in *StructB) DeepEqual(other *StructB) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructEmbedInt

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

func (*StructEmbedInt) DeepEqual

func (in *StructEmbedInt) DeepEqual(other *StructEmbedInt) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructEmbedManualStruct

type StructEmbedManualStruct struct {
	ManualStruct
}

func (*StructEmbedManualStruct) DeepEqual

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructEmbedPointer

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

func (*StructEmbedPointer) DeepEqual

func (in *StructEmbedPointer) DeepEqual(other *StructEmbedPointer) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructEmbedStructPrimitivePointers

type StructEmbedStructPrimitivePointers struct {
	StructPrimitivePointers
}

func (*StructEmbedStructPrimitivePointers) DeepEqual

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructEmbedStructPrimitives

type StructEmbedStructPrimitives struct {
	StructPrimitives
}

func (*StructEmbedStructPrimitives) DeepEqual

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructEmbedStructSlices

type StructEmbedStructSlices struct {
	StructSlices
}

func (*StructEmbedStructSlices) DeepEqual

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructEmpty

type StructEmpty struct{}

Trivial

func (*StructEmpty) DeepEqual

func (in *StructEmpty) DeepEqual(other *StructEmpty) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructEverything

type StructEverything struct {
	BoolField                 bool
	IntField                  int
	StringField               string
	FloatField                float64
	StructField               StructPrimitives
	EmptyStructField          StructEmpty
	ManualStructField         ManualStruct
	ManualStructAliasField    ManualStructAlias
	BoolPtrField              *bool
	IntPtrField               *int
	StringPtrField            *string
	FloatPtrField             *float64
	PrimitivePointersField    StructPrimitivePointers
	ManualStructPtrField      *ManualStruct
	ManualStructAliasPtrField *ManualStructAlias
	SliceBoolField            []bool
	SliceByteField            []byte
	SliceIntField             []int
	SliceStringField          []string
	SliceFloatField           []float64
	SlicesField               StructSlices
	SliceManualStructField    []ManualStruct
	ManualSliceField          ManualSlice
}

Everything

func (*StructEverything) DeepEqual

func (in *StructEverything) DeepEqual(other *StructEverything) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructExplicitObject

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

An Object

func (*StructExplicitObject) DeepEqual

func (in *StructExplicitObject) DeepEqual(other *StructExplicitObject) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructExplicitSelectorExplicitObject

type StructExplicitSelectorExplicitObject struct {
	StructTypeMeta
}

func (*StructExplicitSelectorExplicitObject) DeepEqual

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructNonPointerExplicitObject

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

An Object which is used a non-pointer

func (*StructNonPointerExplicitObject) DeepEqual

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructObjectAndList

type StructObjectAndList struct {
}

func (*StructObjectAndList) DeepEqual

func (in *StructObjectAndList) DeepEqual(other *StructObjectAndList) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructObjectAndObject

type StructObjectAndObject struct {
}

func (*StructObjectAndObject) DeepEqual

func (in *StructObjectAndObject) DeepEqual(other *StructObjectAndObject) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructPrimitivePointers

type StructPrimitivePointers struct {
	BoolPtrField   *bool
	IntPtrField    *int
	StringPtrField *string
	FloatPtrField  *float64
}

Only pointers to primitives

func (*StructPrimitivePointers) DeepEqual

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructPrimitivePointersAlias

type StructPrimitivePointersAlias StructPrimitivePointers

func (*StructPrimitivePointersAlias) DeepEqual

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructPrimitives

type StructPrimitives struct {
	BoolField   bool
	IntField    int
	StringField string
	FloatField  float64
}

Only primitives

func (*StructPrimitives) DeepEqual

func (in *StructPrimitives) DeepEqual(other *StructPrimitives) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructPrimitivesAlias

type StructPrimitivesAlias StructPrimitives

func (*StructPrimitivesAlias) DeepEqual

func (in *StructPrimitivesAlias) DeepEqual(other *StructPrimitivesAlias) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructSlices

type StructSlices struct {
	SliceBoolField                         []bool
	SliceByteField                         []byte
	SliceIntField                          []int
	SliceStringField                       []string
	SliceFloatField                        []float64
	SliceStructPrimitivesField             []StructPrimitives
	SliceStructPrimitivesAliasField        []StructPrimitivesAlias
	SliceStructPrimitivePointersField      []StructPrimitivePointers
	SliceStructPrimitivePointersAliasField []StructPrimitivePointersAlias
	SliceManualStructField                 []ManualStruct
	ManualSliceField                       ManualSlice
}

Slices

func (*StructSlices) DeepEqual

func (in *StructSlices) DeepEqual(other *StructSlices) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructSlicesAlias

type StructSlicesAlias StructSlices

func (*StructSlicesAlias) DeepEqual

func (in *StructSlicesAlias) DeepEqual(other *StructSlicesAlias) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructStructPrimitivePointers

type StructStructPrimitivePointers struct {
	StructField StructPrimitivePointers
}

func (*StructStructPrimitivePointers) DeepEqual

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructStructPrimitives

type StructStructPrimitives struct {
	StructField StructPrimitives
}

func (*StructStructPrimitives) DeepEqual

func (in *StructStructPrimitives) DeepEqual(other *StructStructPrimitives) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructStructSlices

type StructStructSlices struct {
	StructField StructSlices
}

func (*StructStructSlices) DeepEqual

func (in *StructStructSlices) DeepEqual(other *StructStructSlices) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

type StructTypeMeta

type StructTypeMeta struct {
}

+deepequal-gen=false

Jump to

Keyboard shortcuts

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