Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldPath ¶ added in v0.9.0
FieldPath returns a placeholder field path. It will be expanded automatically when processing the results.
func HydrateFieldPaths ¶ added in v0.9.0
func HydrateFieldPaths( descriptor protoreflect.MessageDescriptor, result Result, ) error
HydrateFieldPaths expands placeholder field paths in the violations messages.
func SortViolations ¶
Types ¶
type Result ¶
type Result interface {
fmt.Stringer
IsSuccessWith(other Result, options *harness.ResultOptions) bool
ToProto() *harness.TestResult
}
func CompilationError ¶
func FromProto ¶
func FromProto(res *harness.TestResult) Result
func RuntimeError ¶
func UnexpectedError ¶
func Violations ¶
type Set ¶
func (*Set) AddSuite ¶
func (set *Set) AddSuite(res *SuiteResults, verbose bool)
type SuiteResults ¶
type SuiteResults harness.SuiteResults
func (*SuiteResults) AddCase ¶
func (suite *SuiteResults) AddCase(res *harness.CaseResult, verbose bool)
func (*SuiteResults) Print ¶
func (suite *SuiteResults) Print(w io.Writer)
Click to show internal directories.
Click to hide internal directories.