bpftests

package
v1.13.11 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SuiteResult_TestResult_TestStatus_name = map[int32]string{
		0: "ERROR",
		1: "PASS",
		2: "FAIL",
		3: "SKIP",
	}
	SuiteResult_TestResult_TestStatus_value = map[string]int32{
		"ERROR": 0,
		"PASS":  1,
		"FAIL":  2,
		"SKIP":  3,
	}
)

Enum value maps for SuiteResult_TestResult_TestStatus.

Functions

This section is empty.

Types

type Log

type Log struct {
	Fmt  string   `protobuf:"bytes,1,opt,name=fmt,proto3" json:"fmt,omitempty"`
	Args []uint64 `protobuf:"fixed64,2,rep,packed,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

bpf_trace_printk style logging

func (*Log) Descriptor deprecated

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

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetArgs

func (x *Log) GetArgs() []uint64

func (*Log) GetFmt

func (x *Log) GetFmt() string

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

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

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

type SuiteResult

type SuiteResult struct {
	Results  []*SuiteResult_TestResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	SuiteLog []*Log                    `protobuf:"bytes,2,rep,name=suite_log,json=suiteLog,proto3" json:"suite_log,omitempty"`
	// contains filtered or unexported fields
}

TRF (Test Result Format)

func (*SuiteResult) Descriptor deprecated

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

Deprecated: Use SuiteResult.ProtoReflect.Descriptor instead.

func (*SuiteResult) GetResults

func (x *SuiteResult) GetResults() []*SuiteResult_TestResult

func (*SuiteResult) GetSuiteLog

func (x *SuiteResult) GetSuiteLog() []*Log

func (*SuiteResult) ProtoMessage

func (*SuiteResult) ProtoMessage()

func (*SuiteResult) ProtoReflect

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

func (*SuiteResult) Reset

func (x *SuiteResult) Reset()

func (*SuiteResult) String

func (x *SuiteResult) String() string

type SuiteResult_TestResult

type SuiteResult_TestResult struct {
	Name    string                            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Status  SuiteResult_TestResult_TestStatus `protobuf:"varint,2,opt,name=status,proto3,enum=SuiteResult_TestResult_TestStatus" json:"status,omitempty"`
	TestLog []*Log                            `protobuf:"bytes,3,rep,name=test_log,json=testLog,proto3" json:"test_log,omitempty"`
	// contains filtered or unexported fields
}

func (*SuiteResult_TestResult) Descriptor deprecated

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

Deprecated: Use SuiteResult_TestResult.ProtoReflect.Descriptor instead.

func (*SuiteResult_TestResult) GetName

func (x *SuiteResult_TestResult) GetName() string

func (*SuiteResult_TestResult) GetStatus

func (*SuiteResult_TestResult) GetTestLog

func (x *SuiteResult_TestResult) GetTestLog() []*Log

func (*SuiteResult_TestResult) ProtoMessage

func (*SuiteResult_TestResult) ProtoMessage()

func (*SuiteResult_TestResult) ProtoReflect

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

func (*SuiteResult_TestResult) Reset

func (x *SuiteResult_TestResult) Reset()

func (*SuiteResult_TestResult) String

func (x *SuiteResult_TestResult) String() string

type SuiteResult_TestResult_TestStatus

type SuiteResult_TestResult_TestStatus int32
const (
	// Unable to execute test, not indicative of the test itself, usually an unexpected error in the framework
	// like out of memory conditions.
	SuiteResult_TestResult_ERROR SuiteResult_TestResult_TestStatus = 0
	SuiteResult_TestResult_PASS  SuiteResult_TestResult_TestStatus = 1
	SuiteResult_TestResult_FAIL  SuiteResult_TestResult_TestStatus = 2
	// The test was skipped, for example because the feature under test is disabled or unavailable with the
	// current settings or on this platform.
	SuiteResult_TestResult_SKIP SuiteResult_TestResult_TestStatus = 3
)

func (SuiteResult_TestResult_TestStatus) Descriptor

func (SuiteResult_TestResult_TestStatus) Enum

func (SuiteResult_TestResult_TestStatus) EnumDescriptor deprecated

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

Deprecated: Use SuiteResult_TestResult_TestStatus.Descriptor instead.

func (SuiteResult_TestResult_TestStatus) Number

func (SuiteResult_TestResult_TestStatus) String

func (SuiteResult_TestResult_TestStatus) Type

Jump to

Keyboard shortcuts

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