...

Package teststructs

import "github.com/google/go-cmp/cmp/internal/teststructs"
Overview
Index
Subdirectories

Overview ▾

Index ▾

type AssignA
    func (x AssignA) Equal(y func() int) bool
type AssignB
    func (x AssignB) Equal(y struct{A int}) bool
type AssignC
    func (x AssignC) Equal(y chan bool) bool
type AssignD
    func (x AssignD) Equal(y <-chan bool) bool
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
    func CreateDish(m *pb.Dish, err error) *Dish
    func (d *Dish) Proto() (*pb.Dish, error)
type Donkey
type DonkeyImmutable
    func (DonkeyImmutable) Proto() *pb.Donkey
type Dreamer
type DreamerImmutable
    func (DreamerImmutable) Proto() *pb.Dreamer
type Eagle
type EagleImmutable
    func (EagleImmutable) Proto() *pb.Eagle
type FakeMutex
type GermBatch
type Goat
type GoatImmutable
    func (GoatImmutable) Proto() *pb.Goat
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
    func (s *ParentStructA) PrivateStruct() *privateStruct
    func (s *ParentStructA) SetPrivate(i int)
type ParentStructB
type ParentStructC
    func (s *ParentStructC) PrivateStruct() *privateStruct
    func (s *ParentStructC) SetPrivate(i int)
type ParentStructD
    func (s *ParentStructD) SetPrivate(i int)
type ParentStructE
    func (s *ParentStructE) PrivateStruct() *privateStruct
type ParentStructF
    func (s *ParentStructF) PrivateStruct() *privateStruct
    func (s *ParentStructF) SetPrivate(i int)
type ParentStructG
    func NewParentStructG() *ParentStructG
    func (s *ParentStructG) PrivateStruct() *privateStruct
    func (s ParentStructG) SetPrivate(i int)
type ParentStructH
    func NewParentStructH() *ParentStructH
type ParentStructI
    func NewParentStructI() *ParentStructI
    func (s *ParentStructI) PrivateStruct() *privateStruct
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
    func (s *PublicStruct) SetPrivate(i int)
type Slap
type SlapImmutable
    func (SlapImmutable) Proto() *pb.Slap
type StructA
    func (x StructA) Equal(y StructA) bool
type StructA1
type StructA2
type StructB
    func (x *StructB) Equal(y *StructB) bool
type StructB1
type StructB2
type StructC
    func (x StructC) Equal(y InterfaceA) bool
    func (x StructC) InterfaceA()
type StructC1
type StructC2
type StructD
    func (x *StructD) Equal(y InterfaceA) bool
    func (x *StructD) InterfaceA()
type StructD1
type StructD2
type StructE
    func (x *StructE) Equal(y InterfaceA) bool
    func (x StructE) InterfaceA()
type StructE1
type StructE2
type StructF
    func (x StructF) Equal(y InterfaceA) bool
    func (x *StructF) InterfaceA()
type StructF1
type StructF2
type StructNo
    func (x StructNo) Equal(y InterfaceA) bool
type SummerLove
type SummerLoveSummary
type Table
type Timestamp

Package files

project1.go project2.go project3.go project4.go structs.go

type AssignA

type AssignA func() int

func (AssignA) Equal

func (x AssignA) Equal(y func() int) bool

type AssignB

type AssignB struct{ A int }

func (AssignB) Equal

func (x AssignB) Equal(y struct{ A int }) bool

type AssignC

type AssignC chan bool

func (AssignC) Equal

func (x AssignC) Equal(y chan bool) bool

type AssignD

type AssignD <-chan bool

func (AssignD) Equal

func (x AssignD) Equal(y <-chan bool) bool

type Cartel

type Cartel struct {
    Headquarter
    // contains filtered or unexported fields
}

func (Cartel) Boss

func (p Cartel) Boss() string

func (Cartel) CreationDate

func (p Cartel) CreationDate() time.Time

func (Cartel) LastCrimeDate

func (p Cartel) LastCrimeDate() time.Time

func (Cartel) Poisons

func (p Cartel) Poisons() []*Poison

func (*Cartel) SetBoss

func (p *Cartel) SetBoss(x string)

func (*Cartel) SetCreationDate

func (p *Cartel) SetCreationDate(x time.Time)

func (*Cartel) SetLastCrimeDate

func (p *Cartel) SetLastCrimeDate(x time.Time)

func (*Cartel) SetPoisons

func (p *Cartel) SetPoisons(x []*Poison)

func (*Cartel) SetSource

func (p *Cartel) SetSource(x string)

func (Cartel) Source

func (p Cartel) Source() string

type Dirt

type Dirt struct {
    Discord DiscordState
    Proto   pb.Dirt
    // contains filtered or unexported fields
}

func (*Dirt) SetLastTime

func (d *Dirt) SetLastTime(t int64)

func (*Dirt) SetSadistic

func (d *Dirt) SetSadistic(m map[string]*pb.Sadistic)

func (*Dirt) SetTable

func (d *Dirt) SetTable(t Table)

func (*Dirt) SetTimestamp

func (d *Dirt) SetTimestamp(t Timestamp)

func (*Dirt) SetWizard

func (d *Dirt) SetWizard(m map[string]*pb.Wizard)

type DiscordState

type DiscordState int

type Dish

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

func CreateDish

func CreateDish(m *pb.Dish, err error) *Dish

func (*Dish) Proto

func (d *Dish) Proto() (*pb.Dish, error)

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 FakeMutex struct {
    sync.Locker
    // contains filtered or unexported fields
}

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 CreateMockTable(s []string) *MockTable

func (*MockTable) Operation1

func (mt *MockTable) Operation1() error

func (*MockTable) Operation2

func (mt *MockTable) Operation2() error

func (*MockTable) Operation3

func (mt *MockTable) Operation3() error

func (*MockTable) State

func (mt *MockTable) State() []string

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 (p Poison) Expiration() time.Time

func (Poison) Manufacturer

func (p Poison) Manufacturer() string

func (Poison) PoisonType

func (p Poison) PoisonType() pb.PoisonType

func (Poison) Potency

func (p Poison) Potency() int

func (*Poison) SetExpiration

func (p *Poison) SetExpiration(x time.Time)

func (*Poison) SetManufacturer

func (p *Poison) SetManufacturer(x string)

func (*Poison) SetPoisonType

func (p *Poison) SetPoisonType(x pb.PoisonType)

func (*Poison) SetPotency

func (p *Poison) SetPotency(x int)

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

func (x StructA) Equal(y StructA) bool

type StructA1

These embed the above types as a value.

type StructA1 struct {
    StructA
    X string
}

type StructA2

These embed the above types as a pointer.

type StructA2 struct {
    *StructA
    X string
}

type StructB

type StructB struct{ X string } // Equal method on pointer receiver

func (*StructB) Equal

func (x *StructB) Equal(y *StructB) bool

type StructB1

type StructB1 struct {
    StructB
    X string
}

type StructB2

type StructB2 struct {
    *StructB
    X string
}

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 StructC1 struct {
    StructC
    X string
}

type StructC2

type StructC2 struct {
    *StructC
    X string
}

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 StructD1 struct {
    StructD
    X string
}

type StructD2

type StructD2 struct {
    *StructD
    X string
}

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 StructE1 struct {
    StructE
    X string
}

type StructE2

type StructE2 struct {
    *StructE
    X string
}

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 StructF1 struct {
    StructF
    X string
}

type StructF2

type StructF2 struct {
    *StructF
    X string
}

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 Table interface {
    Operation1() error
    Operation2() error
    Operation3() error
}

type Timestamp

type Timestamp int64

Subdirectories

Name Synopsis
..