import "go.chromium.org/chromiumos/config/go/api/test/results/v2"
var Result_Error_Severity_name = map[int32]string{ 0: "SEVERITY_UNSPECIFIED", 1: "CRITICAL", 2: "WARNING", }
var Result_Error_Severity_value = map[string]int32{ "SEVERITY_UNSPECIFIED": 0, "CRITICAL": 1, "WARNING": 2, }
var Result_Error_Source_name = map[int32]string{ 0: "SOURCE_UNSPECIFIED", 1: "TEST", 2: "REMOTE_TEST_DRIVER", 3: "TEST_LAB_SERVICES", }
var Result_Error_Source_value = map[string]int32{ "SOURCE_UNSPECIFIED": 0, "TEST": 1, "REMOTE_TEST_DRIVER": 2, "TEST_LAB_SERVICES": 3, }
var Result_State_name = map[int32]string{ 0: "STATE_UNSPECIFIED", 1: "SUCCEEDED", 2: "FAILED", 3: "SKIPPED", }
var Result_State_value = map[string]int32{ "STATE_UNSPECIFIED": 0, "SUCCEEDED": 1, "FAILED": 2, "SKIPPED": 3, }
type Result struct { // Final state of the test execution. // // Error details MUST be available in `errors` if state != SUCCEEDED. State Result_State `protobuf:"varint,1,opt,name=state,proto3,enum=chromiumos.config.api.test.results.v2.Result_State" json:"state,omitempty"` // errors MUST be set if state != SUCCEEDED. // // errors may be provided even if state == SUCCEEDED. Remote Test Drivers are // encouraged to provide multiple observed errors in Result to aid end-user // visibility of problems encountered. Errors []*Result_Error `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Result for a single invocation request.
func (m *Result) GetErrors() []*Result_Error
func (m *Result) GetState() Result_State
type Result_Error struct { // Provenance of the detected error. Source Result_Error_Source `protobuf:"varint,1,opt,name=source,proto3,enum=chromiumos.config.api.test.results.v2.Result_Error_Source" json:"source,omitempty"` // Severity of reported error. Severity Result_Error_Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=chromiumos.config.api.test.results.v2.Result_Error_Severity" json:"severity,omitempty"` // Machine parseable details about the error. // // Test Lab Environments and Remote Test Servers MUST NOT interpret the // details. // // Remote Test Drivers SHOULD use uniform stable schema for `details` to // enable robust analytics. Details *_struct.Struct `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Result_Error) Descriptor() ([]byte, []int)
func (m *Result_Error) GetDetails() *_struct.Struct
func (m *Result_Error) GetSeverity() Result_Error_Severity
func (m *Result_Error) GetSource() Result_Error_Source
func (*Result_Error) ProtoMessage()
func (m *Result_Error) Reset()
func (m *Result_Error) String() string
func (m *Result_Error) XXX_DiscardUnknown()
func (m *Result_Error) XXX_Merge(src proto.Message)
func (m *Result_Error) XXX_Size() int
func (m *Result_Error) XXX_Unmarshal(b []byte) error
Enum entries *may* be added in the future.
const ( // No Severity set. SHOULD NOT be used. Result_Error_SEVERITY_UNSPECIFIED Result_Error_Severity = 0 // Remote Test Server SHOULD validate that a Result contains a CRITICAL // message iff state == FAILED. Result_Error_CRITICAL Result_Error_Severity = 1 // MUST NOT, by itself, lead to a FAILED Result.state. Result_Error_WARNING Result_Error_Severity = 2 )
func (Result_Error_Severity) EnumDescriptor() ([]byte, []int)
func (x Result_Error_Severity) String() string
Enum entries *may* be added in the future.
const ( // No Source specified. SHOULD NOT be used. // // If source is unspecified, the Test Lab Environment SHOULD assume the // source to be the Remote Test Driver. Result_Error_SOURCE_UNSPECIFIED Result_Error_Source = 0 // The test failed. Result_Error_TEST Result_Error_Source = 1 // There was an error in Remote Test Driver invocation. Result_Error_REMOTE_TEST_DRIVER Result_Error_Source = 2 // There was an error in a Test Lab Services API call. Result_Error_TEST_LAB_SERVICES Result_Error_Source = 3 )
func (Result_Error_Source) EnumDescriptor() ([]byte, []int)
func (x Result_Error_Source) String() string
Enum entries *may* be added to this enum in the future.
const ( // No end state specified. MUST NOT be used. Result_STATE_UNSPECIFIED Result_State = 0 // Test request succeeded. All was well. Result_SUCCEEDED Result_State = 1 // Test request failed. See `error` for more information. Result_FAILED Result_State = 2 // Test did not run because the Remote Test Driver decided to skip it. // // Common reasons a test may be skipped: // // * A runtime check by the Remote Test Driver concluded that the test is // not applicable to the targeted device(s). The Remote Test Driver SHOULD // include detailed reasons in `errors`. Result_SKIPPED Result_State = 3 )
func (Result_State) EnumDescriptor() ([]byte, []int)
func (x Result_State) String() string
Package results imports 4 packages (graph) and is imported by 1 packages. Updated 2021-01-19. Refresh now. Tools for package owners.