results

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortViolations

func SortViolations(violations []*validate.Violation)

Types

type Result

type Result interface {
	fmt.Stringer
	IsSuccessWith(other Result, options *harness.ResultOptions) bool
	ToProto() *harness.TestResult
}

func CompilationError

func CompilationError(err string) Result

func FromProto

func FromProto(res *harness.TestResult) Result

func RuntimeError

func RuntimeError(err string) Result

func Success

func Success(valid bool) Result

func UnexpectedError

func UnexpectedError(format string, args ...any) Result

func Violations

func Violations(violations ...*validate.Violation) Result

type Set

type Set harness.ResultSet

func (*Set) AddSuite

func (set *Set) AddSuite(res *SuiteResults, verbose bool)

func (*Set) MarshalTo

func (set *Set) MarshalTo(w io.Writer, marshaler func(proto.Message) ([]byte, error)) error

func (*Set) Print

func (set *Set) Print(w io.Writer)

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)

Jump to

Keyboard shortcuts

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