Documentation ¶
Index ¶
- Variables
- type CaseResult
- func (*CaseResult) Descriptor() ([]byte, []int)deprecated
- func (x *CaseResult) GetExpectedFailure() bool
- func (x *CaseResult) GetGot() *TestResult
- func (x *CaseResult) GetInput() *anypb.Any
- func (x *CaseResult) GetName() string
- func (x *CaseResult) GetSuccess() bool
- func (x *CaseResult) GetWanted() *TestResult
- func (*CaseResult) ProtoMessage()
- func (x *CaseResult) ProtoReflect() protoreflect.Message
- func (x *CaseResult) Reset()
- func (x *CaseResult) String() string
- type ResultOptions
- func (*ResultOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ResultOptions) GetCaseFilter() string
- func (x *ResultOptions) GetStrict() bool
- func (x *ResultOptions) GetStrictError() bool
- func (x *ResultOptions) GetStrictMessage() bool
- func (x *ResultOptions) GetSuiteFilter() string
- func (x *ResultOptions) GetVerbose() bool
- func (*ResultOptions) ProtoMessage()
- func (x *ResultOptions) ProtoReflect() protoreflect.Message
- func (x *ResultOptions) Reset()
- func (x *ResultOptions) String() string
- type ResultSet
- func (*ResultSet) Descriptor() ([]byte, []int)deprecated
- func (x *ResultSet) GetExpectedFailures() int32
- func (x *ResultSet) GetFailures() int32
- func (x *ResultSet) GetOptions() *ResultOptions
- func (x *ResultSet) GetSuccesses() int32
- func (x *ResultSet) GetSuites() []*SuiteResults
- func (*ResultSet) ProtoMessage()
- func (x *ResultSet) ProtoReflect() protoreflect.Message
- func (x *ResultSet) Reset()
- func (x *ResultSet) String() string
- type SuiteResults
- func (*SuiteResults) Descriptor() ([]byte, []int)deprecated
- func (x *SuiteResults) GetCases() []*CaseResult
- func (x *SuiteResults) GetExpectedFailures() int32
- func (x *SuiteResults) GetFailures() int32
- func (x *SuiteResults) GetFdset() *descriptorpb.FileDescriptorSet
- func (x *SuiteResults) GetName() string
- func (x *SuiteResults) GetSuccesses() int32
- func (*SuiteResults) ProtoMessage()
- func (x *SuiteResults) ProtoReflect() protoreflect.Message
- func (x *SuiteResults) Reset()
- func (x *SuiteResults) String() string
- type TestConformanceRequest
- func (*TestConformanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TestConformanceRequest) GetCases() map[string]*anypb.Any
- func (x *TestConformanceRequest) GetFdset() *descriptorpb.FileDescriptorSet
- func (*TestConformanceRequest) ProtoMessage()
- func (x *TestConformanceRequest) ProtoReflect() protoreflect.Message
- func (x *TestConformanceRequest) Reset()
- func (x *TestConformanceRequest) String() string
- type TestConformanceResponse
- func (*TestConformanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TestConformanceResponse) GetResults() map[string]*TestResult
- func (*TestConformanceResponse) ProtoMessage()
- func (x *TestConformanceResponse) ProtoReflect() protoreflect.Message
- func (x *TestConformanceResponse) Reset()
- func (x *TestConformanceResponse) String() string
- type TestResult
- func (*TestResult) Descriptor() ([]byte, []int)deprecated
- func (x *TestResult) GetCompilationError() string
- func (m *TestResult) GetResult() isTestResult_Result
- func (x *TestResult) GetRuntimeError() string
- func (x *TestResult) GetSuccess() bool
- func (x *TestResult) GetUnexpectedError() string
- func (x *TestResult) GetValidationError() *validate.Violations
- func (*TestResult) ProtoMessage()
- func (x *TestResult) ProtoReflect() protoreflect.Message
- func (x *TestResult) Reset()
- func (x *TestResult) String() string
- type TestResult_CompilationError
- type TestResult_RuntimeError
- type TestResult_Success
- type TestResult_UnexpectedError
- type TestResult_ValidationError
Constants ¶
This section is empty.
Variables ¶
var File_buf_validate_conformance_harness_harness_proto protoreflect.FileDescriptor
var File_buf_validate_conformance_harness_results_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CaseResult ¶
type CaseResult struct { // The case name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Success state of the test case. True if the test case succeeded. Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` // The expected result. Wanted *TestResult `protobuf:"bytes,3,opt,name=wanted,proto3" json:"wanted,omitempty"` // The actual result. Got *TestResult `protobuf:"bytes,4,opt,name=got,proto3" json:"got,omitempty"` // The input used to invoke the test case. Input *anypb.Any `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` // Denotes if the test is expected to fail. True, if the test case was expected to fail. ExpectedFailure bool `protobuf:"varint,6,opt,name=expected_failure,json=expectedFailure,proto3" json:"expected_failure,omitempty"` // contains filtered or unexported fields }
A case result is a single test case result.
func (*CaseResult) Descriptor
deprecated
func (*CaseResult) Descriptor() ([]byte, []int)
Deprecated: Use CaseResult.ProtoReflect.Descriptor instead.
func (*CaseResult) GetExpectedFailure ¶
func (x *CaseResult) GetExpectedFailure() bool
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 { // The suite filter is a regex that matches against the suite name. SuiteFilter string `protobuf:"bytes,1,opt,name=suite_filter,json=suiteFilter,proto3" json:"suite_filter,omitempty"` // The case filter is a regex that matches against the case name. CaseFilter string `protobuf:"bytes,2,opt,name=case_filter,json=caseFilter,proto3" json:"case_filter,omitempty"` // If the test runner should print verbose output. Verbose bool `protobuf:"varint,3,opt,name=verbose,proto3" json:"verbose,omitempty"` // If the violation type must be an exact match. 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 distinction 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 }
ResultOptions are the options passed to the test runner to configure the test run.
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 { // Count of successes. Successes int32 `protobuf:"varint,1,opt,name=successes,proto3" json:"successes,omitempty"` // Count of failures. Failures int32 `protobuf:"varint,2,opt,name=failures,proto3" json:"failures,omitempty"` // List of suite results. Suites []*SuiteResults `protobuf:"bytes,3,rep,name=suites,proto3" json:"suites,omitempty"` // Options used to generate this result. Options *ResultOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` // Count of expected failures. ExpectedFailures int32 `protobuf:"varint,5,opt,name=expected_failures,json=expectedFailures,proto3" json:"expected_failures,omitempty"` // contains filtered or unexported fields }
A result is the result of a test run.
func (*ResultSet) GetOptions ¶
func (x *ResultSet) GetOptions() *ResultOptions
func (*ResultSet) GetSuites ¶
func (x *ResultSet) GetSuites() []*SuiteResults
func (*ResultSet) ProtoReflect ¶
func (x *ResultSet) ProtoReflect() protoreflect.Message
type SuiteResults ¶
type SuiteResults struct { // The suite name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Count of successes. Successes int32 `protobuf:"varint,2,opt,name=successes,proto3" json:"successes,omitempty"` // Count of failures. Failures int32 `protobuf:"varint,3,opt,name=failures,proto3" json:"failures,omitempty"` // List of case results. Cases []*CaseResult `protobuf:"bytes,4,rep,name=cases,proto3" json:"cases,omitempty"` // The file descriptor set used to generate this result. Fdset *descriptorpb.FileDescriptorSet `protobuf:"bytes,5,opt,name=fdset,proto3" json:"fdset,omitempty"` // Count of expected failures. ExpectedFailures int32 `protobuf:"varint,6,opt,name=expected_failures,json=expectedFailures,proto3" json:"expected_failures,omitempty"` // contains filtered or unexported fields }
A suite result is a single test suite result.
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) GetExpectedFailures ¶
func (x *SuiteResults) GetExpectedFailures() int32
func (*SuiteResults) GetFailures ¶
func (x *SuiteResults) GetFailures() int32
func (*SuiteResults) GetFdset ¶
func (x *SuiteResults) GetFdset() *descriptorpb.FileDescriptorSet
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 }
TestConformanceRequest is the request for Conformance Tests. The FileDescriptorSet is the FileDescriptorSet to test against. The cases map is a map of case name to the Any message that represents the case.
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 (x *TestConformanceRequest) GetFdset() *descriptorpb.FileDescriptorSet
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 }
TestConformanceResponse is the response for Conformance Tests. The results map is a map of case name to the TestResult.
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 }
TestResult is the result of a single test. Only one of the fields will be set.
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 { // compilation_error is the error if the test failed due to compilation errors. CompilationError string `protobuf:"bytes,3,opt,name=compilation_error,json=compilationError,proto3,oneof"` }
type TestResult_RuntimeError ¶
type TestResult_RuntimeError struct { // runtime_error is the error if the test failed due to runtime errors. RuntimeError string `protobuf:"bytes,4,opt,name=runtime_error,json=runtimeError,proto3,oneof"` }
type TestResult_Success ¶
type TestResult_Success struct { // success is true if the test succeeded. Success bool `protobuf:"varint,1,opt,name=success,proto3,oneof"` }
type TestResult_UnexpectedError ¶
type TestResult_UnexpectedError struct { // unexpected_error is any other error that may have occurred. UnexpectedError string `protobuf:"bytes,5,opt,name=unexpected_error,json=unexpectedError,proto3,oneof"` }
type TestResult_ValidationError ¶
type TestResult_ValidationError struct { // validation_error is the error if the test failed due to validation errors. ValidationError *validate.Violations `protobuf:"bytes,2,opt,name=validation_error,json=validationError,proto3,oneof"` }