package teststructs
import "github.com/google/go-cmp/cmp/internal/teststructs"
Index ¶
- type AssignA
- type AssignB
- type AssignC
- type AssignD
- type Cartel
- func (p Cartel) Boss() string
- func (p Cartel) CreationDate() time.Time
- func (p Cartel) LastCrimeDate() time.Time
- func (p Cartel) Poisons() []*Poison
- func (p *Cartel) SetBoss(x string)
- func (p *Cartel) SetCreationDate(x time.Time)
- func (p *Cartel) SetLastCrimeDate(x time.Time)
- func (p *Cartel) SetPoisons(x []*Poison)
- func (p *Cartel) SetSource(x string)
- func (p Cartel) Source() string
- type Dirt
- func (d *Dirt) SetLastTime(t int64)
- func (d *Dirt) SetSadistic(m map[string]*pb.Sadistic)
- func (d *Dirt) SetTable(t Table)
- func (d *Dirt) SetTimestamp(t Timestamp)
- func (d *Dirt) SetWizard(m map[string]*pb.Wizard)
- type DiscordState
- type Dish
- type Donkey
- type DonkeyImmutable
- type Dreamer
- type DreamerImmutable
- type Eagle
- type EagleImmutable
- type FakeMutex
- type GermBatch
- type Goat
- type GoatImmutable
- type Headquarter
- func (hq Headquarter) Convulsion() bool
- func (hq Headquarter) CreationTime() time.Time
- func (hq Headquarter) Expansion() uint64
- func (hq Headquarter) HorseBack() string
- func (hq Headquarter) ID() uint64
- func (hq Headquarter) IncorporatedDate() time.Time
- func (hq Headquarter) Location() string
- func (hq Headquarter) MetaData() *pb.MetaData
- func (hq Headquarter) PrivateMessage() []byte
- func (hq Headquarter) PublicMessage() []byte
- func (hq Headquarter) Rattle() string
- func (hq Headquarter) Restrictions() pb.Restrictions
- func (hq *Headquarter) SetConvulsion(x bool)
- func (hq *Headquarter) SetCreationTime(x time.Time)
- func (hq *Headquarter) SetExpansion(x uint64)
- func (hq *Headquarter) SetHorseBack(x string)
- func (hq *Headquarter) SetID(x uint64)
- func (hq *Headquarter) SetIncorporatedDate(x time.Time)
- func (hq *Headquarter) SetLocation(x string)
- func (hq *Headquarter) SetMetaData(x *pb.MetaData)
- func (hq *Headquarter) SetPrivateMessage(x []byte)
- func (hq *Headquarter) SetPublicMessage(x []byte)
- func (hq *Headquarter) SetRattle(x string)
- func (hq *Headquarter) SetRestrictions(x pb.Restrictions)
- func (hq *Headquarter) SetStatus(x pb.HoneyStatus)
- func (hq *Headquarter) SetSubDivisions(x []string)
- func (hq Headquarter) Status() pb.HoneyStatus
- func (hq Headquarter) SubDivisions() []string
- type InterfaceA
- type LoveRadius
- type MockTable
- func CreateMockTable(s []string) *MockTable
- func (mt *MockTable) Operation1() error
- func (mt *MockTable) Operation2() error
- func (mt *MockTable) Operation3() error
- func (mt *MockTable) State() []string
- type ParentStructA
- type ParentStructB
- type ParentStructC
- type ParentStructD
- type ParentStructE
- type ParentStructF
- type ParentStructG
- func NewParentStructG() *ParentStructG
- func (s *ParentStructG) PrivateStruct() *privateStruct
- func (s ParentStructG) SetPrivate(i int)
- type ParentStructH
- type ParentStructI
- type ParentStructJ
- func NewParentStructJ() *ParentStructJ
- func (s *ParentStructJ) Private() *privateStruct
- func (s *ParentStructJ) PrivateStruct() *privateStruct
- type Poison
- func (p Poison) Expiration() time.Time
- func (p Poison) Manufacturer() string
- func (p Poison) PoisonType() pb.PoisonType
- func (p Poison) Potency() int
- func (p *Poison) SetExpiration(x time.Time)
- func (p *Poison) SetManufacturer(x string)
- func (p *Poison) SetPoisonType(x pb.PoisonType)
- func (p *Poison) SetPotency(x int)
- type PublicStruct
- type Slap
- type SlapImmutable
- type StructA
- type StructA1
- type StructA2
- type StructB
- type StructB1
- type StructB2
- type StructC
- type StructC1
- type StructC2
- type StructD
- type StructD1
- type StructD2
- type StructE
- type StructE1
- type StructE2
- type StructF
- type StructF1
- type StructF2
- type StructNo
- type SummerLove
- type SummerLoveSummary
- type Table
- type Timestamp
Types ¶
type AssignA ¶
type AssignA func() int
func (AssignA) Equal ¶
type AssignB ¶
type AssignB struct{ A int }
func (AssignB) Equal ¶
type AssignC ¶
type AssignC chan bool
func (AssignC) Equal ¶
type AssignD ¶
type AssignD <-chan bool
func (AssignD) Equal ¶
type Cartel ¶
type Cartel struct { Headquarter // contains filtered or unexported fields }
func (Cartel) Boss ¶
func (Cartel) CreationDate ¶
func (Cartel) LastCrimeDate ¶
func (Cartel) Poisons ¶
func (*Cartel) SetBoss ¶
func (*Cartel) SetCreationDate ¶
func (*Cartel) SetLastCrimeDate ¶
func (*Cartel) SetPoisons ¶
func (*Cartel) SetSource ¶
func (Cartel) Source ¶
type Dirt ¶
type Dirt struct { Discord DiscordState Proto pb.Dirt // contains filtered or unexported fields }
func (*Dirt) SetLastTime ¶
func (*Dirt) SetSadistic ¶
func (*Dirt) SetTable ¶
func (*Dirt) SetTimestamp ¶
func (*Dirt) SetWizard ¶
type DiscordState ¶
type DiscordState int
type Dish ¶
type Dish struct {
// contains filtered or unexported fields
}
func CreateDish ¶
func (*Dish) Proto ¶
type Donkey ¶
type Donkey struct { Pause bool Sleep int32 FunnyPrank string Immutable *DonkeyImmutable }
type DonkeyImmutable ¶
type DonkeyImmutable struct { ID string State *pb.Donkey_States Started time.Time Stopped time.Time LastUpdate time.Time // contains filtered or unexported fields }
func (DonkeyImmutable) Proto ¶
func (DonkeyImmutable) Proto() *pb.Donkey
type Dreamer ¶
type Dreamer struct { Name string Desc string DescLong string PreSlaps []Slap ContSlaps []Slap ContSlapsInterval int32 Animal []interface{} // Could be either Goat or Donkey Ornamental bool Amoeba int64 Heroes int32 FloppyDisk int32 MightiestDuck bool FunnyPrank string Immutable *DreamerImmutable }
type DreamerImmutable ¶
type DreamerImmutable struct { ID string State *pb.Dreamer_States MissingCall *pb.Dreamer_MissingCalls Calls int32 Started time.Time Stopped time.Time LastUpdate time.Time // contains filtered or unexported fields }
func (DreamerImmutable) Proto ¶
func (DreamerImmutable) Proto() *pb.Dreamer
type Eagle ¶
type Eagle struct { Name string Hounds []string Desc string DescLong string Dreamers []Dreamer Prong int64 Slaps []Slap StateGoverner string PrankRating string FunnyPrank string Immutable *EagleImmutable }
type EagleImmutable ¶
type EagleImmutable struct { ID string State *pb.Eagle_States MissingCall *pb.Eagle_MissingCalls Birthday time.Time Death time.Time Started time.Time LastUpdate time.Time Creator string // contains filtered or unexported fields }
func (EagleImmutable) Proto ¶
func (EagleImmutable) Proto() *pb.Eagle
type FakeMutex ¶
type GermBatch ¶
type GermBatch struct { DirtyGerms, CleanGerms map[int32][]*pb.Germ GermMap map[int32]*pb.Germ DishMap map[int32]*Dish HasPreviousResult bool DirtyID, CleanID int32 GermStrain int32 TotalDirtyGerms int InfectedAt time.Time }
type Goat ¶
type Goat struct { Target string Slaps []Slap FunnyPrank string Immutable *GoatImmutable }
type GoatImmutable ¶
type GoatImmutable struct { ID string State *pb.Goat_States Started time.Time Stopped time.Time LastUpdate time.Time // contains filtered or unexported fields }
func (GoatImmutable) Proto ¶
func (GoatImmutable) Proto() *pb.Goat
type Headquarter ¶
type Headquarter struct {
// contains filtered or unexported fields
}
func (Headquarter) Convulsion ¶
func (hq Headquarter) Convulsion() bool
func (Headquarter) CreationTime ¶
func (hq Headquarter) CreationTime() time.Time
func (Headquarter) Expansion ¶
func (hq Headquarter) Expansion() uint64
func (Headquarter) HorseBack ¶
func (hq Headquarter) HorseBack() string
func (Headquarter) ID ¶
func (hq Headquarter) ID() uint64
func (Headquarter) IncorporatedDate ¶
func (hq Headquarter) IncorporatedDate() time.Time
func (Headquarter) Location ¶
func (hq Headquarter) Location() string
func (Headquarter) MetaData ¶
func (hq Headquarter) MetaData() *pb.MetaData
func (Headquarter) PrivateMessage ¶
func (hq Headquarter) PrivateMessage() []byte
func (Headquarter) PublicMessage ¶
func (hq Headquarter) PublicMessage() []byte
func (Headquarter) Rattle ¶
func (hq Headquarter) Rattle() string
func (Headquarter) Restrictions ¶
func (hq Headquarter) Restrictions() pb.Restrictions
func (*Headquarter) SetConvulsion ¶
func (hq *Headquarter) SetConvulsion(x bool)
func (*Headquarter) SetCreationTime ¶
func (hq *Headquarter) SetCreationTime(x time.Time)
func (*Headquarter) SetExpansion ¶
func (hq *Headquarter) SetExpansion(x uint64)
func (*Headquarter) SetHorseBack ¶
func (hq *Headquarter) SetHorseBack(x string)
func (*Headquarter) SetID ¶
func (hq *Headquarter) SetID(x uint64)
func (*Headquarter) SetIncorporatedDate ¶
func (hq *Headquarter) SetIncorporatedDate(x time.Time)
func (*Headquarter) SetLocation ¶
func (hq *Headquarter) SetLocation(x string)
func (*Headquarter) SetMetaData ¶
func (hq *Headquarter) SetMetaData(x *pb.MetaData)
func (*Headquarter) SetPrivateMessage ¶
func (hq *Headquarter) SetPrivateMessage(x []byte)
func (*Headquarter) SetPublicMessage ¶
func (hq *Headquarter) SetPublicMessage(x []byte)
func (*Headquarter) SetRattle ¶
func (hq *Headquarter) SetRattle(x string)
func (*Headquarter) SetRestrictions ¶
func (hq *Headquarter) SetRestrictions(x pb.Restrictions)
func (*Headquarter) SetStatus ¶
func (hq *Headquarter) SetStatus(x pb.HoneyStatus)
func (*Headquarter) SetSubDivisions ¶
func (hq *Headquarter) SetSubDivisions(x []string)
func (Headquarter) Status ¶
func (hq Headquarter) Status() pb.HoneyStatus
func (Headquarter) SubDivisions ¶
func (hq Headquarter) SubDivisions() []string
type InterfaceA ¶
type InterfaceA interface {
InterfaceA()
}
type LoveRadius ¶
type LoveRadius struct { Summer *SummerLove // contains filtered or unexported fields }
type MockTable ¶
type MockTable struct {
// contains filtered or unexported fields
}
func CreateMockTable ¶
func (*MockTable) Operation1 ¶
func (*MockTable) Operation2 ¶
func (*MockTable) Operation3 ¶
func (*MockTable) State ¶
type ParentStructA ¶
type ParentStructA struct {
// contains filtered or unexported fields
}
func (*ParentStructA) PrivateStruct ¶
func (s *ParentStructA) PrivateStruct() *privateStruct
func (*ParentStructA) SetPrivate ¶
func (s *ParentStructA) SetPrivate(i int)
type ParentStructB ¶
type ParentStructB struct{ PublicStruct }
type ParentStructC ¶
type ParentStructC struct { Public int // contains filtered or unexported fields }
func (*ParentStructC) PrivateStruct ¶
func (s *ParentStructC) PrivateStruct() *privateStruct
func (*ParentStructC) SetPrivate ¶
func (s *ParentStructC) SetPrivate(i int)
type ParentStructD ¶
type ParentStructD struct { PublicStruct Public int // contains filtered or unexported fields }
func (*ParentStructD) SetPrivate ¶
func (s *ParentStructD) SetPrivate(i int)
type ParentStructE ¶
type ParentStructE struct { PublicStruct // contains filtered or unexported fields }
func (*ParentStructE) PrivateStruct ¶
func (s *ParentStructE) PrivateStruct() *privateStruct
type ParentStructF ¶
type ParentStructF struct { PublicStruct Public int // contains filtered or unexported fields }
func (*ParentStructF) PrivateStruct ¶
func (s *ParentStructF) PrivateStruct() *privateStruct
func (*ParentStructF) SetPrivate ¶
func (s *ParentStructF) SetPrivate(i int)
type ParentStructG ¶
type ParentStructG struct {
// contains filtered or unexported fields
}
func NewParentStructG ¶
func NewParentStructG() *ParentStructG
func (*ParentStructG) PrivateStruct ¶
func (s *ParentStructG) PrivateStruct() *privateStruct
func (ParentStructG) SetPrivate ¶
func (s ParentStructG) SetPrivate(i int)
type ParentStructH ¶
type ParentStructH struct { *PublicStruct }
func NewParentStructH ¶
func NewParentStructH() *ParentStructH
type ParentStructI ¶
type ParentStructI struct { *PublicStruct // contains filtered or unexported fields }
func NewParentStructI ¶
func NewParentStructI() *ParentStructI
func (*ParentStructI) PrivateStruct ¶
func (s *ParentStructI) PrivateStruct() *privateStruct
type ParentStructJ ¶
type ParentStructJ struct { *PublicStruct Public PublicStruct // contains filtered or unexported fields }
func NewParentStructJ ¶
func NewParentStructJ() *ParentStructJ
func (*ParentStructJ) Private ¶
func (s *ParentStructJ) Private() *privateStruct
func (*ParentStructJ) PrivateStruct ¶
func (s *ParentStructJ) PrivateStruct() *privateStruct
type Poison ¶
type Poison struct {
// contains filtered or unexported fields
}
func (Poison) Expiration ¶
func (Poison) Manufacturer ¶
func (Poison) PoisonType ¶
func (p Poison) PoisonType() pb.PoisonType
func (Poison) Potency ¶
func (*Poison) SetExpiration ¶
func (*Poison) SetManufacturer ¶
func (*Poison) SetPoisonType ¶
func (p *Poison) SetPoisonType(x pb.PoisonType)
func (*Poison) SetPotency ¶
type PublicStruct ¶
type PublicStruct struct { Public int // contains filtered or unexported fields }
func (*PublicStruct) SetPrivate ¶
func (s *PublicStruct) SetPrivate(i int)
type Slap ¶
type Slap struct { Name string Desc string DescLong string Args pb.Message Tense int32 Interval int32 Homeland uint32 FunnyPrank string Immutable *SlapImmutable }
type SlapImmutable ¶
type SlapImmutable struct { ID string Out pb.Message MildSlap bool PrettyPrint string State *pb.Slap_States Started time.Time Stopped time.Time LastUpdate time.Time LoveRadius *LoveRadius // contains filtered or unexported fields }
func (SlapImmutable) Proto ¶
func (SlapImmutable) Proto() *pb.Slap
type StructA ¶
type StructA struct{ X string } // Equal method on value receiver
func (StructA) Equal ¶
type StructA1 ¶
These embed the above types as a value.
type StructA2 ¶
These embed the above types as a pointer.
type StructB ¶
type StructB struct{ X string } // Equal method on pointer receiver
func (*StructB) Equal ¶
type StructB1 ¶
type StructB2 ¶
type StructC ¶
type StructC struct{ X string } // Equal method (with interface argument) on value receiver
func (StructC) Equal ¶
func (x StructC) Equal(y InterfaceA) bool
func (StructC) InterfaceA ¶
func (x StructC) InterfaceA()
type StructC1 ¶
type StructC2 ¶
type StructD ¶
type StructD struct{ X string } // Equal method (with interface argument) on pointer receiver
func (*StructD) Equal ¶
func (x *StructD) Equal(y InterfaceA) bool
func (*StructD) InterfaceA ¶
func (x *StructD) InterfaceA()
type StructD1 ¶
type StructD2 ¶
type StructE ¶
type StructE struct{ X string } // Equal method (with interface argument on value receiver) on pointer receiver
func (*StructE) Equal ¶
func (x *StructE) Equal(y InterfaceA) bool
func (StructE) InterfaceA ¶
func (x StructE) InterfaceA()
type StructE1 ¶
type StructE2 ¶
type StructF ¶
type StructF struct{ X string } // Equal method (with interface argument on pointer receiver) on value receiver
func (StructF) Equal ¶
func (x StructF) Equal(y InterfaceA) bool
func (*StructF) InterfaceA ¶
func (x *StructF) InterfaceA()
type StructF1 ¶
type StructF2 ¶
type StructNo ¶
type StructNo struct{ X string } // Equal method (with interface argument) on non-satisfying receiver
func (StructNo) Equal ¶
func (x StructNo) Equal(y InterfaceA) bool
type SummerLove ¶
type SummerLove struct { Summary *SummerLoveSummary // contains filtered or unexported fields }
type SummerLoveSummary ¶
type SummerLoveSummary struct { Devices []string ChangeType []pb.SummerType // contains filtered or unexported fields }
type Table ¶
type Timestamp ¶
type Timestamp int64
Source Files ¶
project1.go project2.go project3.go project4.go structs.go
Directories ¶
Path | Synopsis |
---|---|
cmp/internal/teststructs/foo1 | Package foo is deliberately named differently than the parent directory. |
cmp/internal/teststructs/foo2 | Package foo is deliberately named differently than the parent directory. |
- Version
- v0.6.0 (latest)
- Published
- Aug 31, 2023
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 5 days ago –
Tools for package owners.