test

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthExample        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowExample          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupExample = fmt.Errorf("proto: unexpected end of group")
)

Functions

Types

type A

type A struct {
	Description          string                                `protobuf:"bytes,1,opt,name=Description" json:"Description"`
	Number               int64                                 `protobuf:"varint,2,opt,name=Number" json:"Number"`
	Id                   github_com_coderyw_protobuf_test.Uuid `protobuf:"bytes,3,opt,name=Id,customtype=github.com/coderyw/protobuf/test.Uuid" json:"Id"`
	XXX_NoUnkeyedLiteral struct{}                              `json:"-"`
	XXX_unrecognized     []byte                                `json:"-"`
	XXX_sizecache        int32                                 `json:"-"`
}

func NewAFromFace

func NewAFromFace(that AFace) *A

func NewPopulatedA

func NewPopulatedA(r randyExample, easy bool) *A

func (*A) Descriptor

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

func (*A) Equal

func (this *A) Equal(that interface{}) bool

func (*A) GetDescription

func (this *A) GetDescription() string

func (*A) GetId

func (this *A) GetId() github_com_coderyw_protobuf_test.Uuid

func (*A) GetNumber

func (this *A) GetNumber() int64

func (*A) GoString

func (this *A) GoString() string

func (*A) IsNil added in v1.4.9

func (m *A) IsNil() bool

func (*A) Marshal

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

func (*A) MarshalTo

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

func (*A) MarshalToSizedBuffer added in v1.3.9

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

func (*A) Proto

func (*A) ProtoMessage

func (*A) ProtoMessage()

func (*A) Reset

func (m *A) Reset()

func (*A) SetDescription_ added in v1.4.9

func (m *A) SetDescription_(val string)

func (*A) SetNumber_ added in v1.4.9

func (m *A) SetNumber_(val int64)

func (*A) Size

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

func (*A) String

func (this *A) String() string

func (*A) TestProto

func (this *A) TestProto() github_com_coderyw_protobuf_proto.Message

func (*A) Unmarshal

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

func (*A) VerboseEqual

func (this *A) VerboseEqual(that interface{}) error

func (*A) XXX_DiscardUnknown added in v1.1.0

func (m *A) XXX_DiscardUnknown()

func (*A) XXX_Marshal added in v1.1.0

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

func (*A) XXX_Merge added in v1.1.0

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

func (*A) XXX_Size added in v1.1.0

func (m *A) XXX_Size() int

func (*A) XXX_Unmarshal added in v1.1.0

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

type AFace

type AFace interface {
	Proto() github_com_coderyw_protobuf_proto.Message
	GetDescription() string
	GetNumber() int64
	GetId() github_com_coderyw_protobuf_test.Uuid
}

type B

type B struct {
	A                    `protobuf:"bytes,1,opt,name=A,embedded=A" json:"A"`
	G                    []github_com_coderyw_protobuf_test_custom.Uint128 `protobuf:"bytes,2,rep,name=G,customtype=github.com/coderyw/protobuf/test/custom.Uint128" json:"G"`
	XXX_NoUnkeyedLiteral struct{}                                          `json:"-"`
	XXX_unrecognized     []byte                                            `json:"-"`
	XXX_sizecache        int32                                             `json:"-"`
}

func NewPopulatedB

func NewPopulatedB(r randyExample, easy bool) *B

func (*B) Descriptor

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

func (*B) Equal

func (this *B) Equal(that interface{}) bool

func (*B) GoString

func (this *B) GoString() string

func (*B) IsNil added in v1.4.9

func (m *B) IsNil() bool

func (*B) Marshal

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

func (*B) MarshalTo

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

func (*B) MarshalToSizedBuffer added in v1.3.9

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

func (*B) ProtoMessage

func (*B) ProtoMessage()

func (*B) Reset

func (m *B) Reset()

func (*B) Size

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

func (*B) String

func (this *B) String() string

func (*B) Unmarshal

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

func (*B) VerboseEqual

func (this *B) VerboseEqual(that interface{}) error

func (*B) XXX_DiscardUnknown added in v1.1.0

func (m *B) XXX_DiscardUnknown()

func (*B) XXX_Marshal added in v1.1.0

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

func (*B) XXX_Merge added in v1.1.0

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

func (*B) XXX_Size added in v1.1.0

func (m *B) XXX_Size() int

func (*B) XXX_Unmarshal added in v1.1.0

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

type C

type C struct {
	MySize               *int64   `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedC

func NewPopulatedC(r randyExample, easy bool) *C

func (*C) Descriptor

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

func (*C) Equal

func (this *C) Equal(that interface{}) bool

func (*C) GetMySize

func (m *C) GetMySize() int64

func (*C) GoString

func (this *C) GoString() string

func (*C) IsNil added in v1.4.9

func (m *C) IsNil() bool

func (*C) Marshal

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

func (*C) MarshalTo

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

func (*C) MarshalToSizedBuffer added in v1.3.9

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

func (*C) ProtoMessage

func (*C) ProtoMessage()

func (*C) Reset

func (m *C) Reset()

func (*C) SetMySize_ added in v1.4.9

func (m *C) SetMySize_(val int64)

func (*C) Size

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

func (*C) String

func (this *C) String() string

func (*C) Unmarshal

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

func (*C) VerboseEqual

func (this *C) VerboseEqual(that interface{}) error

func (*C) XXX_DiscardUnknown added in v1.1.0

func (m *C) XXX_DiscardUnknown()

func (*C) XXX_Marshal added in v1.1.0

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

func (*C) XXX_Merge added in v1.1.0

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

func (*C) XXX_Size added in v1.1.0

func (m *C) XXX_Size() int

func (*C) XXX_Unmarshal added in v1.1.0

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

type CastType

type CastType struct {
	Int32                *int32   `protobuf:"varint,1,opt,name=Int32,casttype=int32" json:"Int32,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedCastType

func NewPopulatedCastType(r randyExample, easy bool) *CastType

func (*CastType) Descriptor

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

func (*CastType) Equal

func (this *CastType) Equal(that interface{}) bool

func (*CastType) GetInt32

func (m *CastType) GetInt32() int32

func (*CastType) GoString

func (this *CastType) GoString() string

func (*CastType) IsNil added in v1.4.9

func (m *CastType) IsNil() bool

func (*CastType) Marshal

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

func (*CastType) MarshalTo

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

func (*CastType) MarshalToSizedBuffer added in v1.3.9

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

func (*CastType) ProtoMessage

func (*CastType) ProtoMessage()

func (*CastType) Reset

func (m *CastType) Reset()

func (*CastType) SetInt32_ added in v1.4.9

func (m *CastType) SetInt32_(val int32)

func (*CastType) Size

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

func (*CastType) String

func (this *CastType) String() string

func (*CastType) Unmarshal

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

func (*CastType) VerboseEqual

func (this *CastType) VerboseEqual(that interface{}) error

func (*CastType) XXX_DiscardUnknown added in v1.1.0

func (m *CastType) XXX_DiscardUnknown()

func (*CastType) XXX_Marshal added in v1.1.0

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

func (*CastType) XXX_Merge added in v1.1.0

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

func (*CastType) XXX_Size added in v1.1.0

func (m *CastType) XXX_Size() int

func (*CastType) XXX_Unmarshal added in v1.1.0

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

type E

type E struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_extensions       []byte   `protobuf:"bytes,0,opt" json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedE

func NewPopulatedE(r randyExample, easy bool) *E

func (*E) Descriptor

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

func (*E) Equal

func (this *E) Equal(that interface{}) bool

func (*E) ExtensionRangeArray

func (*E) ExtensionRangeArray() []proto.ExtensionRange

func (*E) GetExtensions

func (m *E) GetExtensions() *[]byte

func (*E) GoString

func (this *E) GoString() string

func (*E) IsNil added in v1.4.9

func (m *E) IsNil() bool

func (*E) Marshal

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

func (*E) MarshalTo

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

func (*E) MarshalToSizedBuffer added in v1.3.9

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

func (*E) ProtoMessage

func (*E) ProtoMessage()

func (*E) Reset

func (m *E) Reset()

func (*E) Size

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

func (*E) String

func (this *E) String() string

func (*E) Unmarshal

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

func (*E) VerboseEqual

func (this *E) VerboseEqual(that interface{}) error

func (*E) XXX_DiscardUnknown added in v1.1.0

func (m *E) XXX_DiscardUnknown()

func (*E) XXX_Marshal added in v1.1.0

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

func (*E) XXX_Merge added in v1.1.0

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

func (*E) XXX_Size added in v1.1.0

func (m *E) XXX_Size() int

func (*E) XXX_Unmarshal added in v1.1.0

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

type R

type R struct {
	Recognized           *uint32  `protobuf:"varint,1,opt,name=recognized" json:"recognized,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedR

func NewPopulatedR(r randyExample, easy bool) *R

func (*R) Descriptor

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

func (*R) Equal

func (this *R) Equal(that interface{}) bool

func (*R) GetRecognized

func (m *R) GetRecognized() uint32

func (*R) GoString

func (this *R) GoString() string

func (*R) IsNil added in v1.4.9

func (m *R) IsNil() bool

func (*R) Marshal

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

func (*R) MarshalTo

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

func (*R) MarshalToSizedBuffer added in v1.3.9

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

func (*R) ProtoMessage

func (*R) ProtoMessage()

func (*R) Reset

func (m *R) Reset()

func (*R) SetRecognized_ added in v1.4.9

func (m *R) SetRecognized_(val uint32)

func (*R) Size

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

func (*R) String

func (this *R) String() string

func (*R) Unmarshal

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

func (*R) VerboseEqual

func (this *R) VerboseEqual(that interface{}) error

func (*R) XXX_DiscardUnknown added in v1.1.0

func (m *R) XXX_DiscardUnknown()

func (*R) XXX_Marshal added in v1.1.0

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

func (*R) XXX_Merge added in v1.1.0

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

func (*R) XXX_Size added in v1.1.0

func (m *R) XXX_Size() int

func (*R) XXX_Unmarshal added in v1.1.0

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

type U

type U struct {
	A                    *A       `protobuf:"bytes,1,opt,name=A" json:"A,omitempty"`
	B                    *B       `protobuf:"bytes,2,opt,name=B" json:"B,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedU

func NewPopulatedU(r randyExample, easy bool) *U

func (*U) Descriptor

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

func (*U) Equal

func (this *U) Equal(that interface{}) bool

func (*U) GetA

func (m *U) GetA() *A

func (*U) GetB

func (m *U) GetB() *B

func (*U) GetValue

func (this *U) GetValue() interface{}

func (*U) GoString

func (this *U) GoString() string

func (*U) IsNil added in v1.4.9

func (m *U) IsNil() bool

func (*U) Marshal

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

func (*U) MarshalTo

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

func (*U) MarshalToSizedBuffer added in v1.3.9

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

func (*U) ProtoMessage

func (*U) ProtoMessage()

func (*U) Reset

func (m *U) Reset()

func (*U) SetA_ added in v1.4.9

func (m *U) SetA_(val *A)

func (*U) SetB_ added in v1.4.9

func (m *U) SetB_(val *B)

func (*U) SetValue

func (this *U) SetValue(value interface{}) bool

func (*U) Size

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

func (*U) String

func (this *U) String() string

func (*U) Unmarshal

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

func (*U) VerboseEqual

func (this *U) VerboseEqual(that interface{}) error

func (*U) XXX_DiscardUnknown added in v1.1.0

func (m *U) XXX_DiscardUnknown()

func (*U) XXX_Marshal added in v1.1.0

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

func (*U) XXX_Merge added in v1.1.0

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

func (*U) XXX_Size added in v1.1.0

func (m *U) XXX_Size() int

func (*U) XXX_Unmarshal added in v1.1.0

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

Jump to

Keyboard shortcuts

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