go-cmp: github.com/google/go-cmp/cmp/internal/teststructs Index | Files | Directories

package teststructs

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

Index

Package Files

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

type AssignA Uses

type AssignA func() int

func (AssignA) Equal Uses

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

type AssignB Uses

type AssignB struct{ A int }

func (AssignB) Equal Uses

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

type AssignC Uses

type AssignC chan bool

func (AssignC) Equal Uses

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

type AssignD Uses

type AssignD <-chan bool

func (AssignD) Equal Uses

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

type Cartel Uses

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

func (Cartel) Boss Uses

func (p Cartel) Boss() string

func (Cartel) CreationDate Uses

func (p Cartel) CreationDate() time.Time

func (Cartel) LastCrimeDate Uses

func (p Cartel) LastCrimeDate() time.Time

func (Cartel) Poisons Uses

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

func (*Cartel) SetBoss Uses

func (p *Cartel) SetBoss(x string)

func (*Cartel) SetCreationDate Uses

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

func (*Cartel) SetLastCrimeDate Uses

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

func (*Cartel) SetPoisons Uses

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

func (*Cartel) SetSource Uses

func (p *Cartel) SetSource(x string)

func (Cartel) Source Uses

func (p Cartel) Source() string

type Dirt Uses

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

func (*Dirt) SetLastTime Uses

func (d *Dirt) SetLastTime(t int64)

func (*Dirt) SetSadistic Uses

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

func (*Dirt) SetTable Uses

func (d *Dirt) SetTable(t Table)

func (*Dirt) SetTimestamp Uses

func (d *Dirt) SetTimestamp(t Timestamp)

func (*Dirt) SetWizard Uses

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

type DiscordState Uses

type DiscordState int

type Dish Uses

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

func CreateDish Uses

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

func (*Dish) Proto Uses

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

type Donkey Uses

type Donkey struct {
    Pause      bool
    Sleep      int32
    FunnyPrank string
    Immutable  *DonkeyImmutable
}

type DonkeyImmutable Uses

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 Uses

func (DonkeyImmutable) Proto() *pb.Donkey

type Dreamer Uses

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 Uses

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 Uses

func (DreamerImmutable) Proto() *pb.Dreamer

type Eagle Uses

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 Uses

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 Uses

func (EagleImmutable) Proto() *pb.Eagle

type FakeMutex Uses

type FakeMutex struct {
    sync.Locker
    // contains filtered or unexported fields
}

type GermBatch Uses

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 Uses

type Goat struct {
    Target     string
    Slaps      []Slap
    FunnyPrank string
    Immutable  *GoatImmutable
}

type GoatImmutable Uses

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 Uses

func (GoatImmutable) Proto() *pb.Goat

type Headquarter Uses

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

func (Headquarter) Convulsion Uses

func (hq Headquarter) Convulsion() bool

func (Headquarter) CreationTime Uses

func (hq Headquarter) CreationTime() time.Time

func (Headquarter) Expansion Uses

func (hq Headquarter) Expansion() uint64

func (Headquarter) HorseBack Uses

func (hq Headquarter) HorseBack() string

func (Headquarter) ID Uses

func (hq Headquarter) ID() uint64

func (Headquarter) IncorporatedDate Uses

func (hq Headquarter) IncorporatedDate() time.Time

func (Headquarter) Location Uses

func (hq Headquarter) Location() string

func (Headquarter) MetaData Uses

func (hq Headquarter) MetaData() *pb.MetaData

func (Headquarter) PrivateMessage Uses

func (hq Headquarter) PrivateMessage() []byte

func (Headquarter) PublicMessage Uses

func (hq Headquarter) PublicMessage() []byte

func (Headquarter) Rattle Uses

func (hq Headquarter) Rattle() string

func (Headquarter) Restrictions Uses

func (hq Headquarter) Restrictions() pb.Restrictions

func (*Headquarter) SetConvulsion Uses

func (hq *Headquarter) SetConvulsion(x bool)

func (*Headquarter) SetCreationTime Uses

func (hq *Headquarter) SetCreationTime(x time.Time)

func (*Headquarter) SetExpansion Uses

func (hq *Headquarter) SetExpansion(x uint64)

func (*Headquarter) SetHorseBack Uses

func (hq *Headquarter) SetHorseBack(x string)

func (*Headquarter) SetID Uses

func (hq *Headquarter) SetID(x uint64)

func (*Headquarter) SetIncorporatedDate Uses

func (hq *Headquarter) SetIncorporatedDate(x time.Time)

func (*Headquarter) SetLocation Uses

func (hq *Headquarter) SetLocation(x string)

func (*Headquarter) SetMetaData Uses

func (hq *Headquarter) SetMetaData(x *pb.MetaData)

func (*Headquarter) SetPrivateMessage Uses

func (hq *Headquarter) SetPrivateMessage(x []byte)

func (*Headquarter) SetPublicMessage Uses

func (hq *Headquarter) SetPublicMessage(x []byte)

func (*Headquarter) SetRattle Uses

func (hq *Headquarter) SetRattle(x string)

func (*Headquarter) SetRestrictions Uses

func (hq *Headquarter) SetRestrictions(x pb.Restrictions)

func (*Headquarter) SetStatus Uses

func (hq *Headquarter) SetStatus(x pb.HoneyStatus)

func (*Headquarter) SetSubDivisions Uses

func (hq *Headquarter) SetSubDivisions(x []string)

func (Headquarter) Status Uses

func (hq Headquarter) Status() pb.HoneyStatus

func (Headquarter) SubDivisions Uses

func (hq Headquarter) SubDivisions() []string

type InterfaceA Uses

type InterfaceA interface {
    InterfaceA()
}

type LoveRadius Uses

type LoveRadius struct {
    Summer *SummerLove
    // contains filtered or unexported fields
}

type MockTable Uses

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

func CreateMockTable Uses

func CreateMockTable(s []string) *MockTable

func (*MockTable) Operation1 Uses

func (mt *MockTable) Operation1() error

func (*MockTable) Operation2 Uses

func (mt *MockTable) Operation2() error

func (*MockTable) Operation3 Uses

func (mt *MockTable) Operation3() error

func (*MockTable) State Uses

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

type ParentStructA Uses

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

func (*ParentStructA) PrivateStruct Uses

func (s *ParentStructA) PrivateStruct() *privateStruct

func (*ParentStructA) SetPrivate Uses

func (s *ParentStructA) SetPrivate(i int)

type ParentStructB Uses

type ParentStructB struct{ PublicStruct }

type ParentStructC Uses

type ParentStructC struct {
    Public int
    // contains filtered or unexported fields
}

func (*ParentStructC) PrivateStruct Uses

func (s *ParentStructC) PrivateStruct() *privateStruct

func (*ParentStructC) SetPrivate Uses

func (s *ParentStructC) SetPrivate(i int)

type ParentStructD Uses

type ParentStructD struct {
    PublicStruct
    Public int
    // contains filtered or unexported fields
}

func (*ParentStructD) SetPrivate Uses

func (s *ParentStructD) SetPrivate(i int)

type ParentStructE Uses

type ParentStructE struct {
    PublicStruct
    // contains filtered or unexported fields
}

func (*ParentStructE) PrivateStruct Uses

func (s *ParentStructE) PrivateStruct() *privateStruct

type ParentStructF Uses

type ParentStructF struct {
    PublicStruct
    Public int
    // contains filtered or unexported fields
}

func (*ParentStructF) PrivateStruct Uses

func (s *ParentStructF) PrivateStruct() *privateStruct

func (*ParentStructF) SetPrivate Uses

func (s *ParentStructF) SetPrivate(i int)

type ParentStructG Uses

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

func NewParentStructG Uses

func NewParentStructG() *ParentStructG

func (*ParentStructG) PrivateStruct Uses

func (s *ParentStructG) PrivateStruct() *privateStruct

func (ParentStructG) SetPrivate Uses

func (s ParentStructG) SetPrivate(i int)

type ParentStructH Uses

type ParentStructH struct {
    *PublicStruct
}

func NewParentStructH Uses

func NewParentStructH() *ParentStructH

type ParentStructI Uses

type ParentStructI struct {
    *PublicStruct
    // contains filtered or unexported fields
}

func NewParentStructI Uses

func NewParentStructI() *ParentStructI

func (*ParentStructI) PrivateStruct Uses

func (s *ParentStructI) PrivateStruct() *privateStruct

type ParentStructJ Uses

type ParentStructJ struct {
    *PublicStruct
    Public PublicStruct
    // contains filtered or unexported fields
}

func NewParentStructJ Uses

func NewParentStructJ() *ParentStructJ

func (*ParentStructJ) Private Uses

func (s *ParentStructJ) Private() *privateStruct

func (*ParentStructJ) PrivateStruct Uses

func (s *ParentStructJ) PrivateStruct() *privateStruct

type Poison Uses

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

func (Poison) Expiration Uses

func (p Poison) Expiration() time.Time

func (Poison) Manufacturer Uses

func (p Poison) Manufacturer() string

func (Poison) PoisonType Uses

func (p Poison) PoisonType() pb.PoisonType

func (Poison) Potency Uses

func (p Poison) Potency() int

func (*Poison) SetExpiration Uses

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

func (*Poison) SetManufacturer Uses

func (p *Poison) SetManufacturer(x string)

func (*Poison) SetPoisonType Uses

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

func (*Poison) SetPotency Uses

func (p *Poison) SetPotency(x int)

type PublicStruct Uses

type PublicStruct struct {
    Public int
    // contains filtered or unexported fields
}

func (*PublicStruct) SetPrivate Uses

func (s *PublicStruct) SetPrivate(i int)

type Slap Uses

type Slap struct {
    Name       string
    Desc       string
    DescLong   string
    Args       pb.Message
    Tense      int32
    Interval   int32
    Homeland   uint32
    FunnyPrank string
    Immutable  *SlapImmutable
}

type SlapImmutable Uses

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 Uses

func (SlapImmutable) Proto() *pb.Slap

type StructA Uses

type StructA struct{ X string } // Equal method on value receiver

func (StructA) Equal Uses

func (x StructA) Equal(y StructA) bool

type StructA1 Uses

type StructA1 struct {
    StructA
    X   string
}

These embed the above types as a value.

type StructA2 Uses

type StructA2 struct {
    *StructA
    X   string
}

These embed the above types as a pointer.

type StructB Uses

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

func (*StructB) Equal Uses

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

type StructB1 Uses

type StructB1 struct {
    StructB
    X   string
}

type StructB2 Uses

type StructB2 struct {
    *StructB
    X   string
}

type StructC Uses

type StructC struct{ X string } // Equal method (with interface argument) on value receiver

func (StructC) Equal Uses

func (x StructC) Equal(y InterfaceA) bool

func (StructC) InterfaceA Uses

func (x StructC) InterfaceA()

type StructC1 Uses

type StructC1 struct {
    StructC
    X   string
}

type StructC2 Uses

type StructC2 struct {
    *StructC
    X   string
}

type StructD Uses

type StructD struct{ X string } // Equal method (with interface argument) on pointer receiver

func (*StructD) Equal Uses

func (x *StructD) Equal(y InterfaceA) bool

func (*StructD) InterfaceA Uses

func (x *StructD) InterfaceA()

type StructD1 Uses

type StructD1 struct {
    StructD
    X   string
}

type StructD2 Uses

type StructD2 struct {
    *StructD
    X   string
}

type StructE Uses

type StructE struct{ X string } // Equal method (with interface argument on value receiver) on pointer receiver

func (*StructE) Equal Uses

func (x *StructE) Equal(y InterfaceA) bool

func (StructE) InterfaceA Uses

func (x StructE) InterfaceA()

type StructE1 Uses

type StructE1 struct {
    StructE
    X   string
}

type StructE2 Uses

type StructE2 struct {
    *StructE
    X   string
}

type StructF Uses

type StructF struct{ X string } // Equal method (with interface argument on pointer receiver) on value receiver

func (StructF) Equal Uses

func (x StructF) Equal(y InterfaceA) bool

func (*StructF) InterfaceA Uses

func (x *StructF) InterfaceA()

type StructF1 Uses

type StructF1 struct {
    StructF
    X   string
}

type StructF2 Uses

type StructF2 struct {
    *StructF
    X   string
}

type StructNo Uses

type StructNo struct{ X string } // Equal method (with interface argument) on non-satisfying receiver

func (StructNo) Equal Uses

func (x StructNo) Equal(y InterfaceA) bool

type SummerLove Uses

type SummerLove struct {
    Summary *SummerLoveSummary
    // contains filtered or unexported fields
}

type SummerLoveSummary Uses

type SummerLoveSummary struct {
    Devices    []string
    ChangeType []pb.SummerType
    // contains filtered or unexported fields
}

type Table Uses

type Table interface {
    Operation1() error
    Operation2() error
    Operation3() error
}

type Timestamp Uses

type Timestamp int64

Directories

PathSynopsis
foo1Package foo is deliberately named differently than the parent directory.
foo2Package foo is deliberately named differently than the parent directory.

Package teststructs imports 3 packages (graph). Updated 2020-10-01. Refresh now. Tools for package owners.