test

package
v0.0.0-...-97dcd37 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// program with no instructions.
	Empty = &TestExpr{
		Expr: &expr.Expr{},

		SourceInfo: &expr.SourceInfo{
			LineOffsets: []int32{},
			Positions:   map[int64]int32{}}}

	// [1, 1u, 1.0].exists(x, type(x) == uint)
	Exists = &TestExpr{
		Expr: ExprComprehension(1,
			"x",
			ExprList(8,
				ExprLiteral(2, int64(0)),
				ExprLiteral(3, int64(1)),
				ExprLiteral(4, int64(2)),
				ExprLiteral(5, int64(3)),
				ExprLiteral(6, int64(4)),
				ExprLiteral(7, uint64(5))),
			"_accu_",
			ExprLiteral(9, false),
			ExprCall(10,
				operators.LogicalNot,
				ExprIdent(11, "_accu_")),
			ExprCall(12,
				operators.Equals,
				ExprCall(13,
					"type",
					ExprIdent(14, "x")),
				ExprIdent(15, "uint")),
			ExprIdent(16, "_accu_")),

		SourceInfo: &expr.SourceInfo{
			LineOffsets: []int32{0},
			Positions: map[int64]int32{
				0:  12,
				1:  0,
				2:  1,
				3:  4,
				4:  8,
				5:  0,
				6:  18,
				7:  18,
				8:  18,
				9:  18,
				10: 18,
				11: 20,
				12: 20,
				13: 28,
				14: 28,
				15: 28,
				16: 28}}}

	// elems.exists(x, type(x) == uint)
	ExistsWithInput = &TestExpr{
		Expr: ExprComprehension(1,
			"x",
			ExprIdent(2, "elems"),
			"_accu_",
			ExprLiteral(3, false),
			ExprCall(4,
				operators.LogicalNot,
				ExprIdent(5, "_accu_")),
			ExprCall(6,
				operators.Equals,
				ExprCall(7,
					"type",
					ExprIdent(8, "x")),
				ExprIdent(9, "uint")),
			ExprIdent(10, "_accu_")),

		SourceInfo: &expr.SourceInfo{
			LineOffsets: []int32{0},
			Positions: map[int64]int32{
				0:  12,
				1:  0,
				2:  1,
				3:  4,
				4:  8,
				5:  0,
				6:  18,
				7:  18,
				8:  18,
				9:  18,
				10: 18}}}

	// {"hello": "world".size(),
	//  "dur": duration.Duration{10},
	//  "ts": timestamp.Timestamp{1000},
	//  "null": null,
	//  "bytes": b"bytes-string"}
	DynMap = &TestExpr{
		Expr: ExprMap(17,
			ExprEntry(2,
				ExprLiteral(1, "hello"),
				ExprMemberCall(3,
					"size",
					ExprLiteral(4, "world"))),
			ExprEntry(12,
				ExprLiteral(11, "null"),
				ExprLiteral(13, structpb.NullValue_NULL_VALUE)),
			ExprEntry(15,
				ExprLiteral(14, "bytes"),
				ExprLiteral(16, []byte("bytes-string")))),

		SourceInfo: &expr.SourceInfo{
			LineOffsets: []int32{},
			Positions:   map[int64]int32{}}}

	// a && TestProto{c: true}.c
	LogicalAnd = &TestExpr{
		ExprCall(2, operators.LogicalAnd,
			ExprIdent(1, "a"),
			ExprSelect(6,
				ExprType(5, "TestProto",
					ExprField(4, "c", ExprLiteral(5, true))),
				"c")),
		&expr.SourceInfo{
			LineOffsets: []int32{},
			Positions:   map[int64]int32{}}}

	// a ? b < 1.0 : c == ["hello"]
	Conditional = &TestExpr{
		Expr: ExprCall(9, operators.Conditional,
			ExprIdent(1, "a"),
			ExprCall(3,
				operators.Less,
				ExprIdent(2, "b"),
				ExprLiteral(4, 1.0)),
			ExprCall(6,
				operators.Equals,
				ExprIdent(5, "c"),
				ExprList(8, ExprLiteral(7, "hello")))),
		SourceInfo: &expr.SourceInfo{
			LineOffsets: []int32{},
			Positions:   map[int64]int32{}}}

	// a.b.c
	Select = &TestExpr{
		Expr: ExprSelect(3,
			ExprSelect(2,
				ExprIdent(1, "a"),
				"b"),
			"c"),
		SourceInfo: &expr.SourceInfo{
			LineOffsets: []int32{},
			Positions:   map[int64]int32{}}}

	// a == 42
	Equality = &TestExpr{
		Expr: ExprCall(2,
			operators.Equals,
			ExprIdent(1, "a"),
			ExprLiteral(3, int64(42))),
		SourceInfo: &expr.SourceInfo{
			LineOffsets: []int32{},
			Positions:   map[int64]int32{}}}

	// a == 42
	TypeEquality = &TestExpr{
		Expr: ExprCall(4,
			operators.Equals,
			ExprCall(1, "type",
				ExprIdent(2, "a")),
			ExprIdent(3, "uint")),
		SourceInfo: &expr.SourceInfo{
			LineOffsets: []int32{},
			Positions:   map[int64]int32{}}}
)
View Source
var GlobalEnum_name = map[int32]string{
	0: "GOO",
	1: "GAR",
	2: "GAZ",
}
View Source
var GlobalEnum_value = map[string]int32{
	"GOO": 0,
	"GAR": 1,
	"GAZ": 2,
}
View Source
var TestAllTypes_NestedEnum_name = map[int32]string{
	0: "FOO",
	1: "BAR",
	2: "BAZ",
}
View Source
var TestAllTypes_NestedEnum_value = map[string]int32{
	"FOO": 0,
	"BAR": 1,
	"BAZ": 2,
}

Functions

func Compare

func Compare(a string, e string) bool

Compare compares two strings, a for actual, e for expected, and returns true or false. The comparison is done, by filtering out whitespace (i.e. space, tabs and newline).

func DiffMessage

func DiffMessage(context string, actual interface{}, expected interface{}) string

DiffMessage creates a diff dump message for test failures.

func ExprCall

func ExprCall(id int64, function string, args ...*expr.Expr) *expr.Expr

func ExprComprehension

func ExprComprehension(id int64,
	iterVar string, iterRange *expr.Expr,
	accuVar string, accuInit *expr.Expr,
	loopCondition *expr.Expr, loopStep *expr.Expr,
	resultExpr *expr.Expr) *expr.Expr

func ExprEntry

func ExprEntry(id int64, key *expr.Expr,
	value *expr.Expr) *expr.Expr_CreateStruct_Entry

func ExprField

func ExprField(id int64, field string,
	value *expr.Expr) *expr.Expr_CreateStruct_Entry

func ExprIdent

func ExprIdent(id int64, name string) *expr.Expr

func ExprList

func ExprList(id int64, elements ...*expr.Expr) *expr.Expr

func ExprLiteral

func ExprLiteral(id int64, value interface{}) *expr.Expr

func ExprMap

func ExprMap(id int64, entries ...*expr.Expr_CreateStruct_Entry) *expr.Expr

func ExprMemberCall

func ExprMemberCall(id int64, function string, target *expr.Expr, args ...*expr.Expr) *expr.Expr

func ExprSelect

func ExprSelect(id int64, operand *expr.Expr, field string) *expr.Expr

func ExprType

func ExprType(id int64, messageName string,
	entries ...*expr.Expr_CreateStruct_Entry) *expr.Expr

Types

type GlobalEnum

type GlobalEnum int32
const (
	GlobalEnum_GOO GlobalEnum = 0
	GlobalEnum_GAR GlobalEnum = 1
	GlobalEnum_GAZ GlobalEnum = 2
)

func (GlobalEnum) EnumDescriptor

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

func (GlobalEnum) String

func (x GlobalEnum) String() string

type NestedTestAllTypes

type NestedTestAllTypes struct {
	Child                *NestedTestAllTypes `protobuf:"bytes,1,opt,name=child" json:"child,omitempty"`
	Payload              *TestAllTypes       `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*NestedTestAllTypes) Descriptor

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

func (*NestedTestAllTypes) GetChild

func (m *NestedTestAllTypes) GetChild() *NestedTestAllTypes

func (*NestedTestAllTypes) GetPayload

func (m *NestedTestAllTypes) GetPayload() *TestAllTypes

func (*NestedTestAllTypes) ProtoMessage

func (*NestedTestAllTypes) ProtoMessage()

func (*NestedTestAllTypes) Reset

func (m *NestedTestAllTypes) Reset()

func (*NestedTestAllTypes) String

func (m *NestedTestAllTypes) String() string

func (*NestedTestAllTypes) XXX_DiscardUnknown

func (m *NestedTestAllTypes) XXX_DiscardUnknown()

func (*NestedTestAllTypes) XXX_Marshal

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

func (*NestedTestAllTypes) XXX_Merge

func (dst *NestedTestAllTypes) XXX_Merge(src proto.Message)

func (*NestedTestAllTypes) XXX_Size

func (m *NestedTestAllTypes) XXX_Size() int

func (*NestedTestAllTypes) XXX_Unmarshal

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

type TestAllTypes

type TestAllTypes struct {
	SingleInt32        int32                `protobuf:"varint,1,opt,name=single_int32,json=singleInt32" json:"single_int32,omitempty"`
	SingleInt64        int64                `protobuf:"varint,2,opt,name=single_int64,json=singleInt64" json:"single_int64,omitempty"`
	SingleUint32       uint32               `protobuf:"varint,3,opt,name=single_uint32,json=singleUint32" json:"single_uint32,omitempty"`
	SingleUint64       uint64               `protobuf:"varint,4,opt,name=single_uint64,json=singleUint64" json:"single_uint64,omitempty"`
	SingleSint32       int32                `protobuf:"zigzag32,5,opt,name=single_sint32,json=singleSint32" json:"single_sint32,omitempty"`
	SingleSint64       int64                `protobuf:"zigzag64,6,opt,name=single_sint64,json=singleSint64" json:"single_sint64,omitempty"`
	SingleFixed32      uint32               `protobuf:"fixed32,7,opt,name=single_fixed32,json=singleFixed32" json:"single_fixed32,omitempty"`
	SingleFixed64      uint64               `protobuf:"fixed64,8,opt,name=single_fixed64,json=singleFixed64" json:"single_fixed64,omitempty"`
	SingleSfixed32     int32                `protobuf:"fixed32,9,opt,name=single_sfixed32,json=singleSfixed32" json:"single_sfixed32,omitempty"`
	SingleSfixed64     int64                `protobuf:"fixed64,10,opt,name=single_sfixed64,json=singleSfixed64" json:"single_sfixed64,omitempty"`
	SingleFloat        float32              `protobuf:"fixed32,11,opt,name=single_float,json=singleFloat" json:"single_float,omitempty"`
	SingleDouble       float64              `protobuf:"fixed64,12,opt,name=single_double,json=singleDouble" json:"single_double,omitempty"`
	SingleBool         bool                 `protobuf:"varint,13,opt,name=single_bool,json=singleBool" json:"single_bool,omitempty"`
	SingleString       string               `protobuf:"bytes,14,opt,name=single_string,json=singleString" json:"single_string,omitempty"`
	SingleBytes        []byte               `protobuf:"bytes,15,opt,name=single_bytes,json=singleBytes,proto3" json:"single_bytes,omitempty"`
	SingleAny          *any.Any             `protobuf:"bytes,100,opt,name=single_any,json=singleAny" json:"single_any,omitempty"`
	SingleDuration     *duration.Duration   `protobuf:"bytes,101,opt,name=single_duration,json=singleDuration" json:"single_duration,omitempty"`
	SingleTimestamp    *timestamp.Timestamp `protobuf:"bytes,102,opt,name=single_timestamp,json=singleTimestamp" json:"single_timestamp,omitempty"`
	SingleStruct       *_struct.Struct      `protobuf:"bytes,103,opt,name=single_struct,json=singleStruct" json:"single_struct,omitempty"`
	SingleValue        *_struct.Value       `protobuf:"bytes,104,opt,name=single_value,json=singleValue" json:"single_value,omitempty"`
	SingleInt64Wrapper *wrappers.Int64Value `protobuf:"bytes,105,opt,name=single_int64_wrapper,json=singleInt64Wrapper" json:"single_int64_wrapper,omitempty"`
	// Types that are valid to be assigned to NestedType:
	//	*TestAllTypes_SingleNestedMessage
	//	*TestAllTypes_SingleNestedEnum
	NestedType            isTestAllTypes_NestedType     `protobuf_oneof:"nested_type"`
	RepeatedInt32         []int32                       `protobuf:"varint,31,rep,packed,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty"`
	RepeatedInt64         []int64                       `protobuf:"varint,32,rep,packed,name=repeated_int64,json=repeatedInt64" json:"repeated_int64,omitempty"`
	RepeatedUint32        []uint32                      `protobuf:"varint,33,rep,packed,name=repeated_uint32,json=repeatedUint32" json:"repeated_uint32,omitempty"`
	RepeatedUint64        []uint64                      `protobuf:"varint,34,rep,packed,name=repeated_uint64,json=repeatedUint64" json:"repeated_uint64,omitempty"`
	RepeatedSint32        []int32                       `protobuf:"zigzag32,35,rep,packed,name=repeated_sint32,json=repeatedSint32" json:"repeated_sint32,omitempty"`
	RepeatedSint64        []int64                       `protobuf:"zigzag64,36,rep,packed,name=repeated_sint64,json=repeatedSint64" json:"repeated_sint64,omitempty"`
	RepeatedFixed32       []uint32                      `protobuf:"fixed32,37,rep,packed,name=repeated_fixed32,json=repeatedFixed32" json:"repeated_fixed32,omitempty"`
	RepeatedFixed64       []uint64                      `protobuf:"fixed64,38,rep,packed,name=repeated_fixed64,json=repeatedFixed64" json:"repeated_fixed64,omitempty"`
	RepeatedSfixed32      []int32                       `protobuf:"fixed32,39,rep,packed,name=repeated_sfixed32,json=repeatedSfixed32" json:"repeated_sfixed32,omitempty"`
	RepeatedSfixed64      []int64                       `protobuf:"fixed64,40,rep,packed,name=repeated_sfixed64,json=repeatedSfixed64" json:"repeated_sfixed64,omitempty"`
	RepeatedFloat         []float32                     `protobuf:"fixed32,41,rep,packed,name=repeated_float,json=repeatedFloat" json:"repeated_float,omitempty"`
	RepeatedDouble        []float64                     `protobuf:"fixed64,42,rep,packed,name=repeated_double,json=repeatedDouble" json:"repeated_double,omitempty"`
	RepeatedBool          []bool                        `protobuf:"varint,43,rep,packed,name=repeated_bool,json=repeatedBool" json:"repeated_bool,omitempty"`
	RepeatedString        []string                      `protobuf:"bytes,44,rep,name=repeated_string,json=repeatedString" json:"repeated_string,omitempty"`
	RepeatedBytes         [][]byte                      `protobuf:"bytes,45,rep,name=repeated_bytes,json=repeatedBytes,proto3" json:"repeated_bytes,omitempty"`
	RepeatedNestedMessage []*TestAllTypes_NestedMessage `protobuf:"bytes,48,rep,name=repeated_nested_message,json=repeatedNestedMessage" json:"repeated_nested_message,omitempty"`
	RepeatedNestedEnum    []TestAllTypes_NestedEnum     `` /* 175-byte string literal not displayed */
	RepeatedStringPiece   []string                      `protobuf:"bytes,54,rep,name=repeated_string_piece,json=repeatedStringPiece" json:"repeated_string_piece,omitempty"`
	RepeatedCord          []string                      `protobuf:"bytes,55,rep,name=repeated_cord,json=repeatedCord" json:"repeated_cord,omitempty"`
	RepeatedLazyMessage   []*TestAllTypes_NestedMessage `protobuf:"bytes,57,rep,name=repeated_lazy_message,json=repeatedLazyMessage" json:"repeated_lazy_message,omitempty"`
	MapStringString       map[string]string             `` /* 176-byte string literal not displayed */
	MapInt64NestedType    map[int64]*NestedTestAllTypes `` /* 188-byte string literal not displayed */
	XXX_NoUnkeyedLiteral  struct{}                      `json:"-"`
	XXX_unrecognized      []byte                        `json:"-"`
	XXX_sizecache         int32                         `json:"-"`
}

func (*TestAllTypes) Descriptor

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

func (*TestAllTypes) GetMapInt64NestedType

func (m *TestAllTypes) GetMapInt64NestedType() map[int64]*NestedTestAllTypes

func (*TestAllTypes) GetMapStringString

func (m *TestAllTypes) GetMapStringString() map[string]string

func (*TestAllTypes) GetNestedType

func (m *TestAllTypes) GetNestedType() isTestAllTypes_NestedType

func (*TestAllTypes) GetRepeatedBool

func (m *TestAllTypes) GetRepeatedBool() []bool

func (*TestAllTypes) GetRepeatedBytes

func (m *TestAllTypes) GetRepeatedBytes() [][]byte

func (*TestAllTypes) GetRepeatedCord

func (m *TestAllTypes) GetRepeatedCord() []string

func (*TestAllTypes) GetRepeatedDouble

func (m *TestAllTypes) GetRepeatedDouble() []float64

func (*TestAllTypes) GetRepeatedFixed32

func (m *TestAllTypes) GetRepeatedFixed32() []uint32

func (*TestAllTypes) GetRepeatedFixed64

func (m *TestAllTypes) GetRepeatedFixed64() []uint64

func (*TestAllTypes) GetRepeatedFloat

func (m *TestAllTypes) GetRepeatedFloat() []float32

func (*TestAllTypes) GetRepeatedInt32

func (m *TestAllTypes) GetRepeatedInt32() []int32

func (*TestAllTypes) GetRepeatedInt64

func (m *TestAllTypes) GetRepeatedInt64() []int64

func (*TestAllTypes) GetRepeatedLazyMessage

func (m *TestAllTypes) GetRepeatedLazyMessage() []*TestAllTypes_NestedMessage

func (*TestAllTypes) GetRepeatedNestedEnum

func (m *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum

func (*TestAllTypes) GetRepeatedNestedMessage

func (m *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage

func (*TestAllTypes) GetRepeatedSfixed32

func (m *TestAllTypes) GetRepeatedSfixed32() []int32

func (*TestAllTypes) GetRepeatedSfixed64

func (m *TestAllTypes) GetRepeatedSfixed64() []int64

func (*TestAllTypes) GetRepeatedSint32

func (m *TestAllTypes) GetRepeatedSint32() []int32

func (*TestAllTypes) GetRepeatedSint64

func (m *TestAllTypes) GetRepeatedSint64() []int64

func (*TestAllTypes) GetRepeatedString

func (m *TestAllTypes) GetRepeatedString() []string

func (*TestAllTypes) GetRepeatedStringPiece

func (m *TestAllTypes) GetRepeatedStringPiece() []string

func (*TestAllTypes) GetRepeatedUint32

func (m *TestAllTypes) GetRepeatedUint32() []uint32

func (*TestAllTypes) GetRepeatedUint64

func (m *TestAllTypes) GetRepeatedUint64() []uint64

func (*TestAllTypes) GetSingleAny

func (m *TestAllTypes) GetSingleAny() *any.Any

func (*TestAllTypes) GetSingleBool

func (m *TestAllTypes) GetSingleBool() bool

func (*TestAllTypes) GetSingleBytes

func (m *TestAllTypes) GetSingleBytes() []byte

func (*TestAllTypes) GetSingleDouble

func (m *TestAllTypes) GetSingleDouble() float64

func (*TestAllTypes) GetSingleDuration

func (m *TestAllTypes) GetSingleDuration() *duration.Duration

func (*TestAllTypes) GetSingleFixed32

func (m *TestAllTypes) GetSingleFixed32() uint32

func (*TestAllTypes) GetSingleFixed64

func (m *TestAllTypes) GetSingleFixed64() uint64

func (*TestAllTypes) GetSingleFloat

func (m *TestAllTypes) GetSingleFloat() float32

func (*TestAllTypes) GetSingleInt32

func (m *TestAllTypes) GetSingleInt32() int32

func (*TestAllTypes) GetSingleInt64

func (m *TestAllTypes) GetSingleInt64() int64

func (*TestAllTypes) GetSingleInt64Wrapper

func (m *TestAllTypes) GetSingleInt64Wrapper() *wrappers.Int64Value

func (*TestAllTypes) GetSingleNestedEnum

func (m *TestAllTypes) GetSingleNestedEnum() TestAllTypes_NestedEnum

func (*TestAllTypes) GetSingleNestedMessage

func (m *TestAllTypes) GetSingleNestedMessage() *TestAllTypes_NestedMessage

func (*TestAllTypes) GetSingleSfixed32

func (m *TestAllTypes) GetSingleSfixed32() int32

func (*TestAllTypes) GetSingleSfixed64

func (m *TestAllTypes) GetSingleSfixed64() int64

func (*TestAllTypes) GetSingleSint32

func (m *TestAllTypes) GetSingleSint32() int32

func (*TestAllTypes) GetSingleSint64

func (m *TestAllTypes) GetSingleSint64() int64

func (*TestAllTypes) GetSingleString

func (m *TestAllTypes) GetSingleString() string

func (*TestAllTypes) GetSingleStruct

func (m *TestAllTypes) GetSingleStruct() *_struct.Struct

func (*TestAllTypes) GetSingleTimestamp

func (m *TestAllTypes) GetSingleTimestamp() *timestamp.Timestamp

func (*TestAllTypes) GetSingleUint32

func (m *TestAllTypes) GetSingleUint32() uint32

func (*TestAllTypes) GetSingleUint64

func (m *TestAllTypes) GetSingleUint64() uint64

func (*TestAllTypes) GetSingleValue

func (m *TestAllTypes) GetSingleValue() *_struct.Value

func (*TestAllTypes) ProtoMessage

func (*TestAllTypes) ProtoMessage()

func (*TestAllTypes) Reset

func (m *TestAllTypes) Reset()

func (*TestAllTypes) String

func (m *TestAllTypes) String() string

func (*TestAllTypes) XXX_DiscardUnknown

func (m *TestAllTypes) XXX_DiscardUnknown()

func (*TestAllTypes) XXX_Marshal

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

func (*TestAllTypes) XXX_Merge

func (dst *TestAllTypes) XXX_Merge(src proto.Message)

func (*TestAllTypes) XXX_OneofFuncs

func (*TestAllTypes) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*TestAllTypes) XXX_Size

func (m *TestAllTypes) XXX_Size() int

func (*TestAllTypes) XXX_Unmarshal

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

type TestAllTypes_NestedEnum

type TestAllTypes_NestedEnum int32
const (
	TestAllTypes_FOO TestAllTypes_NestedEnum = 0
	TestAllTypes_BAR TestAllTypes_NestedEnum = 1
	TestAllTypes_BAZ TestAllTypes_NestedEnum = 2
)

func (TestAllTypes_NestedEnum) EnumDescriptor

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

func (TestAllTypes_NestedEnum) String

func (x TestAllTypes_NestedEnum) String() string

type TestAllTypes_NestedMessage

type TestAllTypes_NestedMessage struct {
	Bb                   int32    `protobuf:"varint,1,opt,name=bb" json:"bb,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestAllTypes_NestedMessage) Descriptor

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

func (*TestAllTypes_NestedMessage) GetBb

func (m *TestAllTypes_NestedMessage) GetBb() int32

func (*TestAllTypes_NestedMessage) ProtoMessage

func (*TestAllTypes_NestedMessage) ProtoMessage()

func (*TestAllTypes_NestedMessage) Reset

func (m *TestAllTypes_NestedMessage) Reset()

func (*TestAllTypes_NestedMessage) String

func (m *TestAllTypes_NestedMessage) String() string

func (*TestAllTypes_NestedMessage) XXX_DiscardUnknown

func (m *TestAllTypes_NestedMessage) XXX_DiscardUnknown()

func (*TestAllTypes_NestedMessage) XXX_Marshal

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

func (*TestAllTypes_NestedMessage) XXX_Merge

func (dst *TestAllTypes_NestedMessage) XXX_Merge(src proto.Message)

func (*TestAllTypes_NestedMessage) XXX_Size

func (m *TestAllTypes_NestedMessage) XXX_Size() int

func (*TestAllTypes_NestedMessage) XXX_Unmarshal

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

type TestAllTypes_SingleNestedEnum

type TestAllTypes_SingleNestedEnum struct {
	SingleNestedEnum TestAllTypes_NestedEnum `` /* 132-byte string literal not displayed */
}

type TestAllTypes_SingleNestedMessage

type TestAllTypes_SingleNestedMessage struct {
	SingleNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,18,opt,name=single_nested_message,json=singleNestedMessage,oneof"`
}

type TestExpr

type TestExpr struct {
	Expr       *expr.Expr
	SourceInfo *expr.SourceInfo
}

func (*TestExpr) Info

func (t *TestExpr) Info(location string) *expr.SourceInfo

Jump to

Keyboard shortcuts

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