Documentation ¶
Overview ¶
Package test_status_proto is a generated protocol buffer package.
It is generated from these files:
third_party/bazel/src/main/protobuf/test_status.proto
It has these top-level messages:
TestCase TestResultData
Index ¶
- Constants
- Variables
- type BlazeTestStatus
- type FailedTestCasesStatus
- type TestCase
- func (*TestCase) Descriptor() ([]byte, []int)
- func (m *TestCase) GetChild() []*TestCase
- func (m *TestCase) GetClassName() string
- func (m *TestCase) GetName() string
- func (m *TestCase) GetResult() string
- func (m *TestCase) GetRun() bool
- func (m *TestCase) GetRunDurationMillis() int64
- func (m *TestCase) GetStatus() TestCase_Status
- func (m *TestCase) GetType() TestCase_Type
- func (m *TestCase) Marshal() (dAtA []byte, err error)
- func (m *TestCase) MarshalTo(dAtA []byte) (int, error)
- func (*TestCase) ProtoMessage()
- func (m *TestCase) Reset()
- func (m *TestCase) Size() (n int)
- func (m *TestCase) String() string
- func (m *TestCase) Unmarshal(dAtA []byte) error
- type TestCase_Status
- type TestCase_Type
- type TestResultData
- func (*TestResultData) Descriptor() ([]byte, []int)
- func (m *TestResultData) GetCachable() bool
- func (m *TestResultData) GetFailedLogs() []string
- func (m *TestResultData) GetFailedStatus() FailedTestCasesStatus
- func (m *TestResultData) GetHasCoverage() bool
- func (m *TestResultData) GetIsRemoteStrategy() bool
- func (m *TestResultData) GetPassedLog() string
- func (m *TestResultData) GetRemotelyCached() bool
- func (m *TestResultData) GetRunDurationMillis() int64
- func (m *TestResultData) GetStartTimeMillisEpoch() int64
- func (m *TestResultData) GetStatus() BlazeTestStatus
- func (m *TestResultData) GetTestCase() *TestCase
- func (m *TestResultData) GetTestPassed() bool
- func (m *TestResultData) GetTestProcessTimes() []int64
- func (m *TestResultData) GetTestTimes() []int64
- func (m *TestResultData) GetWarning() []string
- func (m *TestResultData) Marshal() (dAtA []byte, err error)
- func (m *TestResultData) MarshalTo(dAtA []byte) (int, error)
- func (*TestResultData) ProtoMessage()
- func (m *TestResultData) Reset()
- func (m *TestResultData) Size() (n int)
- func (m *TestResultData) String() string
- func (m *TestResultData) Unmarshal(dAtA []byte) error
Constants ¶
View Source
const Default_TestCase_Run bool = true
Variables ¶
View Source
var ( ErrInvalidLengthTestStatus = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTestStatus = fmt.Errorf("proto: integer overflow") )
View Source
var BlazeTestStatus_name = map[int32]string{
0: "NO_STATUS",
1: "PASSED",
2: "FLAKY",
3: "TIMEOUT",
4: "FAILED",
5: "INCOMPLETE",
6: "REMOTE_FAILURE",
7: "FAILED_TO_BUILD",
8: "BLAZE_HALTED_BEFORE_TESTING",
}
View Source
var BlazeTestStatus_value = map[string]int32{
"NO_STATUS": 0,
"PASSED": 1,
"FLAKY": 2,
"TIMEOUT": 3,
"FAILED": 4,
"INCOMPLETE": 5,
"REMOTE_FAILURE": 6,
"FAILED_TO_BUILD": 7,
"BLAZE_HALTED_BEFORE_TESTING": 8,
}
View Source
var FailedTestCasesStatus_name = map[int32]string{
1: "FULL",
2: "PARTIAL",
3: "NOT_AVAILABLE",
4: "EMPTY",
}
View Source
var FailedTestCasesStatus_value = map[string]int32{
"FULL": 1,
"PARTIAL": 2,
"NOT_AVAILABLE": 3,
"EMPTY": 4,
}
View Source
var TestCase_Status_name = map[int32]string{
0: "PASSED",
1: "FAILED",
2: "ERROR",
}
View Source
var TestCase_Status_value = map[string]int32{
"PASSED": 0,
"FAILED": 1,
"ERROR": 2,
}
View Source
var TestCase_Type_name = map[int32]string{
0: "TEST_CASE",
1: "TEST_SUITE",
2: "TEST_DECORATOR",
3: "UNKNOWN",
}
View Source
var TestCase_Type_value = map[string]int32{
"TEST_CASE": 0,
"TEST_SUITE": 1,
"TEST_DECORATOR": 2,
"UNKNOWN": 3,
}
Functions ¶
This section is empty.
Types ¶
type BlazeTestStatus ¶
type BlazeTestStatus int32
Detailed status data for a TestRunnerAction execution.
const ( BlazeTestStatus_NO_STATUS BlazeTestStatus = 0 BlazeTestStatus_PASSED BlazeTestStatus = 1 BlazeTestStatus_FLAKY BlazeTestStatus = 2 BlazeTestStatus_TIMEOUT BlazeTestStatus = 3 BlazeTestStatus_FAILED BlazeTestStatus = 4 BlazeTestStatus_INCOMPLETE BlazeTestStatus = 5 BlazeTestStatus_REMOTE_FAILURE BlazeTestStatus = 6 BlazeTestStatus_FAILED_TO_BUILD BlazeTestStatus = 7 BlazeTestStatus_BLAZE_HALTED_BEFORE_TESTING BlazeTestStatus = 8 )
const Default_TestResultData_Status BlazeTestStatus = BlazeTestStatus_NO_STATUS
func (BlazeTestStatus) Enum ¶
func (x BlazeTestStatus) Enum() *BlazeTestStatus
func (BlazeTestStatus) EnumDescriptor ¶
func (BlazeTestStatus) EnumDescriptor() ([]byte, []int)
func (BlazeTestStatus) String ¶
func (x BlazeTestStatus) String() string
func (*BlazeTestStatus) UnmarshalJSON ¶
func (x *BlazeTestStatus) UnmarshalJSON(data []byte) error
type FailedTestCasesStatus ¶
type FailedTestCasesStatus int32
Status data of test cases which failed (used only for printing test summary)
const ( // * Information about every test case is available. FailedTestCasesStatus_FULL FailedTestCasesStatus = 1 // * Information about some test cases may be missing. FailedTestCasesStatus_PARTIAL FailedTestCasesStatus = 2 // * No information about individual test cases. FailedTestCasesStatus_NOT_AVAILABLE FailedTestCasesStatus = 3 // * This is an empty object still without data. FailedTestCasesStatus_EMPTY FailedTestCasesStatus = 4 )
func (FailedTestCasesStatus) Enum ¶
func (x FailedTestCasesStatus) Enum() *FailedTestCasesStatus
func (FailedTestCasesStatus) EnumDescriptor ¶
func (FailedTestCasesStatus) EnumDescriptor() ([]byte, []int)
func (FailedTestCasesStatus) String ¶
func (x FailedTestCasesStatus) String() string
func (*FailedTestCasesStatus) UnmarshalJSON ¶
func (x *FailedTestCasesStatus) UnmarshalJSON(data []byte) error
type TestCase ¶
type TestCase struct { Child []*TestCase `protobuf:"bytes,1,rep,name=child" json:"child,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` ClassName *string `protobuf:"bytes,3,opt,name=class_name,json=className" json:"class_name,omitempty"` RunDurationMillis *int64 `protobuf:"varint,4,opt,name=run_duration_millis,json=runDurationMillis" json:"run_duration_millis,omitempty"` Result *string `protobuf:"bytes,5,opt,name=result" json:"result,omitempty"` Type *TestCase_Type `protobuf:"varint,6,opt,name=type,enum=blaze.TestCase_Type" json:"type,omitempty"` Status *TestCase_Status `protobuf:"varint,7,opt,name=status,enum=blaze.TestCase_Status" json:"status,omitempty"` Run *bool `protobuf:"varint,8,opt,name=run,def=1" json:"run,omitempty"` XXX_unrecognized []byte `json:"-"` }
TestCase contains detailed data about all tests (cases/suites/decorators) ran, structured in a tree. This data will be later used to present the tests by the web status server.
func (*TestCase) Descriptor ¶
func (*TestCase) GetClassName ¶
func (*TestCase) GetRunDurationMillis ¶
func (*TestCase) GetStatus ¶
func (m *TestCase) GetStatus() TestCase_Status
func (*TestCase) GetType ¶
func (m *TestCase) GetType() TestCase_Type
func (*TestCase) ProtoMessage ¶
func (*TestCase) ProtoMessage()
type TestCase_Status ¶
type TestCase_Status int32
const ( TestCase_PASSED TestCase_Status = 0 TestCase_FAILED TestCase_Status = 1 TestCase_ERROR TestCase_Status = 2 )
func (TestCase_Status) Enum ¶
func (x TestCase_Status) Enum() *TestCase_Status
func (TestCase_Status) EnumDescriptor ¶
func (TestCase_Status) EnumDescriptor() ([]byte, []int)
func (TestCase_Status) String ¶
func (x TestCase_Status) String() string
func (*TestCase_Status) UnmarshalJSON ¶
func (x *TestCase_Status) UnmarshalJSON(data []byte) error
type TestCase_Type ¶
type TestCase_Type int32
const ( TestCase_TEST_CASE TestCase_Type = 0 TestCase_TEST_SUITE TestCase_Type = 1 TestCase_TEST_DECORATOR TestCase_Type = 2 TestCase_UNKNOWN TestCase_Type = 3 )
func (TestCase_Type) Enum ¶
func (x TestCase_Type) Enum() *TestCase_Type
func (TestCase_Type) EnumDescriptor ¶
func (TestCase_Type) EnumDescriptor() ([]byte, []int)
func (TestCase_Type) String ¶
func (x TestCase_Type) String() string
func (*TestCase_Type) UnmarshalJSON ¶
func (x *TestCase_Type) UnmarshalJSON(data []byte) error
type TestResultData ¶
type TestResultData struct { // The following two fields are used for TestRunnerAction caching. // This reflects the fact that failing tests are successful // actions that might be cached, depending on option settings. Cachable *bool `protobuf:"varint,1,opt,name=cachable" json:"cachable,omitempty"` TestPassed *bool `protobuf:"varint,2,opt,name=test_passed,json=testPassed" json:"test_passed,omitempty"` // Following data is informational. Status *BlazeTestStatus `protobuf:"varint,3,opt,name=status,enum=blaze.BlazeTestStatus,def=0" json:"status,omitempty"` FailedLogs []string `protobuf:"bytes,4,rep,name=failed_logs,json=failedLogs" json:"failed_logs,omitempty"` Warning []string `protobuf:"bytes,5,rep,name=warning" json:"warning,omitempty"` HasCoverage *bool `protobuf:"varint,6,opt,name=has_coverage,json=hasCoverage" json:"has_coverage,omitempty"` // Returns if this was cached in remote execution. RemotelyCached *bool `protobuf:"varint,7,opt,name=remotely_cached,json=remotelyCached" json:"remotely_cached,omitempty"` // Returns true if this was executed remotely IsRemoteStrategy *bool `protobuf:"varint,8,opt,name=is_remote_strategy,json=isRemoteStrategy" json:"is_remote_strategy,omitempty"` // All associated test times (in ms). TestTimes []int64 `protobuf:"varint,9,rep,name=test_times,json=testTimes" json:"test_times,omitempty"` // Passed log paths. Set if the test passed. PassedLog *string `protobuf:"bytes,10,opt,name=passed_log,json=passedLog" json:"passed_log,omitempty"` // Test times, without remote execution overhead (in ms). TestProcessTimes []int64 `protobuf:"varint,11,rep,name=test_process_times,json=testProcessTimes" json:"test_process_times,omitempty"` // Total time in ms. RunDurationMillis *int64 `protobuf:"varint,12,opt,name=run_duration_millis,json=runDurationMillis" json:"run_duration_millis,omitempty"` // Start time of the test action in ms since the epoch. StartTimeMillisEpoch *int64 `protobuf:"varint,15,opt,name=start_time_millis_epoch,json=startTimeMillisEpoch" json:"start_time_millis_epoch,omitempty"` // Additional build info TestCase *TestCase `protobuf:"bytes,13,opt,name=test_case,json=testCase" json:"test_case,omitempty"` FailedStatus *FailedTestCasesStatus `protobuf:"varint,14,opt,name=failed_status,json=failedStatus,enum=blaze.FailedTestCasesStatus" json:"failed_status,omitempty"` XXX_unrecognized []byte `json:"-"` }
TestResultData holds the outcome data for a single test action (A single test rule can result in multiple actions due to sharding and runs_per_test settings.)
func (*TestResultData) Descriptor ¶
func (*TestResultData) Descriptor() ([]byte, []int)
func (*TestResultData) GetCachable ¶
func (m *TestResultData) GetCachable() bool
func (*TestResultData) GetFailedLogs ¶
func (m *TestResultData) GetFailedLogs() []string
func (*TestResultData) GetFailedStatus ¶
func (m *TestResultData) GetFailedStatus() FailedTestCasesStatus
func (*TestResultData) GetHasCoverage ¶
func (m *TestResultData) GetHasCoverage() bool
func (*TestResultData) GetIsRemoteStrategy ¶
func (m *TestResultData) GetIsRemoteStrategy() bool
func (*TestResultData) GetPassedLog ¶
func (m *TestResultData) GetPassedLog() string
func (*TestResultData) GetRemotelyCached ¶
func (m *TestResultData) GetRemotelyCached() bool
func (*TestResultData) GetRunDurationMillis ¶
func (m *TestResultData) GetRunDurationMillis() int64
func (*TestResultData) GetStartTimeMillisEpoch ¶
func (m *TestResultData) GetStartTimeMillisEpoch() int64
func (*TestResultData) GetStatus ¶
func (m *TestResultData) GetStatus() BlazeTestStatus
func (*TestResultData) GetTestCase ¶
func (m *TestResultData) GetTestCase() *TestCase
func (*TestResultData) GetTestPassed ¶
func (m *TestResultData) GetTestPassed() bool
func (*TestResultData) GetTestProcessTimes ¶
func (m *TestResultData) GetTestProcessTimes() []int64
func (*TestResultData) GetTestTimes ¶
func (m *TestResultData) GetTestTimes() []int64
func (*TestResultData) GetWarning ¶
func (m *TestResultData) GetWarning() []string
func (*TestResultData) Marshal ¶
func (m *TestResultData) Marshal() (dAtA []byte, err error)
func (*TestResultData) ProtoMessage ¶
func (*TestResultData) ProtoMessage()
func (*TestResultData) Reset ¶
func (m *TestResultData) Reset()
func (*TestResultData) Size ¶
func (m *TestResultData) Size() (n int)
func (*TestResultData) String ¶
func (m *TestResultData) String() string
func (*TestResultData) Unmarshal ¶
func (m *TestResultData) Unmarshal(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.