Documentation ¶
Index ¶
- Variables
- type Comparison
- func (*Comparison) Descriptor() ([]byte, []int)
- func (m *Comparison) GetComparisonValue() isComparison_ComparisonValue
- func (m *Comparison) GetNumericalValue() float64
- func (m *Comparison) GetOp() Comparison_Operator
- func (m *Comparison) GetStringValue() string
- func (*Comparison) ProtoMessage()
- func (m *Comparison) Reset()
- func (m *Comparison) String() string
- func (m *Comparison) XXX_DiscardUnknown()
- func (m *Comparison) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Comparison) XXX_Merge(src proto.Message)
- func (*Comparison) XXX_OneofWrappers() []interface{}
- func (m *Comparison) XXX_Size() int
- func (m *Comparison) XXX_Unmarshal(b []byte) error
- type Comparison_NumericalValue
- type Comparison_Operator
- type Comparison_StringValue
- type Rule
- func (*Rule) Descriptor() ([]byte, []int)
- func (m *Rule) GetComputedStatus() test_status.TestStatus
- func (m *Rule) GetTestResultComparisons() []*TestResultComparison
- func (*Rule) ProtoMessage()
- func (m *Rule) Reset()
- func (m *Rule) String() string
- func (m *Rule) XXX_DiscardUnknown()
- func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Rule) XXX_Merge(src proto.Message)
- func (m *Rule) XXX_Size() int
- func (m *Rule) XXX_Unmarshal(b []byte) error
- type RuleSet
- func (*RuleSet) Descriptor() ([]byte, []int)
- func (m *RuleSet) GetRules() []*Rule
- func (*RuleSet) ProtoMessage()
- func (m *RuleSet) Reset()
- func (m *RuleSet) String() string
- func (m *RuleSet) XXX_DiscardUnknown()
- func (m *RuleSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RuleSet) XXX_Merge(src proto.Message)
- func (m *RuleSet) XXX_Size() int
- func (m *RuleSet) XXX_Unmarshal(b []byte) error
- type TestResultComparison
- func (*TestResultComparison) Descriptor() ([]byte, []int)
- func (m *TestResultComparison) GetComparison() *Comparison
- func (m *TestResultComparison) GetPropertyKey() string
- func (m *TestResultComparison) GetTestResultErrorField() string
- func (m *TestResultComparison) GetTestResultField() string
- func (m *TestResultComparison) GetTestResultInfo() isTestResultComparison_TestResultInfo
- func (*TestResultComparison) ProtoMessage()
- func (m *TestResultComparison) Reset()
- func (m *TestResultComparison) String() string
- func (m *TestResultComparison) XXX_DiscardUnknown()
- func (m *TestResultComparison) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TestResultComparison) XXX_Merge(src proto.Message)
- func (*TestResultComparison) XXX_OneofWrappers() []interface{}
- func (m *TestResultComparison) XXX_Size() int
- func (m *TestResultComparison) XXX_Unmarshal(b []byte) error
- type TestResultComparison_PropertyKey
- type TestResultComparison_TestResultErrorField
- type TestResultComparison_TestResultField
Constants ¶
This section is empty.
Variables ¶
View Source
var Comparison_Operator_name = map[int32]string{
0: "OP_UNKNOWN",
1: "OP_EQ",
2: "OP_NE",
3: "OP_LT",
4: "OP_LE",
5: "OP_GT",
6: "OP_GE",
7: "OP_REGEX",
8: "OP_STARTS_WITH",
9: "OP_CONTAINS",
}
View Source
var Comparison_Operator_value = map[string]int32{
"OP_UNKNOWN": 0,
"OP_EQ": 1,
"OP_NE": 2,
"OP_LT": 3,
"OP_LE": 4,
"OP_GT": 5,
"OP_GE": 6,
"OP_REGEX": 7,
"OP_STARTS_WITH": 8,
"OP_CONTAINS": 9,
}
Functions ¶
This section is empty.
Types ¶
type Comparison ¶
type Comparison struct { // Required: Defines how to compare two attributes. // When the TestResult value is numerical, numerical_value will be used to // compare. When the TestResult value is a string, string_value will be used. Op Comparison_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=Comparison_Operator" json:"op,omitempty"` // Types that are valid to be assigned to ComparisonValue: // *Comparison_StringValue // *Comparison_NumericalValue ComparisonValue isComparison_ComparisonValue `protobuf_oneof:"comparison_value"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The method of comparison used for evaluation. Describes how to compare two values.
func (*Comparison) Descriptor ¶
func (*Comparison) Descriptor() ([]byte, []int)
func (*Comparison) GetComparisonValue ¶
func (m *Comparison) GetComparisonValue() isComparison_ComparisonValue
func (*Comparison) GetNumericalValue ¶
func (m *Comparison) GetNumericalValue() float64
func (*Comparison) GetOp ¶
func (m *Comparison) GetOp() Comparison_Operator
func (*Comparison) GetStringValue ¶
func (m *Comparison) GetStringValue() string
func (*Comparison) ProtoMessage ¶
func (*Comparison) ProtoMessage()
func (*Comparison) Reset ¶
func (m *Comparison) Reset()
func (*Comparison) String ¶
func (m *Comparison) String() string
func (*Comparison) XXX_DiscardUnknown ¶
func (m *Comparison) XXX_DiscardUnknown()
func (*Comparison) XXX_Marshal ¶
func (m *Comparison) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Comparison) XXX_Merge ¶
func (m *Comparison) XXX_Merge(src proto.Message)
func (*Comparison) XXX_OneofWrappers ¶
func (*Comparison) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Comparison) XXX_Size ¶
func (m *Comparison) XXX_Size() int
func (*Comparison) XXX_Unmarshal ¶
func (m *Comparison) XXX_Unmarshal(b []byte) error
type Comparison_NumericalValue ¶
type Comparison_NumericalValue struct {
NumericalValue float64 `protobuf:"fixed64,3,opt,name=numerical_value,json=numericalValue,proto3,oneof"`
}
type Comparison_Operator ¶
type Comparison_Operator int32
const ( // Unknown. May assume OP_EQ for legacy purposes, but should warn. Comparison_OP_UNKNOWN Comparison_Operator = 0 // Equals operator. Comparison_OP_EQ Comparison_Operator = 1 // Not equals operator. Comparison_OP_NE Comparison_Operator = 2 // Comparison value less than TestResult's value Comparison_OP_LT Comparison_Operator = 3 // Comparison value less than or equal TestResult's value Comparison_OP_LE Comparison_Operator = 4 // Comparison value greater than TestResult's value Comparison_OP_GT Comparison_Operator = 5 // Comparison value greater than or equal TestResult's value Comparison_OP_GE Comparison_Operator = 6 // Regex match of Comparison.value string with the TestResult's evaluation // value string. Comparison_OP_REGEX Comparison_Operator = 7 // Checks to see if the evaluation value string starts with the // Comparison.value string Comparison_OP_STARTS_WITH Comparison_Operator = 8 // Checks to see if the evaluation value string is contained within the // Comparison.value string Comparison_OP_CONTAINS Comparison_Operator = 9 )
func (Comparison_Operator) EnumDescriptor ¶
func (Comparison_Operator) EnumDescriptor() ([]byte, []int)
func (Comparison_Operator) String ¶
func (x Comparison_Operator) String() string
type Comparison_StringValue ¶
type Comparison_StringValue struct {
StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type Rule ¶
type Rule struct { // Multiple comparisons to run against a result. EVERY TestResultComparison // has to succeed for this Rule to succeed. TestResultComparisons []*TestResultComparison `` /* 126-byte string literal not displayed */ // Required: The TestStatus to return if the comparison succeeds. ComputedStatus test_status.TestStatus `protobuf:"varint,3,opt,name=computed_status,json=computedStatus,proto3,enum=TestStatus" json:"computed_status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A single rule that describes how to evaluate a test_cases_pb2.TestResult
func (*Rule) Descriptor ¶
func (*Rule) GetComputedStatus ¶
func (m *Rule) GetComputedStatus() test_status.TestStatus
func (*Rule) GetTestResultComparisons ¶
func (m *Rule) GetTestResultComparisons() []*TestResultComparison
func (*Rule) ProtoMessage ¶
func (*Rule) ProtoMessage()
func (*Rule) XXX_DiscardUnknown ¶
func (m *Rule) XXX_DiscardUnknown()
func (*Rule) XXX_Unmarshal ¶
type RuleSet ¶
type RuleSet struct { Rules []*Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A collection of Rule objects. Used to define many rules.
func (*RuleSet) Descriptor ¶
func (*RuleSet) ProtoMessage ¶
func (*RuleSet) ProtoMessage()
func (*RuleSet) XXX_DiscardUnknown ¶
func (m *RuleSet) XXX_DiscardUnknown()
func (*RuleSet) XXX_Marshal ¶
func (*RuleSet) XXX_Unmarshal ¶
type TestResultComparison ¶
type TestResultComparison struct { // Required: This is the comparison that will be used as Comparison *Comparison `protobuf:"bytes,1,opt,name=comparison,proto3" json:"comparison,omitempty"` // Types that are valid to be assigned to TestResultInfo: // *TestResultComparison_PropertyKey // *TestResultComparison_TestResultField // *TestResultComparison_TestResultErrorField TestResultInfo isTestResultComparison_TestResultInfo `protobuf_oneof:"test_result_info"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Describes how to get information the TestResult proto and how to compare the value against the comparison value.
func (*TestResultComparison) Descriptor ¶
func (*TestResultComparison) Descriptor() ([]byte, []int)
func (*TestResultComparison) GetComparison ¶
func (m *TestResultComparison) GetComparison() *Comparison
func (*TestResultComparison) GetPropertyKey ¶
func (m *TestResultComparison) GetPropertyKey() string
func (*TestResultComparison) GetTestResultErrorField ¶
func (m *TestResultComparison) GetTestResultErrorField() string
func (*TestResultComparison) GetTestResultField ¶
func (m *TestResultComparison) GetTestResultField() string
func (*TestResultComparison) GetTestResultInfo ¶
func (m *TestResultComparison) GetTestResultInfo() isTestResultComparison_TestResultInfo
func (*TestResultComparison) ProtoMessage ¶
func (*TestResultComparison) ProtoMessage()
func (*TestResultComparison) Reset ¶
func (m *TestResultComparison) Reset()
func (*TestResultComparison) String ¶
func (m *TestResultComparison) String() string
func (*TestResultComparison) XXX_DiscardUnknown ¶
func (m *TestResultComparison) XXX_DiscardUnknown()
func (*TestResultComparison) XXX_Marshal ¶
func (m *TestResultComparison) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TestResultComparison) XXX_Merge ¶
func (m *TestResultComparison) XXX_Merge(src proto.Message)
func (*TestResultComparison) XXX_OneofWrappers ¶
func (*TestResultComparison) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*TestResultComparison) XXX_Size ¶
func (m *TestResultComparison) XXX_Size() int
func (*TestResultComparison) XXX_Unmarshal ¶
func (m *TestResultComparison) XXX_Unmarshal(b []byte) error
type TestResultComparison_PropertyKey ¶
type TestResultComparison_PropertyKey struct {
PropertyKey string `protobuf:"bytes,2,opt,name=property_key,json=propertyKey,proto3,oneof"`
}
type TestResultComparison_TestResultErrorField ¶
type TestResultComparison_TestResultErrorField struct {
TestResultErrorField string `protobuf:"bytes,4,opt,name=test_result_error_field,json=testResultErrorField,proto3,oneof"`
}
type TestResultComparison_TestResultField ¶
type TestResultComparison_TestResultField struct {
TestResultField string `protobuf:"bytes,3,opt,name=test_result_field,json=testResultField,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.