testing

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTest        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTest          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTest = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Person_PhoneType_name = map[int32]string{
	0: "MOBILE",
	1: "HOME",
	2: "WORK",
}
View Source
var Person_PhoneType_value = map[string]int32{
	"MOBILE": 0,
	"HOME":   1,
	"WORK":   2,
}

Functions

This section is empty.

Types

type AddressBook

type AddressBook struct {
	People               []*Person `protobuf:"bytes,1,rep,name=people,proto3" json:"people,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*AddressBook) Descriptor

func (*AddressBook) Descriptor() ([]byte, []int)

func (*AddressBook) GetPeople

func (m *AddressBook) GetPeople() []*Person

func (*AddressBook) Marshal

func (m *AddressBook) Marshal() (dAtA []byte, err error)

func (*AddressBook) MarshalTo

func (m *AddressBook) MarshalTo(dAtA []byte) (int, error)

func (*AddressBook) MarshalToSizedBuffer added in v0.3.2

func (m *AddressBook) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AddressBook) ProtoMessage

func (*AddressBook) ProtoMessage()

func (*AddressBook) Reset

func (m *AddressBook) Reset()

func (*AddressBook) Size

func (m *AddressBook) Size() (n int)

func (*AddressBook) String

func (m *AddressBook) String() string

func (*AddressBook) Unmarshal

func (m *AddressBook) Unmarshal(dAtA []byte) error

func (*AddressBook) XXX_DiscardUnknown

func (m *AddressBook) XXX_DiscardUnknown()

func (*AddressBook) XXX_Marshal

func (m *AddressBook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddressBook) XXX_Merge

func (m *AddressBook) XXX_Merge(src proto.Message)

func (*AddressBook) XXX_Size

func (m *AddressBook) XXX_Size() int

func (*AddressBook) XXX_Unmarshal

func (m *AddressBook) XXX_Unmarshal(b []byte) error

type Person

type Person struct {
	Name                 string                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id                   int32                 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Email                string                `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Phones               []*Person_PhoneNumber `protobuf:"bytes,4,rep,name=phones,proto3" json:"phones,omitempty"`
	LastUpdated          *types.Timestamp      `protobuf:"bytes,5,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*Person) Descriptor

func (*Person) Descriptor() ([]byte, []int)

func (*Person) GetEmail

func (m *Person) GetEmail() string

func (*Person) GetId

func (m *Person) GetId() int32

func (*Person) GetLastUpdated

func (m *Person) GetLastUpdated() *types.Timestamp

func (*Person) GetName

func (m *Person) GetName() string

func (*Person) GetPhones

func (m *Person) GetPhones() []*Person_PhoneNumber

func (*Person) Marshal

func (m *Person) Marshal() (dAtA []byte, err error)

func (*Person) MarshalTo

func (m *Person) MarshalTo(dAtA []byte) (int, error)

func (*Person) MarshalToSizedBuffer added in v0.3.2

func (m *Person) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) Reset

func (m *Person) Reset()

func (*Person) Size

func (m *Person) Size() (n int)

func (*Person) String

func (m *Person) String() string

func (*Person) Unmarshal

func (m *Person) Unmarshal(dAtA []byte) error

func (*Person) XXX_DiscardUnknown

func (m *Person) XXX_DiscardUnknown()

func (*Person) XXX_Marshal

func (m *Person) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Person) XXX_Merge

func (m *Person) XXX_Merge(src proto.Message)

func (*Person) XXX_Size

func (m *Person) XXX_Size() int

func (*Person) XXX_Unmarshal

func (m *Person) XXX_Unmarshal(b []byte) error

type Person_PhoneNumber

type Person_PhoneNumber struct {
	Number               string           `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	Type                 Person_PhoneType `protobuf:"varint,2,opt,name=type,proto3,enum=testing.Person_PhoneType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Person_PhoneNumber) Descriptor

func (*Person_PhoneNumber) Descriptor() ([]byte, []int)

func (*Person_PhoneNumber) GetNumber

func (m *Person_PhoneNumber) GetNumber() string

func (*Person_PhoneNumber) GetType

func (m *Person_PhoneNumber) GetType() Person_PhoneType

func (*Person_PhoneNumber) Marshal

func (m *Person_PhoneNumber) Marshal() (dAtA []byte, err error)

func (*Person_PhoneNumber) MarshalTo

func (m *Person_PhoneNumber) MarshalTo(dAtA []byte) (int, error)

func (*Person_PhoneNumber) MarshalToSizedBuffer added in v0.3.2

func (m *Person_PhoneNumber) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Person_PhoneNumber) ProtoMessage

func (*Person_PhoneNumber) ProtoMessage()

func (*Person_PhoneNumber) Reset

func (m *Person_PhoneNumber) Reset()

func (*Person_PhoneNumber) Size

func (m *Person_PhoneNumber) Size() (n int)

func (*Person_PhoneNumber) String

func (m *Person_PhoneNumber) String() string

func (*Person_PhoneNumber) Unmarshal

func (m *Person_PhoneNumber) Unmarshal(dAtA []byte) error

func (*Person_PhoneNumber) XXX_DiscardUnknown

func (m *Person_PhoneNumber) XXX_DiscardUnknown()

func (*Person_PhoneNumber) XXX_Marshal

func (m *Person_PhoneNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Person_PhoneNumber) XXX_Merge

func (m *Person_PhoneNumber) XXX_Merge(src proto.Message)

func (*Person_PhoneNumber) XXX_Size

func (m *Person_PhoneNumber) XXX_Size() int

func (*Person_PhoneNumber) XXX_Unmarshal

func (m *Person_PhoneNumber) XXX_Unmarshal(b []byte) error

type Person_PhoneType

type Person_PhoneType int32
const (
	Person_MOBILE Person_PhoneType = 0
	Person_HOME   Person_PhoneType = 1
	Person_WORK   Person_PhoneType = 2
)

func (Person_PhoneType) EnumDescriptor

func (Person_PhoneType) EnumDescriptor() ([]byte, []int)

func (Person_PhoneType) String

func (x Person_PhoneType) String() string

type Puzzle

type Puzzle struct {
	Challenge            string   `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"`
	Answer               string   `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Puzzle) Descriptor

func (*Puzzle) Descriptor() ([]byte, []int)

func (*Puzzle) GetAnswer

func (m *Puzzle) GetAnswer() string

func (*Puzzle) GetChallenge

func (m *Puzzle) GetChallenge() string

func (*Puzzle) Marshal

func (m *Puzzle) Marshal() (dAtA []byte, err error)

func (*Puzzle) MarshalTo

func (m *Puzzle) MarshalTo(dAtA []byte) (int, error)

func (*Puzzle) MarshalToSizedBuffer added in v0.3.2

func (m *Puzzle) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Puzzle) ProtoMessage

func (*Puzzle) ProtoMessage()

func (*Puzzle) Reset

func (m *Puzzle) Reset()

func (*Puzzle) Size

func (m *Puzzle) Size() (n int)

func (*Puzzle) String

func (m *Puzzle) String() string

func (*Puzzle) Unmarshal

func (m *Puzzle) Unmarshal(dAtA []byte) error

func (*Puzzle) XXX_DiscardUnknown

func (m *Puzzle) XXX_DiscardUnknown()

func (*Puzzle) XXX_Marshal

func (m *Puzzle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Puzzle) XXX_Merge

func (m *Puzzle) XXX_Merge(src proto.Message)

func (*Puzzle) XXX_Size

func (m *Puzzle) XXX_Size() int

func (*Puzzle) XXX_Unmarshal

func (m *Puzzle) XXX_Unmarshal(b []byte) error

type TestMessage

type TestMessage struct {
	Foo                  string   `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"`
	Bar                  string   `protobuf:"bytes,2,opt,name=bar,proto3" json:"bar,omitempty" fizz:"buzz" spec-name:"baz"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestMessage) Descriptor

func (*TestMessage) Descriptor() ([]byte, []int)

func (*TestMessage) GetBar

func (m *TestMessage) GetBar() string

func (*TestMessage) GetFoo

func (m *TestMessage) GetFoo() string

func (*TestMessage) Marshal

func (m *TestMessage) Marshal() (dAtA []byte, err error)

func (*TestMessage) MarshalTo

func (m *TestMessage) MarshalTo(dAtA []byte) (int, error)

func (*TestMessage) MarshalToSizedBuffer added in v0.3.2

func (m *TestMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TestMessage) ProtoMessage

func (*TestMessage) ProtoMessage()

func (*TestMessage) Reset

func (m *TestMessage) Reset()

func (*TestMessage) Size

func (m *TestMessage) Size() (n int)

func (*TestMessage) String

func (m *TestMessage) String() string

func (*TestMessage) Unmarshal

func (m *TestMessage) Unmarshal(dAtA []byte) error

func (*TestMessage) XXX_DiscardUnknown

func (m *TestMessage) XXX_DiscardUnknown()

func (*TestMessage) XXX_Marshal

func (m *TestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestMessage) XXX_Merge

func (m *TestMessage) XXX_Merge(src proto.Message)

func (*TestMessage) XXX_Size

func (m *TestMessage) XXX_Size() int

func (*TestMessage) XXX_Unmarshal

func (m *TestMessage) XXX_Unmarshal(b []byte) error

type TestNestedMessage

type TestNestedMessage struct {
	Fuzz                 string       `protobuf:"bytes,1,opt,name=fuzz,proto3" json:"fuzz,omitempty"`
	Msg                  *TestMessage `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*TestNestedMessage) Descriptor

func (*TestNestedMessage) Descriptor() ([]byte, []int)

func (*TestNestedMessage) GetFuzz

func (m *TestNestedMessage) GetFuzz() string

func (*TestNestedMessage) GetMsg

func (m *TestNestedMessage) GetMsg() *TestMessage

func (*TestNestedMessage) Marshal

func (m *TestNestedMessage) Marshal() (dAtA []byte, err error)

func (*TestNestedMessage) MarshalTo

func (m *TestNestedMessage) MarshalTo(dAtA []byte) (int, error)

func (*TestNestedMessage) MarshalToSizedBuffer added in v0.3.2

func (m *TestNestedMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TestNestedMessage) ProtoMessage

func (*TestNestedMessage) ProtoMessage()

func (*TestNestedMessage) Reset

func (m *TestNestedMessage) Reset()

func (*TestNestedMessage) Size

func (m *TestNestedMessage) Size() (n int)

func (*TestNestedMessage) String

func (m *TestNestedMessage) String() string

func (*TestNestedMessage) Unmarshal

func (m *TestNestedMessage) Unmarshal(dAtA []byte) error

func (*TestNestedMessage) XXX_DiscardUnknown

func (m *TestNestedMessage) XXX_DiscardUnknown()

func (*TestNestedMessage) XXX_Marshal

func (m *TestNestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestNestedMessage) XXX_Merge

func (m *TestNestedMessage) XXX_Merge(src proto.Message)

func (*TestNestedMessage) XXX_Size

func (m *TestNestedMessage) XXX_Size() int

func (*TestNestedMessage) XXX_Unmarshal

func (m *TestNestedMessage) XXX_Unmarshal(b []byte) error

type TestSimpleMessage

type TestSimpleMessage struct {
	Foo                  []byte   `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"`
	Bar                  uint64   `protobuf:"varint,2,opt,name=bar,proto3" json:"bar,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestSimpleMessage) Descriptor

func (*TestSimpleMessage) Descriptor() ([]byte, []int)

func (*TestSimpleMessage) GetBar

func (m *TestSimpleMessage) GetBar() uint64

func (*TestSimpleMessage) GetFoo

func (m *TestSimpleMessage) GetFoo() []byte

func (*TestSimpleMessage) Marshal

func (m *TestSimpleMessage) Marshal() (dAtA []byte, err error)

func (*TestSimpleMessage) MarshalTo

func (m *TestSimpleMessage) MarshalTo(dAtA []byte) (int, error)

func (*TestSimpleMessage) MarshalToSizedBuffer added in v0.3.2

func (m *TestSimpleMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TestSimpleMessage) ProtoMessage

func (*TestSimpleMessage) ProtoMessage()

func (*TestSimpleMessage) Reset

func (m *TestSimpleMessage) Reset()

func (*TestSimpleMessage) Size

func (m *TestSimpleMessage) Size() (n int)

func (*TestSimpleMessage) String

func (m *TestSimpleMessage) String() string

func (*TestSimpleMessage) Unmarshal

func (m *TestSimpleMessage) Unmarshal(dAtA []byte) error

func (*TestSimpleMessage) XXX_DiscardUnknown

func (m *TestSimpleMessage) XXX_DiscardUnknown()

func (*TestSimpleMessage) XXX_Marshal

func (m *TestSimpleMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestSimpleMessage) XXX_Merge

func (m *TestSimpleMessage) XXX_Merge(src proto.Message)

func (*TestSimpleMessage) XXX_Size

func (m *TestSimpleMessage) XXX_Size() int

func (*TestSimpleMessage) XXX_Unmarshal

func (m *TestSimpleMessage) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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