test

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_cel_expr_conformance_test_simple_proto protoreflect.FileDescriptor
View Source
var File_cel_expr_conformance_test_suite_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ErrorSetMatcher

type ErrorSetMatcher struct {
	Errors []*expr.ErrorSet `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorSetMatcher) Descriptor deprecated

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

Deprecated: Use ErrorSetMatcher.ProtoReflect.Descriptor instead.

func (*ErrorSetMatcher) GetErrors

func (x *ErrorSetMatcher) GetErrors() []*expr.ErrorSet

func (*ErrorSetMatcher) ProtoMessage

func (*ErrorSetMatcher) ProtoMessage()

func (*ErrorSetMatcher) ProtoReflect

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

func (*ErrorSetMatcher) Reset

func (x *ErrorSetMatcher) Reset()

func (*ErrorSetMatcher) String

func (x *ErrorSetMatcher) String() string

type InputContext added in v0.23.0

type InputContext struct {

	// Types that are valid to be assigned to InputContextKind:
	//
	//	*InputContext_ContextMessage
	//	*InputContext_ContextExpr
	InputContextKind isInputContext_InputContextKind `protobuf_oneof:"input_context_kind"`
	// contains filtered or unexported fields
}

func (*InputContext) Descriptor deprecated added in v0.23.0

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

Deprecated: Use InputContext.ProtoReflect.Descriptor instead.

func (*InputContext) GetContextExpr added in v0.23.0

func (x *InputContext) GetContextExpr() string

func (*InputContext) GetContextMessage added in v0.23.0

func (x *InputContext) GetContextMessage() *anypb.Any

func (*InputContext) GetInputContextKind added in v0.23.0

func (x *InputContext) GetInputContextKind() isInputContext_InputContextKind

func (*InputContext) ProtoMessage added in v0.23.0

func (*InputContext) ProtoMessage()

func (*InputContext) ProtoReflect added in v0.23.0

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

func (*InputContext) Reset added in v0.23.0

func (x *InputContext) Reset()

func (*InputContext) String added in v0.23.0

func (x *InputContext) String() string

type InputContext_ContextExpr added in v0.23.0

type InputContext_ContextExpr struct {
	ContextExpr string `protobuf:"bytes,2,opt,name=context_expr,json=contextExpr,proto3,oneof"`
}

type InputContext_ContextMessage added in v0.23.0

type InputContext_ContextMessage struct {
	ContextMessage *anypb.Any `protobuf:"bytes,1,opt,name=context_message,json=contextMessage,proto3,oneof"`
}

type InputValue added in v0.22.1

type InputValue struct {

	// Types that are valid to be assigned to Kind:
	//
	//	*InputValue_Value
	//	*InputValue_Expr
	Kind isInputValue_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

func (*InputValue) Descriptor deprecated added in v0.22.1

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

Deprecated: Use InputValue.ProtoReflect.Descriptor instead.

func (*InputValue) GetExpr added in v0.22.1

func (x *InputValue) GetExpr() string

func (*InputValue) GetKind added in v0.22.1

func (x *InputValue) GetKind() isInputValue_Kind

func (*InputValue) GetValue added in v0.22.1

func (x *InputValue) GetValue() *expr.Value

func (*InputValue) ProtoMessage added in v0.22.1

func (*InputValue) ProtoMessage()

func (*InputValue) ProtoReflect added in v0.22.1

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

func (*InputValue) Reset added in v0.22.1

func (x *InputValue) Reset()

func (*InputValue) String added in v0.22.1

func (x *InputValue) String() string

type InputValue_Expr added in v0.22.1

type InputValue_Expr struct {
	Expr string `protobuf:"bytes,2,opt,name=expr,proto3,oneof"`
}

type InputValue_Value added in v0.22.1

type InputValue_Value struct {
	Value *expr.Value `protobuf:"bytes,1,opt,name=value,proto3,oneof"`
}

type SimpleTest

type SimpleTest struct {
	Name          string                     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description   string                     `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Expr          string                     `protobuf:"bytes,3,opt,name=expr,proto3" json:"expr,omitempty"`
	DisableMacros bool                       `protobuf:"varint,4,opt,name=disable_macros,json=disableMacros,proto3" json:"disable_macros,omitempty"`
	DisableCheck  bool                       `protobuf:"varint,5,opt,name=disable_check,json=disableCheck,proto3" json:"disable_check,omitempty"`
	CheckOnly     bool                       `protobuf:"varint,15,opt,name=check_only,json=checkOnly,proto3" json:"check_only,omitempty"`
	TypeEnv       []*expr.Decl               `protobuf:"bytes,6,rep,name=type_env,json=typeEnv,proto3" json:"type_env,omitempty"`
	Container     string                     `protobuf:"bytes,13,opt,name=container,proto3" json:"container,omitempty"`
	Locale        string                     `protobuf:"bytes,14,opt,name=locale,proto3" json:"locale,omitempty"`
	Bindings      map[string]*expr.ExprValue `` /* 143-byte string literal not displayed */
	// Types that are valid to be assigned to ResultMatcher:
	//
	//	*SimpleTest_Value
	//	*SimpleTest_TypedResult
	//	*SimpleTest_EvalError
	//	*SimpleTest_AnyEvalErrors
	//	*SimpleTest_Unknown
	//	*SimpleTest_AnyUnknowns
	ResultMatcher isSimpleTest_ResultMatcher `protobuf_oneof:"result_matcher"`
	// contains filtered or unexported fields
}

func (*SimpleTest) Descriptor deprecated

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

Deprecated: Use SimpleTest.ProtoReflect.Descriptor instead.

func (*SimpleTest) GetAnyEvalErrors

func (x *SimpleTest) GetAnyEvalErrors() *ErrorSetMatcher

func (*SimpleTest) GetAnyUnknowns

func (x *SimpleTest) GetAnyUnknowns() *UnknownSetMatcher

func (*SimpleTest) GetBindings

func (x *SimpleTest) GetBindings() map[string]*expr.ExprValue

func (*SimpleTest) GetCheckOnly added in v0.19.1

func (x *SimpleTest) GetCheckOnly() bool

func (*SimpleTest) GetContainer

func (x *SimpleTest) GetContainer() string

func (*SimpleTest) GetDescription

func (x *SimpleTest) GetDescription() string

func (*SimpleTest) GetDisableCheck

func (x *SimpleTest) GetDisableCheck() bool

func (*SimpleTest) GetDisableMacros

func (x *SimpleTest) GetDisableMacros() bool

func (*SimpleTest) GetEvalError

func (x *SimpleTest) GetEvalError() *expr.ErrorSet

func (*SimpleTest) GetExpr

func (x *SimpleTest) GetExpr() string

func (*SimpleTest) GetLocale

func (x *SimpleTest) GetLocale() string

func (*SimpleTest) GetName

func (x *SimpleTest) GetName() string

func (*SimpleTest) GetResultMatcher

func (x *SimpleTest) GetResultMatcher() isSimpleTest_ResultMatcher

func (*SimpleTest) GetTypeEnv

func (x *SimpleTest) GetTypeEnv() []*expr.Decl

func (*SimpleTest) GetTypedResult added in v0.19.1

func (x *SimpleTest) GetTypedResult() *TypedResult

func (*SimpleTest) GetUnknown

func (x *SimpleTest) GetUnknown() *expr.UnknownSet

func (*SimpleTest) GetValue

func (x *SimpleTest) GetValue() *expr.Value

func (*SimpleTest) ProtoMessage

func (*SimpleTest) ProtoMessage()

func (*SimpleTest) ProtoReflect

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

func (*SimpleTest) Reset

func (x *SimpleTest) Reset()

func (*SimpleTest) String

func (x *SimpleTest) String() string

type SimpleTestFile

type SimpleTestFile struct {
	Name        string               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string               `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Section     []*SimpleTestSection `protobuf:"bytes,3,rep,name=section,proto3" json:"section,omitempty"`
	// contains filtered or unexported fields
}

func (*SimpleTestFile) Descriptor deprecated

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

Deprecated: Use SimpleTestFile.ProtoReflect.Descriptor instead.

func (*SimpleTestFile) GetDescription

func (x *SimpleTestFile) GetDescription() string

func (*SimpleTestFile) GetName

func (x *SimpleTestFile) GetName() string

func (*SimpleTestFile) GetSection

func (x *SimpleTestFile) GetSection() []*SimpleTestSection

func (*SimpleTestFile) ProtoMessage

func (*SimpleTestFile) ProtoMessage()

func (*SimpleTestFile) ProtoReflect

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

func (*SimpleTestFile) Reset

func (x *SimpleTestFile) Reset()

func (*SimpleTestFile) String

func (x *SimpleTestFile) String() string

type SimpleTestSection

type SimpleTestSection struct {
	Name        string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string        `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Test        []*SimpleTest `protobuf:"bytes,3,rep,name=test,proto3" json:"test,omitempty"`
	// contains filtered or unexported fields
}

func (*SimpleTestSection) Descriptor deprecated

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

Deprecated: Use SimpleTestSection.ProtoReflect.Descriptor instead.

func (*SimpleTestSection) GetDescription

func (x *SimpleTestSection) GetDescription() string

func (*SimpleTestSection) GetName

func (x *SimpleTestSection) GetName() string

func (*SimpleTestSection) GetTest

func (x *SimpleTestSection) GetTest() []*SimpleTest

func (*SimpleTestSection) ProtoMessage

func (*SimpleTestSection) ProtoMessage()

func (*SimpleTestSection) ProtoReflect

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

func (*SimpleTestSection) Reset

func (x *SimpleTestSection) Reset()

func (*SimpleTestSection) String

func (x *SimpleTestSection) String() string

type SimpleTest_AnyEvalErrors

type SimpleTest_AnyEvalErrors struct {
	AnyEvalErrors *ErrorSetMatcher `protobuf:"bytes,10,opt,name=any_eval_errors,json=anyEvalErrors,proto3,oneof"`
}

type SimpleTest_AnyUnknowns

type SimpleTest_AnyUnknowns struct {
	AnyUnknowns *UnknownSetMatcher `protobuf:"bytes,12,opt,name=any_unknowns,json=anyUnknowns,proto3,oneof"`
}

type SimpleTest_EvalError

type SimpleTest_EvalError struct {
	EvalError *expr.ErrorSet `protobuf:"bytes,9,opt,name=eval_error,json=evalError,proto3,oneof"`
}

type SimpleTest_TypedResult added in v0.19.1

type SimpleTest_TypedResult struct {
	TypedResult *TypedResult `protobuf:"bytes,16,opt,name=typed_result,json=typedResult,proto3,oneof"`
}

type SimpleTest_Unknown

type SimpleTest_Unknown struct {
	Unknown *expr.UnknownSet `protobuf:"bytes,11,opt,name=unknown,proto3,oneof"`
}

type SimpleTest_Value

type SimpleTest_Value struct {
	Value *expr.Value `protobuf:"bytes,8,opt,name=value,proto3,oneof"`
}

type TestCase added in v0.22.0

type TestCase struct {
	Name         string                   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description  string                   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Expr         string                   `protobuf:"bytes,3,opt,name=expr,proto3" json:"expr,omitempty"`
	Env          *conformance.Environment `protobuf:"bytes,4,opt,name=env,proto3" json:"env,omitempty"`
	Input        map[string]*InputValue   `` /* 137-byte string literal not displayed */
	InputContext *InputContext            `protobuf:"bytes,6,opt,name=input_context,json=inputContext,proto3" json:"input_context,omitempty"`
	Output       *TestOutput              `protobuf:"bytes,7,opt,name=output,proto3" json:"output,omitempty"`
	DeducedType  *expr.Type               `protobuf:"bytes,8,opt,name=deduced_type,json=deducedType,proto3" json:"deduced_type,omitempty"`
	DisableCheck bool                     `protobuf:"varint,9,opt,name=disable_check,json=disableCheck,proto3" json:"disable_check,omitempty"`
	// contains filtered or unexported fields
}

func (*TestCase) Descriptor deprecated added in v0.22.0

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

Deprecated: Use TestCase.ProtoReflect.Descriptor instead.

func (*TestCase) GetDeducedType added in v0.22.0

func (x *TestCase) GetDeducedType() *expr.Type

func (*TestCase) GetDescription added in v0.22.0

func (x *TestCase) GetDescription() string

func (*TestCase) GetDisableCheck added in v0.22.0

func (x *TestCase) GetDisableCheck() bool

func (*TestCase) GetEnv added in v0.22.0

func (x *TestCase) GetEnv() *conformance.Environment

func (*TestCase) GetExpr added in v0.22.0

func (x *TestCase) GetExpr() string

func (*TestCase) GetInput added in v0.22.1

func (x *TestCase) GetInput() map[string]*InputValue

func (*TestCase) GetInputContext added in v0.23.0

func (x *TestCase) GetInputContext() *InputContext

func (*TestCase) GetName added in v0.22.0

func (x *TestCase) GetName() string

func (*TestCase) GetOutput added in v0.22.1

func (x *TestCase) GetOutput() *TestOutput

func (*TestCase) ProtoMessage added in v0.22.0

func (*TestCase) ProtoMessage()

func (*TestCase) ProtoReflect added in v0.22.0

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

func (*TestCase) Reset added in v0.22.0

func (x *TestCase) Reset()

func (*TestCase) String added in v0.22.0

func (x *TestCase) String() string

type TestOutput added in v0.22.1

type TestOutput struct {

	// Types that are valid to be assigned to ResultKind:
	//
	//	*TestOutput_ResultValue
	//	*TestOutput_ResultExpr
	//	*TestOutput_EvalError
	//	*TestOutput_Unknown
	ResultKind isTestOutput_ResultKind `protobuf_oneof:"result_kind"`
	// contains filtered or unexported fields
}

func (*TestOutput) Descriptor deprecated added in v0.22.1

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

Deprecated: Use TestOutput.ProtoReflect.Descriptor instead.

func (*TestOutput) GetEvalError added in v0.22.1

func (x *TestOutput) GetEvalError() *expr.ErrorSet

func (*TestOutput) GetResultExpr added in v0.22.1

func (x *TestOutput) GetResultExpr() string

func (*TestOutput) GetResultKind added in v0.22.1

func (x *TestOutput) GetResultKind() isTestOutput_ResultKind

func (*TestOutput) GetResultValue added in v0.22.1

func (x *TestOutput) GetResultValue() *expr.Value

func (*TestOutput) GetUnknown added in v0.22.1

func (x *TestOutput) GetUnknown() *expr.UnknownSet

func (*TestOutput) ProtoMessage added in v0.22.1

func (*TestOutput) ProtoMessage()

func (*TestOutput) ProtoReflect added in v0.22.1

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

func (*TestOutput) Reset added in v0.22.1

func (x *TestOutput) Reset()

func (*TestOutput) String added in v0.22.1

func (x *TestOutput) String() string

type TestOutput_EvalError added in v0.22.1

type TestOutput_EvalError struct {
	EvalError *expr.ErrorSet `protobuf:"bytes,10,opt,name=eval_error,json=evalError,proto3,oneof"`
}

type TestOutput_ResultExpr added in v0.22.1

type TestOutput_ResultExpr struct {
	ResultExpr string `protobuf:"bytes,9,opt,name=result_expr,json=resultExpr,proto3,oneof"`
}

type TestOutput_ResultValue added in v0.22.1

type TestOutput_ResultValue struct {
	ResultValue *expr.Value `protobuf:"bytes,8,opt,name=result_value,json=resultValue,proto3,oneof"`
}

type TestOutput_Unknown added in v0.22.1

type TestOutput_Unknown struct {
	Unknown *expr.UnknownSet `protobuf:"bytes,11,opt,name=unknown,proto3,oneof"`
}

type TestSection added in v0.22.0

type TestSection struct {
	Name        string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string      `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Tests       []*TestCase `protobuf:"bytes,3,rep,name=tests,proto3" json:"tests,omitempty"`
	// contains filtered or unexported fields
}

func (*TestSection) Descriptor deprecated added in v0.22.0

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

Deprecated: Use TestSection.ProtoReflect.Descriptor instead.

func (*TestSection) GetDescription added in v0.22.0

func (x *TestSection) GetDescription() string

func (*TestSection) GetName added in v0.22.0

func (x *TestSection) GetName() string

func (*TestSection) GetTests added in v0.22.0

func (x *TestSection) GetTests() []*TestCase

func (*TestSection) ProtoMessage added in v0.22.0

func (*TestSection) ProtoMessage()

func (*TestSection) ProtoReflect added in v0.22.0

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

func (*TestSection) Reset added in v0.22.0

func (x *TestSection) Reset()

func (*TestSection) String added in v0.22.0

func (x *TestSection) String() string

type TestSuite added in v0.22.0

type TestSuite struct {
	Name        string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string         `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Sections    []*TestSection `protobuf:"bytes,3,rep,name=sections,proto3" json:"sections,omitempty"`
	// contains filtered or unexported fields
}

func (*TestSuite) Descriptor deprecated added in v0.22.0

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

Deprecated: Use TestSuite.ProtoReflect.Descriptor instead.

func (*TestSuite) GetDescription added in v0.22.0

func (x *TestSuite) GetDescription() string

func (*TestSuite) GetName added in v0.22.0

func (x *TestSuite) GetName() string

func (*TestSuite) GetSections added in v0.22.0

func (x *TestSuite) GetSections() []*TestSection

func (*TestSuite) ProtoMessage added in v0.22.0

func (*TestSuite) ProtoMessage()

func (*TestSuite) ProtoReflect added in v0.22.0

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

func (*TestSuite) Reset added in v0.22.0

func (x *TestSuite) Reset()

func (*TestSuite) String added in v0.22.0

func (x *TestSuite) String() string

type TypedResult added in v0.19.1

type TypedResult struct {
	Result      *expr.Value `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	DeducedType *expr.Type  `protobuf:"bytes,2,opt,name=deduced_type,json=deducedType,proto3" json:"deduced_type,omitempty"`
	// contains filtered or unexported fields
}

func (*TypedResult) Descriptor deprecated added in v0.19.1

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

Deprecated: Use TypedResult.ProtoReflect.Descriptor instead.

func (*TypedResult) GetDeducedType added in v0.19.1

func (x *TypedResult) GetDeducedType() *expr.Type

func (*TypedResult) GetResult added in v0.19.1

func (x *TypedResult) GetResult() *expr.Value

func (*TypedResult) ProtoMessage added in v0.19.1

func (*TypedResult) ProtoMessage()

func (*TypedResult) ProtoReflect added in v0.19.1

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

func (*TypedResult) Reset added in v0.19.1

func (x *TypedResult) Reset()

func (*TypedResult) String added in v0.19.1

func (x *TypedResult) String() string

type UnknownSetMatcher

type UnknownSetMatcher struct {
	Unknowns []*expr.UnknownSet `protobuf:"bytes,1,rep,name=unknowns,proto3" json:"unknowns,omitempty"`
	// contains filtered or unexported fields
}

func (*UnknownSetMatcher) Descriptor deprecated

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

Deprecated: Use UnknownSetMatcher.ProtoReflect.Descriptor instead.

func (*UnknownSetMatcher) GetUnknowns

func (x *UnknownSetMatcher) GetUnknowns() []*expr.UnknownSet

func (*UnknownSetMatcher) ProtoMessage

func (*UnknownSetMatcher) ProtoMessage()

func (*UnknownSetMatcher) ProtoReflect

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

func (*UnknownSetMatcher) Reset

func (x *UnknownSetMatcher) Reset()

func (*UnknownSetMatcher) String

func (x *UnknownSetMatcher) String() string

Jump to

Keyboard shortcuts

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