test

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type List

type List struct {
	Z []int32 `protobuf:"zigzag32,1,rep,packed,name=z,proto3" json:"z,omitempty"`
	// contains filtered or unexported fields
}

func (*List) Descriptor deprecated

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

Deprecated: Use List.ProtoReflect.Descriptor instead.

func (*List) GetZ

func (x *List) GetZ() []int32

func (*List) ProtoMessage

func (*List) ProtoMessage()

func (*List) ProtoReflect

func (x *List) ProtoReflect() protoreflect.Message

func (*List) Reset

func (x *List) Reset()

func (*List) String

func (x *List) String() string

type ProtocTester added in v0.2.0

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

ProtocTester mimicks the program in pbf_test.go using Go code generated by protoc and protoc-gen-go.

func (*ProtocTester) Filter added in v0.2.0

func (t *ProtocTester) Filter(b []byte) (bool, error)

type Sub

type Sub struct {
	X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*Sub) Descriptor deprecated

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

Deprecated: Use Sub.ProtoReflect.Descriptor instead.

func (*Sub) GetX

func (x *Sub) GetX() int64

func (*Sub) GetY

func (x *Sub) GetY() int32

func (*Sub) ProtoMessage

func (*Sub) ProtoMessage()

func (*Sub) ProtoReflect

func (x *Sub) ProtoReflect() protoreflect.Message

func (*Sub) Reset

func (x *Sub) Reset()

func (*Sub) String

func (x *Sub) String() string

type Test

type Test struct {
	A uint32    `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	B uint64    `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"`
	C int32     `protobuf:"varint,3,opt,name=c,proto3" json:"c,omitempty"`
	D int64     `protobuf:"varint,4,opt,name=d,proto3" json:"d,omitempty"`
	E int32     `protobuf:"zigzag32,5,opt,name=e,proto3" json:"e,omitempty"`
	F int64     `protobuf:"zigzag64,6,opt,name=f,proto3" json:"f,omitempty"`
	G uint32    `protobuf:"fixed32,7,opt,name=g,proto3" json:"g,omitempty"`
	H uint64    `protobuf:"fixed64,8,opt,name=h,proto3" json:"h,omitempty"`
	I float32   `protobuf:"fixed32,9,opt,name=i,proto3" json:"i,omitempty"`
	J float64   `protobuf:"fixed64,10,opt,name=j,proto3" json:"j,omitempty"`
	K []byte    `protobuf:"bytes,11,opt,name=k,proto3" json:"k,omitempty"`
	L string    `protobuf:"bytes,12,opt,name=l,proto3" json:"l,omitempty"`
	M []uint64  `protobuf:"varint,13,rep,packed,name=m,proto3" json:"m,omitempty"`
	N *Sub      `protobuf:"bytes,14,opt,name=n,proto3" json:"n,omitempty"`
	O *List     `protobuf:"bytes,15,opt,name=o,proto3" json:"o,omitempty"`
	P []int32   `protobuf:"zigzag32,16,rep,name=p,proto3" json:"p,omitempty"`
	Q []*Sub    `protobuf:"bytes,17,rep,name=q,proto3" json:"q,omitempty"`
	R uint32    `protobuf:"varint,18,opt,name=r,proto3" json:"r,omitempty"`
	S []byte    `protobuf:"bytes,19,opt,name=s,proto3" json:"s,omitempty"`
	T []float32 `protobuf:"fixed32,20,rep,packed,name=t,proto3" json:"t,omitempty"`
	U []float64 `protobuf:"fixed64,21,rep,packed,name=u,proto3" json:"u,omitempty"`
	// contains filtered or unexported fields
}

func (*Test) Descriptor deprecated

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

Deprecated: Use Test.ProtoReflect.Descriptor instead.

func (*Test) GetA

func (x *Test) GetA() uint32

func (*Test) GetB

func (x *Test) GetB() uint64

func (*Test) GetC

func (x *Test) GetC() int32

func (*Test) GetD

func (x *Test) GetD() int64

func (*Test) GetE

func (x *Test) GetE() int32

func (*Test) GetF

func (x *Test) GetF() int64

func (*Test) GetG

func (x *Test) GetG() uint32

func (*Test) GetH

func (x *Test) GetH() uint64

func (*Test) GetI

func (x *Test) GetI() float32

func (*Test) GetJ

func (x *Test) GetJ() float64

func (*Test) GetK

func (x *Test) GetK() []byte

func (*Test) GetL

func (x *Test) GetL() string

func (*Test) GetM

func (x *Test) GetM() []uint64

func (*Test) GetN

func (x *Test) GetN() *Sub

func (*Test) GetO

func (x *Test) GetO() *List

func (*Test) GetP

func (x *Test) GetP() []int32

func (*Test) GetQ

func (x *Test) GetQ() []*Sub

func (*Test) GetR

func (x *Test) GetR() uint32

func (*Test) GetS

func (x *Test) GetS() []byte

func (*Test) GetT

func (x *Test) GetT() []float32

func (*Test) GetU

func (x *Test) GetU() []float64

func (*Test) ProtoMessage

func (*Test) ProtoMessage()

func (*Test) ProtoReflect

func (x *Test) ProtoReflect() protoreflect.Message

func (*Test) Reset

func (x *Test) Reset()

func (*Test) String

func (x *Test) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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