harness

package
v1.35.1-20230613213254... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_buf_validate_conformance_harness_harness_proto protoreflect.FileDescriptor
View Source
var File_buf_validate_conformance_harness_results_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CaseResult

type CaseResult struct {
	Name    string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Success bool        `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
	Wanted  *TestResult `protobuf:"bytes,3,opt,name=wanted,proto3" json:"wanted,omitempty"`
	Got     *TestResult `protobuf:"bytes,4,opt,name=got,proto3" json:"got,omitempty"`
	Input   *anypb.Any  `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"`
	// contains filtered or unexported fields
}

func (*CaseResult) Descriptor deprecated

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

Deprecated: Use CaseResult.ProtoReflect.Descriptor instead.

func (*CaseResult) GetGot

func (x *CaseResult) GetGot() *TestResult

func (*CaseResult) GetInput

func (x *CaseResult) GetInput() *anypb.Any

func (*CaseResult) GetName

func (x *CaseResult) GetName() string

func (*CaseResult) GetSuccess

func (x *CaseResult) GetSuccess() bool

func (*CaseResult) GetWanted

func (x *CaseResult) GetWanted() *TestResult

func (*CaseResult) ProtoMessage

func (*CaseResult) ProtoMessage()

func (*CaseResult) ProtoReflect

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

func (*CaseResult) Reset

func (x *CaseResult) Reset()

func (*CaseResult) String

func (x *CaseResult) String() string

type ResultOptions

type ResultOptions struct {
	SuiteFilter string `protobuf:"bytes,1,opt,name=suite_filter,json=suiteFilter,proto3" json:"suite_filter,omitempty"`
	CaseFilter  string `protobuf:"bytes,2,opt,name=case_filter,json=caseFilter,proto3" json:"case_filter,omitempty"`
	Verbose     bool   `protobuf:"varint,3,opt,name=verbose,proto3" json:"verbose,omitempty"`
	Strict      bool   `protobuf:"varint,4,opt,name=strict,proto3" json:"strict,omitempty"`
	// If the violation message must be an exact match.
	StrictMessage bool `protobuf:"varint,5,opt,name=strict_message,json=strictMessage,proto3" json:"strict_message,omitempty"`
	// If the distinciton between runtime and compile time errors must be exact.
	StrictError bool `protobuf:"varint,6,opt,name=strict_error,json=strictError,proto3" json:"strict_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ResultOptions) Descriptor deprecated

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

Deprecated: Use ResultOptions.ProtoReflect.Descriptor instead.

func (*ResultOptions) GetCaseFilter

func (x *ResultOptions) GetCaseFilter() string

func (*ResultOptions) GetStrict

func (x *ResultOptions) GetStrict() bool

func (*ResultOptions) GetStrictError

func (x *ResultOptions) GetStrictError() bool

func (*ResultOptions) GetStrictMessage

func (x *ResultOptions) GetStrictMessage() bool

func (*ResultOptions) GetSuiteFilter

func (x *ResultOptions) GetSuiteFilter() string

func (*ResultOptions) GetVerbose

func (x *ResultOptions) GetVerbose() bool

func (*ResultOptions) ProtoMessage

func (*ResultOptions) ProtoMessage()

func (*ResultOptions) ProtoReflect

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

func (*ResultOptions) Reset

func (x *ResultOptions) Reset()

func (*ResultOptions) String

func (x *ResultOptions) String() string

type ResultSet

type ResultSet struct {
	Successes int32           `protobuf:"varint,1,opt,name=successes,proto3" json:"successes,omitempty"`
	Failures  int32           `protobuf:"varint,2,opt,name=failures,proto3" json:"failures,omitempty"`
	Suites    []*SuiteResults `protobuf:"bytes,3,rep,name=suites,proto3" json:"suites,omitempty"`
	Options   *ResultOptions  `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*ResultSet) Descriptor deprecated

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

Deprecated: Use ResultSet.ProtoReflect.Descriptor instead.

func (*ResultSet) GetFailures

func (x *ResultSet) GetFailures() int32

func (*ResultSet) GetOptions

func (x *ResultSet) GetOptions() *ResultOptions

func (*ResultSet) GetSuccesses

func (x *ResultSet) GetSuccesses() int32

func (*ResultSet) GetSuites

func (x *ResultSet) GetSuites() []*SuiteResults

func (*ResultSet) ProtoMessage

func (*ResultSet) ProtoMessage()

func (*ResultSet) ProtoReflect

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

func (*ResultSet) Reset

func (x *ResultSet) Reset()

func (*ResultSet) String

func (x *ResultSet) String() string

type SuiteResults

type SuiteResults struct {
	Name      string                          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Successes int32                           `protobuf:"varint,2,opt,name=successes,proto3" json:"successes,omitempty"`
	Failures  int32                           `protobuf:"varint,3,opt,name=failures,proto3" json:"failures,omitempty"`
	Cases     []*CaseResult                   `protobuf:"bytes,4,rep,name=cases,proto3" json:"cases,omitempty"`
	Fdset     *descriptorpb.FileDescriptorSet `protobuf:"bytes,5,opt,name=fdset,proto3" json:"fdset,omitempty"`
	// contains filtered or unexported fields
}

func (*SuiteResults) Descriptor deprecated

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

Deprecated: Use SuiteResults.ProtoReflect.Descriptor instead.

func (*SuiteResults) GetCases

func (x *SuiteResults) GetCases() []*CaseResult

func (*SuiteResults) GetFailures

func (x *SuiteResults) GetFailures() int32

func (*SuiteResults) GetFdset

func (*SuiteResults) GetName

func (x *SuiteResults) GetName() string

func (*SuiteResults) GetSuccesses

func (x *SuiteResults) GetSuccesses() int32

func (*SuiteResults) ProtoMessage

func (*SuiteResults) ProtoMessage()

func (*SuiteResults) ProtoReflect

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

func (*SuiteResults) Reset

func (x *SuiteResults) Reset()

func (*SuiteResults) String

func (x *SuiteResults) String() string

type TestConformanceRequest

type TestConformanceRequest struct {
	Fdset *descriptorpb.FileDescriptorSet `protobuf:"bytes,2,opt,name=fdset,proto3" json:"fdset,omitempty"`
	Cases map[string]*anypb.Any           `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TestConformanceRequest) Descriptor deprecated

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

Deprecated: Use TestConformanceRequest.ProtoReflect.Descriptor instead.

func (*TestConformanceRequest) GetCases

func (x *TestConformanceRequest) GetCases() map[string]*anypb.Any

func (*TestConformanceRequest) GetFdset

func (*TestConformanceRequest) ProtoMessage

func (*TestConformanceRequest) ProtoMessage()

func (*TestConformanceRequest) ProtoReflect

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

func (*TestConformanceRequest) Reset

func (x *TestConformanceRequest) Reset()

func (*TestConformanceRequest) String

func (x *TestConformanceRequest) String() string

type TestConformanceResponse

type TestConformanceResponse struct {
	Results map[string]*TestResult `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TestConformanceResponse) Descriptor deprecated

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

Deprecated: Use TestConformanceResponse.ProtoReflect.Descriptor instead.

func (*TestConformanceResponse) GetResults

func (x *TestConformanceResponse) GetResults() map[string]*TestResult

func (*TestConformanceResponse) ProtoMessage

func (*TestConformanceResponse) ProtoMessage()

func (*TestConformanceResponse) ProtoReflect

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

func (*TestConformanceResponse) Reset

func (x *TestConformanceResponse) Reset()

func (*TestConformanceResponse) String

func (x *TestConformanceResponse) String() string

type TestResult

type TestResult struct {

	// Types that are assignable to Result:
	//
	//	*TestResult_Success
	//	*TestResult_ValidationError
	//	*TestResult_CompilationError
	//	*TestResult_RuntimeError
	//	*TestResult_UnexpectedError
	Result isTestResult_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

func (*TestResult) Descriptor deprecated

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

Deprecated: Use TestResult.ProtoReflect.Descriptor instead.

func (*TestResult) GetCompilationError

func (x *TestResult) GetCompilationError() string

func (*TestResult) GetResult

func (m *TestResult) GetResult() isTestResult_Result

func (*TestResult) GetRuntimeError

func (x *TestResult) GetRuntimeError() string

func (*TestResult) GetSuccess

func (x *TestResult) GetSuccess() bool

func (*TestResult) GetUnexpectedError

func (x *TestResult) GetUnexpectedError() string

func (*TestResult) GetValidationError

func (x *TestResult) GetValidationError() *validate.Violations

func (*TestResult) ProtoMessage

func (*TestResult) ProtoMessage()

func (*TestResult) ProtoReflect

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

func (*TestResult) Reset

func (x *TestResult) Reset()

func (*TestResult) String

func (x *TestResult) String() string

type TestResult_CompilationError

type TestResult_CompilationError struct {
	CompilationError string `protobuf:"bytes,3,opt,name=compilation_error,json=compilationError,proto3,oneof"`
}

type TestResult_RuntimeError

type TestResult_RuntimeError struct {
	RuntimeError string `protobuf:"bytes,4,opt,name=runtime_error,json=runtimeError,proto3,oneof"`
}

type TestResult_Success

type TestResult_Success struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3,oneof"`
}

type TestResult_UnexpectedError

type TestResult_UnexpectedError struct {
	UnexpectedError string `protobuf:"bytes,5,opt,name=unexpected_error,json=unexpectedError,proto3,oneof"`
}

type TestResult_ValidationError

type TestResult_ValidationError struct {
	ValidationError *validate.Violations `protobuf:"bytes,2,opt,name=validation_error,json=validationError,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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